Skip to content

Commit

Permalink
Removed deprecated field
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed May 29, 2023
1 parent 1089102 commit 624dd22
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/k8s/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestDeleteConfigContext(t *testing.T) {
data, err := ioutil.ReadFile(path)
require.NoError(t, err)
storedConfig := string(data)
assert.Equal(t, storedConfig, BASIC_CONFIG)
assert.Equal(t, BASIC_CONFIG, storedConfig)
}

func TestDeleteConfigContextWithAnotherContextRemaining(t *testing.T) {
Expand All @@ -46,7 +46,7 @@ func TestDeleteConfigContextWithAnotherContextRemaining(t *testing.T) {
data, err := ioutil.ReadFile(path)
require.NoError(t, err)
storedConfig := string(data)
assert.Equal(t, storedConfig, EXPECTED_CONFIG_AFTER_EXTRA_MINIKUBE_DELETED_NO_GARBAGE)
assert.Equal(t, EXPECTED_CONFIG_AFTER_EXTRA_MINIKUBE_DELETED_NO_GARBAGE, storedConfig)
}

func TestRemoveOrphanedClusterAndAuthInfoConfig(t *testing.T) {
Expand Down Expand Up @@ -92,7 +92,7 @@ func removeOrphanedClusterAndAuthInfoConfigTestFunc(t *testing.T, inputConfig st
data, err := ioutil.ReadFile(path)
require.NoError(t, err)
storedConfig := string(data)
assert.Equal(t, storedConfig, expectedOutputConfig)
assert.Equal(t, expectedOutputConfig, storedConfig)
}

// Various example configs used in testing the config manipulation functions
Expand All @@ -114,7 +114,6 @@ preferences: {}
users:
- name: minikube
user:
as-user-extra: null
client-certificate: /home/terratest/.minikube/client.crt
client-key: /home/terratest/.minikube/client.key
`
Expand Down Expand Up @@ -265,7 +264,6 @@ preferences: {}
users:
- name: minikube
user:
as-user-extra: null
client-certificate: /home/terratest/.minikube/client.crt
client-key: /home/terratest/.minikube/client.key
`

0 comments on commit 624dd22

Please sign in to comment.