Skip to content

Commit

Permalink
Test and description updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma committed Feb 6, 2024
1 parent 0a2807c commit 63813ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/module-test-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
run: |
pushd ci/template-test
terraform init
terraform validate
# Create
terraform plan
terraform apply -auto-approve
Expand All @@ -41,6 +42,7 @@ jobs:
run: |
pushd ci/module-test
terraform init
terraform validate
# Create
terraform plan
terraform apply -auto-approve
Expand Down
6 changes: 3 additions & 3 deletions internal/gen-template/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ variable "msg_vpn_name" {
}

variable "endpoint_type" {
description = "Queue endpoint type"
description = "Queue endpoint type. Must be one of `queue`, `topic_endpoint`, `queue_template` or `topic_endpoint_template`."
type = string
validation {
condition = contains(["queue", "topic_endpoint", "queue_template", "topic_endpoint_template"], var.endpoint_type)
error_message = "The endpoint_type must be one of 'queue', 'topic_endpoint', 'queue_template' or 'topic_endpoint_template'."
error_message = "The endpoint_type must be one of `queue`, `topic_endpoint`, `queue_template` or `topic_endpoint_template`."
}
}

Expand All @@ -20,7 +20,7 @@ variable "endpoint_name" {
}

variable "queue_subscription_topics" {
description = "List of queue subscription topics. Only valid if endpoint type is 'queue'."
description = "List of queue subscription topics. Only valid if endpoint type is `queue`."
type = list(string)
default = []
}
Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ variable "msg_vpn_name" {
}

variable "endpoint_type" {
description = "Queue endpoint type"
description = "Queue endpoint type. Must be one of `queue`, `topic_endpoint`, `queue_template` or `topic_endpoint_template`."
type = string
validation {
condition = contains(["queue", "topic_endpoint", "queue_template", "topic_endpoint_template"], var.endpoint_type)
error_message = "The endpoint_type must be one of 'queue', 'topic_endpoint', 'queue_template' or 'topic_endpoint_template'."
error_message = "The endpoint_type must be one of `queue`, `topic_endpoint`, `queue_template` or `topic_endpoint_template`."
}
}

Expand All @@ -20,7 +20,7 @@ variable "endpoint_name" {
}

variable "queue_subscription_topics" {
description = "List of queue subscription topics. Only valid if endpoint type is 'queue'."
description = "List of queue subscription topics. Only valid if endpoint type is `queue`."
type = list(string)
default = []
}
Expand Down

0 comments on commit 63813ec

Please sign in to comment.