From a5f39d0fa04eff6a0d6b61b0a3d7177ca6d3d2ec Mon Sep 17 00:00:00 2001 From: Aleksander Zaruczewski Date: Sun, 22 Oct 2023 17:11:08 -0400 Subject: [PATCH] test(project): fix filing tests --- .../sdkprovider/service/project/project_user_test.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 {