Skip to content

Commit 1441f9e

Browse files
authored
bug: cwm - fix flakey test due to length limitation (#59)
Changes introduced by #58 is causing tests to fail if the `random` provider returns a long-ish name. If this doesn't end up working long term we can go a bit more 'brute force' and wrap the left side of `name` with `substr()`
1 parent da47d9f commit 1441f9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/cloudwatch-metrics.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module "cloudwatch_metrics_defaults" {
22
source = "../modules/cloudwatch-metrics"
33

4-
name = "cwmetrics-defaults-${random_pet.this.id}"
4+
name = "cwm-default-${random_pet.this.id}"
55

66
honeycomb_api_host = var.honeycomb_api_host
77
honeycomb_api_key = var.honeycomb_api_key
@@ -13,7 +13,7 @@ module "cloudwatch_metrics_defaults" {
1313
module "cloudwatch_metrics_legacy" {
1414
source = "../modules/cloudwatch-metrics"
1515

16-
name = "cwmetrics-legacy-${random_pet.this.id}"
16+
name = "cwm-legacy-${random_pet.this.id}"
1717

1818
honeycomb_api_host = var.honeycomb_api_host
1919
honeycomb_api_key = var.honeycomb_api_key
@@ -27,7 +27,7 @@ module "cloudwatch_metrics_legacy" {
2727
module "cloudwatch_metrics" {
2828
source = "../modules/cloudwatch-metrics"
2929

30-
name = "cwmetrics-${random_pet.this.id}"
30+
name = "cwm-${random_pet.this.id}"
3131

3232
honeycomb_api_host = var.honeycomb_api_host
3333
honeycomb_api_key = var.honeycomb_api_key

0 commit comments

Comments
 (0)