Documentation ¶
Overview ¶
Package utils contains helper functions for the e2e tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupTestPlatform ¶
func SetupTestPlatform(t *testing.T, platform *types.TestPlatform)
SetupTestPlatform uses Terratest to create an EC2 instance. It then (on the new instance) downloads the repo specified by env var REPO_URL at the ref specified by env var GIT_BRANCH, installs Zarf, logs into registry1.dso.mil using env vars REGISTRY1_USERNAME and REGISTRY1_PASSWORD, builds all the packages, and deploys the init package, the flux package, and the software factory package. It is finished when the zarf command returns from deploying the software factory package. It is the responsibility of the test being run to do the appropriate waiting for services to come up.
Types ¶
This section is empty.