Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrissato committed Dec 23, 2020
1 parent 18c3d93 commit ffcdf92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion aws-redis-replication-group/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/gruntwork-io/terratest/modules/terraform"
)

func TestAWSRedisNode(t *testing.T) {
func TestAWSRedisReplicationGroup(t *testing.T) {
test := tftest.Test{

Setup: func(t *testing.T) *terraform.Options {
Expand All @@ -25,6 +25,9 @@ func TestAWSRedisNode(t *testing.T) {
env := tftest.UniqueID()
service := tftest.UniqueID()
owner := tftest.UniqueID()
replication_group_description := tftest.UniqueID()
transit_encryption_enabled := true
at_rest_encryption_enabled := true

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

Expand All @@ -39,6 +42,10 @@ func TestAWSRedisNode(t *testing.T) {
"subnets": privateSubnets,
"ingress_security_group_ids": []string{sg},
"vpc_id": vpc,

"replication_group_description": replication_group_description,
"transit_encryption_enabled": transit_encryption_enabled,
"at_rest_encryption_enabled": at_rest_encryption_enabled
},
)
},
Expand Down
2 changes: 1 addition & 1 deletion aws-redis-replication-group/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
output "primary_endpoint_address" {
value = aws_elasticache_replication_group.default.primary_endpoint_address
value = aws_elasticache_replication_group.default.primary_endpoint_address
}

output "configuration_endpoint_address" {
Expand Down

0 comments on commit ffcdf92

Please sign in to comment.