Skip to content

Commit 1b574b5

Browse files
committed
fix: improve outputs and tests
1 parent b09b0c3 commit 1b574b5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ output "security_group_name" {
9999
}
100100

101101
output "ssm_key_paths" {
102-
value = one(module.parameter_store_write[*].names)
102+
value = var.ssm_parameters_enabled ? one(module.parameter_store_write[*].names) : null
103103
description = "Names (key paths) of all SSM parameters stored for this msk cluster"
104104
}
105105

test/component_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (s *ComponentSuite) TestEnabledFlag() {
7979
const awsRegion = "us-east-2"
8080

8181
suffix := strings.ToLower(random.UniqueId())
82-
inputs := map[string]interface{}{
82+
inputs := map[string]any{
8383
"name": "msk-" + suffix,
8484
}
8585

@@ -92,8 +92,8 @@ func TestRunSuite(t *testing.T) {
9292
suite.AddDependency(t, "vpc", "default-test", nil)
9393

9494
subdomain := strings.ToLower(random.UniqueId())
95-
inputs := map[string]interface{}{
96-
"zone_config": []map[string]interface{}{
95+
inputs := map[string]any{
96+
"zone_config": []map[string]any{
9797
{
9898
"subdomain": subdomain,
9999
"zone_name": "components.cptest.test-automation.app",

test/fixtures/stacks/catalog/usecase/basic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ components:
5555
# A list of IPv4 CIDRs to allow access to the cluster security group
5656
allowed_cidr_blocks: []
5757
# Write connection strings to SSM
58-
ssm_parameters_enabled: true
58+
ssm_parameters_enabled: true

0 commit comments

Comments
 (0)