Skip to content

Commit

Permalink
Properly use TNF_ENABLE_XML_CREATION (#1751)
Browse files Browse the repository at this point in the history
* Properly use ENABLE_XML_CREATION

* Use TNF_ prefix
  • Loading branch information
ramperher authored Dec 19, 2023
1 parent fda80b4 commit 664dbe6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The test suite has the ability to create the JUNit XML File output containing th
To enable this, set:

```shell
export ENABLE_XML_CREATION=true
export TNF_ENABLE_XML_CREATION=true
```

This will create a file named `cnf-certification-test/cnf-certification-tests_junit.xml`.
Expand Down
2 changes: 1 addition & 1 deletion docs/test-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The "20230620-110654" sample prefix means "June-20th 2023, 11:06:54"
This is the content of the tar.gz file:

* claim.json
* cnf-certification-tests_junit.xml (Only if enabled via `ENABLE_XML_CREATION` environment variable)
* cnf-certification-tests_junit.xml (Only if enabled via `TNF_ENABLE_XML_CREATION` environment variable)
* claimjson.js
* classification.js
* results.html
Expand Down
2 changes: 1 addition & 1 deletion pkg/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ type TestParameters struct {
IncludeWebFilesInOutputFolder bool `split_words:"true" default:"false"`
OmitArtifactsZipFile bool `split_words:"true" default:"false"`
EnableDataCollection bool `split_words:"true" envconfig:"ENABLE_DATA_COLLECTION" default:"false"`
EnableXMLCreation bool `split_words:"true" envconfig:"ENABLE_XML_CREATION" default:"false"`
EnableXMLCreation bool `split_words:"true" envconfig:"TNF_ENABLE_XML_CREATION" default:"false"`
}
2 changes: 1 addition & 1 deletion script/run-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TNF_OMIT_ARTIFACTS_ZIP_FILE_DEFAULT=false
TNF_INCLUDE_WEB_FILES_IN_OUTPUT_FOLDER_DEFAULT=false
ON_DEMAND_DEBUG_PODS_DEFAULT=false
TNF_ENABLE_DATA_COLLECTION_DEFAULT=false
TNF_ENABLE_XML_CREATION=false
TNF_ENABLE_XML_CREATION_DEFAULT=false

get_container_tnf_kubeconfig_path_from_index() {
local local_path_index="$1"
Expand Down

0 comments on commit 664dbe6

Please sign in to comment.