extend gcs module tests to cover new variables

This commit is contained in:
Ludovico Magnocavallo
2020-09-03 19:19:41 +02:00
parent 9e32b32b3d
commit 120e1be1d9
4 changed files with 61 additions and 22 deletions

View File

@@ -56,6 +56,15 @@ variable "location" {
default = "EU"
}
variable "logging_config" {
description = "Per-bucket logging."
type = map(object({
log_bucket = string
log_object_prefix = string
}))
default = {}
}
variable "names" {
description = "Bucket name suffixes."
type = list(string)
@@ -72,6 +81,15 @@ variable "project_id" {
type = string
}
variable "retention_policies" {
description = "Per-bucket retention policy."
type = map(object({
retention_period = number
is_locked = bool
}))
default = {}
}
variable "storage_class" {
description = "Bucket storage class."
type = string
@@ -83,21 +101,3 @@ variable "versioning" {
type = map(bool)
default = {}
}
variable "retention_policies" {
description = "Per-bucket retention policy."
type = map(object({
retention_period = number
is_locked = bool
}))
default = {}
}
variable "logging_config" {
description = "Per-bucket logging."
type = map(object({
log_bucket = string
log_object_prefix = string
}))
default = {}
}