Skip to content

Commit

Permalink
Use viewers in org test so that it doesn't revoke admin permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Nov 14, 2023
1 parent bfd56b0 commit 4ee4c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resources/grafana/resource_organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestAccOrganization_createManyUsers_longtest(t *testing.T) {
"grafana_organization.test", "name", "terraform-acc-test",
),
resource.TestCheckResourceAttr(
"grafana_organization.test", "admins.#", "1024",
"grafana_organization.test", "viewers.#", "1024",
),
),
},
Expand Down Expand Up @@ -450,6 +450,6 @@ resource "grafana_organization" "test" {
name = "terraform-acc-test"
admin_user = "admin"
create_users = false
admins = [ for user in grafana_user.users : user.email ]
viewers = [ for user in grafana_user.users : user.email ]
}
`

0 comments on commit 4ee4c50

Please sign in to comment.