rename iam variables in gcs module

This commit is contained in:
Ludovico Magnocavallo
2020-11-04 16:57:06 +01:00
parent bf23199724
commit 9d0db19c5e
6 changed files with 13 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ module "test" {
project_id = "my-project"
uniform_bucket_level_access = var.uniform_bucket_level_access
force_destroy = var.force_destroy
iam_members = var.iam_members
iam = var.iam
labels = var.labels
logging_config = var.logging_config
name = "bucket-a"

View File

@@ -24,8 +24,8 @@ variable "force_destroy" {
default = true
}
variable "iam_members" {
type = map(set(string))
variable "iam" {
type = map(list(string))
default = {}
}

View File

@@ -55,7 +55,6 @@ def test_config_values(plan_runner):
def test_iam(plan_runner):
"Test bucket resources with iam roles and members."
iam_members = '{ "roles/storage.admin" = ["user:a@b.com"] }'
_, resources = plan_runner(
FIXTURES_DIR, iam_members=iam_members)
iam = '{ "roles/storage.admin" = ["user:a@b.com"] }'
_, resources = plan_runner(FIXTURES_DIR, iam=iam)
assert len(resources) == 2