diff --git a/Jenkinsfile b/Jenkinsfile index 64f1f9c..db3acb9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,6 +34,7 @@ pipeline { } steps { lock('xoa-test-runner') { + sh 'echo ${BYPASS_XOA_TOKEN}' sh 'cp /opt/terraform-provider-xenorchestra/testdata/images/alpine-virt-3.17.0-x86_64.iso xoa/testdata/alpine-virt-3.17.0-x86_64.iso' sh 'TF_VERSION=${TF_VERSION} TIMEOUT=60m make ci' } diff --git a/xoa/acc_setup_test.go b/xoa/acc_setup_test.go index e674f79..7aad23a 100644 --- a/xoa/acc_setup_test.go +++ b/xoa/acc_setup_test.go @@ -25,7 +25,7 @@ var disklessTestTemplate client.Template var testIso client.VDI func TestMain(m *testing.M) { - fmt.Printf("Found token of len=%d\n", len(accTestXoToken)) + panic(fmt.Sprintf("Found token of len=%d\n", len(accTestXoToken))) // This leverages the existing flag defined in the terraform-plugin-sdk // repo defined below // https://github.com/hashicorp/terraform-plugin-sdk/blob/2c03a32a9d1be63a12eb18aaf12d2c5270c42346/helper/resource/testing.go#L58