diff --git a/internal/sdkprovider/service/project/project_user_test.go b/internal/sdkprovider/service/project/project_user_test.go index d91dc8ee5..326429e24 100644 --- a/internal/sdkprovider/service/project/project_user_test.go +++ b/internal/sdkprovider/service/project/project_user_test.go @@ -83,14 +83,19 @@ func testAccCheckAivenProjectUserResourceDestroy(s *terraform.State) error { func testAccProjectUserResource(name string) string { return fmt.Sprintf(` +resource "aiven_organization" "foo" { + name = "test-acc-org-%[1]s" +} + resource "aiven_project" "foo" { - project = "test-acc-pr-%s" + project = "test-acc-pr-%[1]s" default_cloud = "aws-eu-west-2" + parent_id = aiven_organization.foo.id } resource "aiven_project_user" "bar" { project = aiven_project.foo.project - email = "ivan.savciuc+%s@aiven.fi" + email = "ivan.savciuc+%[1]s@aiven.fi" member_type = "admin" } @@ -99,7 +104,7 @@ data "aiven_project_user" "user" { email = aiven_project_user.bar.email depends_on = [aiven_project_user.bar] -}`, name, name) +}`, name) } func testAccProjectUserDeveloperResource(name string) string {