Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppTestOptions ¶
type AppTestOptions struct { ConfigureGitFn environments.ConfigureGitFn CommonOptions *cmd.CommonOptions FakeGitProvider *gits.FakeProvider DevRepo *gits.FakeRepository DevEnvRepo *gits.FakeRepository OrgName string DevEnvRepoInfo *gits.GitRepository DevEnv *jenkinsv1.Environment MockHelmer *helm_test.MockHelmer MockFactory *cmd_test.MockFactory MockVaultClient *vault_test.MockClient }
AppTestOptions contains all useful data from the test environment initialized by `prepareInitialPromotionEnv`
func CreateAppTestOptions ¶
func CreateAppTestOptions(gitOps bool, t *testing.T) *AppTestOptions
CreateAppTestOptions configures the mock environment for running apps related tests
func (*AppTestOptions) AddApp ¶
func (o *AppTestOptions) AddApp() (name string, alias string, version string, err error)
AddApp modifies the environment git repo directly to add a dummy app
func (*AppTestOptions) Cleanup ¶
func (o *AppTestOptions) Cleanup() error
Cleanup must be run in a defer statement whenever CreateAppTestOptions is run
Click to show internal directories.
Click to hide internal directories.