Skip to content

Commit

Permalink
[e2e] Add support to consume VC credential in test (vmware-tanzu#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyingd authored Dec 13, 2024
1 parent 0222a3d commit 1b65091
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ type TestOptions struct {
providerConfigPath string
logsExportDir string
operatorConfigPath string
vcUser string
vcPassword string
logsExportOnSuccess bool
debugLog bool
}
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func testMain(m *testing.M) int {
flag.StringVar(&testOptions.logsExportDir, "logs-export-dir", "", "Export directory for test logs")
flag.StringVar(&testOptions.operatorConfigPath, "operator-cfg-path", "/etc/nsx-ujo/ncp.ini", "config file for operator")
flag.BoolVar(&testOptions.logsExportOnSuccess, "logs-export-on-success", false, "Export logs even when a test is successful")
flag.StringVar(&testOptions.vcUser, "vc-user", "", "The username used to request vCenter API session")
flag.StringVar(&testOptions.vcPassword, "vc-password", "", "The password used by the user when requesting vCenter API session")
flag.BoolVar(&testOptions.debugLog, "debug", false, "")
flag.Parse()

Expand Down

0 comments on commit 1b65091

Please sign in to comment.