diff --git a/modules/k8s/config_test.go b/modules/k8s/config_test.go index be0246fcf..144847bf7 100644 --- a/modules/k8s/config_test.go +++ b/modules/k8s/config_test.go @@ -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) { @@ -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) { @@ -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 @@ -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 ` @@ -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 `