Skip to content

Commit

Permalink
fixing GetValueMap test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Sep 28, 2022
1 parent d9c6b05 commit cbbc88d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/preset/cloud_preset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ func TestGetValueMap(t *testing.T) {
require.NoError(t, err)
os.Setenv("HCP_AUTH_URL", hcpMockServer.URL)
os.Setenv("HCP_API_HOST", mockServerURL.Host)
os.Setenv("HCP_CLIENT_ID", "fGY34fkOxcQmpkcygQmGHQZkEcLDhBde")
os.Setenv("HCP_CLIENT_SECRET", "8EWngREObMe90HNDN6oQv3YKQlRtVkg-28AgZylz1en0DHwyiE2pYCbwi61oF8dr")
bsConfig := getDeepCopyOfValidBootstrapConfig()
bsConfig.HCPConfig.APIHostname = mockServerURL.Host
bsConfig.HCPConfig.AuthURL = hcpMockServer.URL
Expand Down Expand Up @@ -173,8 +175,10 @@ func TestGetValueMap(t *testing.T) {
tc.postProcessingFunc()
})
}
os.Setenv("HCP_AUTH_URL", "")
os.Setenv("HCP_API_HOST", "")
os.Unsetenv("HCP_AUTH_URL")
os.Unsetenv("HCP_API_HOST")
os.Unsetenv("HCP_CLIENT_ID")
os.Unsetenv("HCP_CLIENT_SECRET")
}

// TestParseBootstrapConfigResponse tests that response string from agent bootstrap
Expand Down

0 comments on commit cbbc88d

Please sign in to comment.