Skip to content

Commit

Permalink
fix connection_resource_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Otake0114 committed Mar 4, 2025
1 parent d17ac05 commit 76ce0b4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/provider/connection_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,24 @@ func TestAccConnectionResource(t *testing.T) {
resource.TestCheckResourceAttrSet("trocco_connection.postgresql_test", "id"),
),
},
// Google Analytics4
{
Config: providerConfig + `
resource "trocco_connection" "google_analytics4_test" {
connection_type = "google_analytics4"
name = "test"
description = "test"
service_account_json_key = "{\"type\":\"service_account\",\"project_id\":\"\",\"private_key_id\":\"\",\"private_key\":\"\"}"
}
`,
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\":\"\",\"private_key_id\":\"\",\"private_key\":\"\"}"),
resource.TestCheckResourceAttrSet("trocco_connection.google_analytics4_test", "id"),
),
},
},
})
}
Expand Down

0 comments on commit 76ce0b4

Please sign in to comment.