Skip to content

Commit b55a2f2

Browse files
committed
Bug fix: Service Discovery Service Name is correctly set from ECS Params
1 parent 2de83fe commit b55a2f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ecs-cli/modules/cli/servicediscovery/servicediscovery_app_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
const (
3838
testClusterName = "cluster"
3939
testServiceName = "service"
40-
otherTestServiceName = "some-other-name"
40+
nonDefaultSDSName = "some-custom-name"
4141
testDescription = "clyde loves pudding"
4242
otherTestDescription = "pudding plays hard to get"
4343
testNamespaceStackName = "amazon-ecs-cli-setup-private-dns-namespace-cluster-service"
@@ -232,7 +232,7 @@ func TestCreateServiceDiscoveryWithECSParams(t *testing.T) {
232232
Description: testDescription,
233233
},
234234
ServiceDiscoveryService: utils.ServiceDiscoveryService{
235-
Name: otherTestServiceName,
235+
Name: nonDefaultSDSName,
236236
Description: testDescription,
237237
DNSConfig: utils.DNSConfig{
238238
TTL: aws.Int64(60),
@@ -251,7 +251,7 @@ func TestCreateServiceDiscoveryWithECSParams(t *testing.T) {
251251
}
252252
var validateSDS validateSDSParamsFunc = func(t *testing.T, cfnParams *cloudformation.CfnStackParams) {
253253
validateCFNParam(testNamespaceID, parameterKeyNamespaceID, cfnParams, t)
254-
validateCFNParam(otherTestServiceName, parameterKeySDSName, cfnParams, t)
254+
validateCFNParam(nonDefaultSDSName, parameterKeySDSName, cfnParams, t)
255255
validateCFNParam(servicediscovery.RecordTypeSrv, parameterKeyDNSType, cfnParams, t)
256256
validateCFNParam(testDescription, parameterKeySDSDescription, cfnParams, t)
257257
validateCFNParam("60", parameterKeyDNSTTL, cfnParams, t)

0 commit comments

Comments
 (0)