Skip to content

Commit

Permalink
fixed the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Dec 7, 2022
1 parent bb0791c commit ec9e692
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/providers/nutanix/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ func testNutanixProvider(t *testing.T, nutanixClient Client, kubectl *executable
"eksa-unit-test": machineConf,
}

t.Setenv(constants.NutanixUsernameKey, "admin")
t.Setenv(constants.NutanixPasswordKey, "password")
t.Setenv(constants.EksaNutanixUsernameKey, "admin")
t.Setenv(constants.EksaNutanixPasswordKey, "password")

provider := NewProvider(dcConf, workerConfs, clusterConf, kubectl, nutanixClient, certValidator, httpClient, time.Now)
require.NotNil(t, provider)
Expand Down Expand Up @@ -783,8 +783,8 @@ func TestNutanixProviderEnvMap(t *testing.T) {
})

t.Run("required envs set", func(t *testing.T) {
t.Setenv(constants.EksaNutanixUsernameKey, "nutanix")
t.Setenv(constants.EksaNutanixPasswordKey, "nutanix")
t.Setenv(constants.NutanixUsernameKey, "nutanix")
t.Setenv(constants.NutanixPasswordKey, "nutanix")
t.Setenv(nutanixEndpointKey, "prism.nutanix.com")

envMap, err := provider.EnvMap(clusterSpec)
Expand Down

0 comments on commit ec9e692

Please sign in to comment.