metering-operator icon indicating copy to clipboard operation
metering-operator copied to clipboard

The e2e suite does not support setting custom flags from environment variables.

Open timflannagan opened this issue 5 years ago • 0 comments

When running the e2e suite, either by the Makefile target(s) or just outright using go test ..., the e2e suite only allows setting a small subset of the total flags using environment variables.

If we take a look at the init() function for the e2e package we can see only the image variables are respected:

package e2e
...
func init() {
	runAWSBillingTests = os.Getenv("ENABLE_AWS_BILLING_TESTS") == "true"

	meteringOperatorImageRepo = os.Getenv("METERING_OPERATOR_IMAGE_REPO")
	meteringOperatorImageTag = os.Getenv("METERING_OPERATOR_IMAGE_TAG")
	reportingOperatorImageRepo = os.Getenv("REPORTING_OPERATOR_IMAGE_REPO")
	reportingOperatorImageTag = os.Getenv("REPORTING_OPERATOR_IMAGE_TAG")
}

timflannagan avatar Aug 21 '20 18:08 timflannagan