From 2bd40104667ea56eba44d39ec9cc3902250067e6 Mon Sep 17 00:00:00 2001 From: Aleksander Zaruczewski Date: Mon, 23 Oct 2023 05:28:40 -0400 Subject: [PATCH] test(project): fix missing organization link --- .../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 326429e24..de5d70d97 100644 --- a/internal/sdkprovider/service/project/project_user_test.go +++ b/internal/sdkprovider/service/project/project_user_test.go @@ -109,14 +109,19 @@ data "aiven_project_user" "user" { func testAccProjectUserDeveloperResource(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 = "developer" } @@ -125,7 +130,7 @@ data "aiven_project_user" "user" { email = aiven_project_user.bar.email depends_on = [aiven_project_user.bar] -}`, name, name) +}`, name) } func testAccCheckAivenProjectUserAttributes(n string) resource.TestCheckFunc {