diff --git a/.github/workflows/pre-main.yaml b/.github/workflows/pre-main.yaml index 0cf1831a0f..896b9d5aff 100644 --- a/.github/workflows/pre-main.yaml +++ b/.github/workflows/pre-main.yaml @@ -386,7 +386,7 @@ jobs: run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} - name: 'Test: Run Smoke Tests in a TNF container' - run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} TNF_ENABLE_DATA_COLLECTION=true ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l "${SMOKE_TESTS_GINKGO_LABELS_FILTER}" + run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} TNF_ENABLE_DATA_COLLECTION=false ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l "${SMOKE_TESTS_GINKGO_LABELS_FILTER}" - name: Run sanity check on collector uses: ./collector/.github/actions/run-sanity-check diff --git a/pkg/configuration/configuration.go b/pkg/configuration/configuration.go index d70396020a..aaec22a47f 100644 --- a/pkg/configuration/configuration.go +++ b/pkg/configuration/configuration.go @@ -103,5 +103,5 @@ type TestParameters struct { PfltDockerconfig string `split_words:"true" envconfig:"PFLT_DOCKERCONFIG"` IncludeWebFilesInOutputFolder bool `split_words:"true" default:"false"` OmitArtifactsZipFile bool `split_words:"true" default:"false"` - EnableDataCollection bool `split_words:"true" default:"false"` + EnableDataCollection bool `split_words:"true" envconfig:"ENABLE_DATA_COLLECTION" default:"false"` }