Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Otake0114 committed Mar 4, 2025
1 parent 251f2fd commit fac7a4d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions internal/provider/connection_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,15 @@ func TestAccConnectionResource(t *testing.T) {
connection_type = "google_analytics4"
name = "test"
description = "test"
service_account_json_key = <<JSON
{
"type": "service_account",
"project_id": "create_project_id",
"private_key_id": "create_private_key_id",
"private_key": "create_private_key",
"client_email": "create_client_email",
"client_id": "create_client_id"
}
JSON
service_account_json_key = "{\"type\":\"service_account\",\"project_id\":\"create_project_id\",\"private_key_id\":\"create_private_key_id\",\"private_key\":\"create_private_key\",\"client_email\":\"create_client_email\",\"client_id\":\"create_client_id\"}"
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("trocco_connection.google_analytics4_test", "connection_type", "google_analytics4"),
resource.TestCheckResourceAttr("trocco_connection.google_analytics4_test", "name", "test"),
resource.TestCheckResourceAttr("trocco_connection.google_analytics4_test", "description", "test"),
resource.TestCheckResourceAttr("trocco_connection.google_analytics4_test", "service_account_json_key", "{\"type\":\"service_account\",\"project_id\":\"create_project_id\",\"private_key_id\":\"create_private_key_id\",\"private_key\":\"create_private_key\",\"client_email\":\"create_client_email\",\"client_id\":\"create_client_id\"}"),
resource.TestCheckResourceAttr("trocco_connection.google_analytics4_test", "service_account_json_key",
"{\"type\":\"service_account\",\"project_id\":\"create_project_id\",\"private_key_id\":\"create_private_key_id\",\"private_key\":\"create_private_key\",\"client_email\":\"create_client_email\",\"client_id\":\"create_client_id\"}"),
resource.TestCheckResourceAttrSet("trocco_connection.google_analytics4_test", "id"),
),
},
Expand Down

0 comments on commit fac7a4d

Please sign in to comment.