Skip to content

Commit

Permalink
fix: removing the typo from the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Sep 2, 2024
1 parent 8e66ec8 commit 753c3cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/utils/terraform/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestNewTerraformProvider(t *testing.T) {
"subscription_id": "injected",
"tenant_id": "injected",
"client_id": "injected",
"oi*dc_token_file_path": "/var/run/secrets/azure/tokens/azure-identity-token"
"oidc_token_file_path": "/var/run/secrets/azure/tokens/azure-identity-token"
}`

cases := []struct {
Expand All @@ -87,7 +87,6 @@ func TestNewTerraformProvider(t *testing.T) {
Provider: terraformv1alpha1.AWSProviderType,
Configuration: nil,
}},
//Expected: "provider \"aws\" {\n}\n",
Expected: "{\n \"provider\": {\n \"aws\": {}\n }\n",
},
{
Expand Down Expand Up @@ -116,7 +115,7 @@ func TestNewTerraformProvider(t *testing.T) {
Provider: terraformv1alpha1.AzureProviderType,
Configuration: &runtime.RawExtension{Raw: []byte(azureConfig)},
}},
Expected: "{\n \"provider\": {\n \"azurerm\": {\n \"client_id\": \"injected\",\n \"features\": {},\n \"oi*dc_token_file_path\": \"/var/run/secrets/azure/tokens/azure-identity-token\",\n \"storage_use_azuread\": true,\n \"subscription_id\": \"injected\",\n \"tenant_id\": \"injected\",\n \"use_oidc\": true\n }\n }\n}\n",
Expected: "{\n \"provider\": {\n \"azurerm\": {\n \"client_id\": \"injected\",\n \"features\": {},\n \"oidc_token_file_path\": \"/var/run/secrets/azure/tokens/azure-identity-token\",\n \"storage_use_azuread\": true,\n \"subscription_id\": \"injected\",\n \"tenant_id\": \"injected\",\n \"use_oidc\": true\n }\n }\n}\n",
},
}

Expand Down

0 comments on commit 753c3cd

Please sign in to comment.