Skip to content

Commit 90bbd8e

Browse files
committed
add back prereq config
1 parent b20c474 commit 90bbd8e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

mmv1/third_party/terraform/services/resourcemanager/list_google_project_service_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ func TestAccProjectServiceListResource_queryIdentity(t *testing.T) {
2828
PreCheck: func() { acctest.AccTestPreCheck(t) },
2929
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
3030
Steps: []resource.TestStep{
31+
{
32+
Config: testAccProjectServiceList_prereq(project, service),
33+
Check: resource.ComposeTestCheckFunc(
34+
resource.TestCheckResourceAttr("google_project_service.prereq", "service", service),
35+
resource.TestCheckResourceAttr("google_project_service.prereq", "project", project),
36+
),
37+
},
3138
{
3239
Query: true,
3340
Config: testAccProjectServiceListQuery(project),
@@ -43,6 +50,15 @@ func TestAccProjectServiceListResource_queryIdentity(t *testing.T) {
4350
})
4451
}
4552

53+
func testAccProjectServiceList_prereq(project, service string) string {
54+
return fmt.Sprintf(`
55+
resource "google_project_service" "prereq" {
56+
project = %q
57+
service = %q
58+
}
59+
`, project, service)
60+
}
61+
4662
func testAccProjectServiceListQuery(project string) string {
4763
return fmt.Sprintf(`
4864
list "google_project_service" "all_in_project" {

0 commit comments

Comments
 (0)