Skip to content

Commit ffcdf92

Browse files
committed
Fix unit tests
1 parent 18c3d93 commit ffcdf92

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

aws-redis-replication-group/module_test.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/gruntwork-io/terratest/modules/terraform"
1111
)
1212

13-
func TestAWSRedisNode(t *testing.T) {
13+
func TestAWSRedisReplicationGroup(t *testing.T) {
1414
test := tftest.Test{
1515

1616
Setup: func(t *testing.T) *terraform.Options {
@@ -25,6 +25,9 @@ func TestAWSRedisNode(t *testing.T) {
2525
env := tftest.UniqueID()
2626
service := tftest.UniqueID()
2727
owner := tftest.UniqueID()
28+
replication_group_description := tftest.UniqueID()
29+
transit_encryption_enabled := true
30+
at_rest_encryption_enabled := true
2831

2932
az := fmt.Sprintf("%sa", tftest.DefaultRegion)
3033

@@ -39,6 +42,10 @@ func TestAWSRedisNode(t *testing.T) {
3942
"subnets": privateSubnets,
4043
"ingress_security_group_ids": []string{sg},
4144
"vpc_id": vpc,
45+
46+
"replication_group_description": replication_group_description,
47+
"transit_encryption_enabled": transit_encryption_enabled,
48+
"at_rest_encryption_enabled": at_rest_encryption_enabled
4249
},
4350
)
4451
},

aws-redis-replication-group/outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
output "primary_endpoint_address" {
2-
value = aws_elasticache_replication_group.default.primary_endpoint_address
2+
value = aws_elasticache_replication_group.default.primary_endpoint_address
33
}
44

55
output "configuration_endpoint_address" {

0 commit comments

Comments
 (0)