Skip to content

Commit

Permalink
test(project): fix missing organization link
Browse files Browse the repository at this point in the history
  • Loading branch information
Serpentiel committed Oct 23, 2023
1 parent 70ba3fd commit 2bd4010
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions internal/sdkprovider/service/project/project_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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+%[email protected]"
email = "ivan.savciuc+%[1][email protected]"
member_type = "developer"
}
Expand All @@ -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 {
Expand Down

0 comments on commit 2bd4010

Please sign in to comment.