Change bucket_policy_only into uniform_bucket_level_access in GCS module (#135)
* Change bucket_policy_only into bucket_policy_only * Update changelog
This commit is contained in:
committed by
GitHub
parent
0eaeea6251
commit
435d64d81a
@@ -17,7 +17,7 @@
|
||||
module "test" {
|
||||
source = "../../../../modules/gcs"
|
||||
project_id = "my-project"
|
||||
bucket_policy_only = var.bucket_policy_only
|
||||
uniform_bucket_level_access = var.uniform_bucket_level_access
|
||||
force_destroy = var.force_destroy
|
||||
iam_members = var.iam_members
|
||||
iam_roles = var.iam_roles
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
variable "bucket_policy_only" {
|
||||
variable "uniform_bucket_level_access" {
|
||||
type = map(bool)
|
||||
default = { bucket-a = false }
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ def test_prefix(plan_runner):
|
||||
def test_map_values(plan_runner):
|
||||
"Test that map values set the correct attributes on buckets."
|
||||
_, resources = plan_runner(FIXTURES_DIR)
|
||||
bpo = dict((r['values']['name'], r['values']['bucket_policy_only'])
|
||||
bpo = dict((r['values']['name'], r['values']['uniform_bucket_level_access'])
|
||||
for r in resources)
|
||||
assert bpo == {'bucket-a': False, 'bucket-b': True}
|
||||
force_destroy = dict((r['values']['name'], r['values']['force_destroy'])
|
||||
|
||||
Reference in New Issue
Block a user