@@ -37,6 +37,7 @@ import (
37
37
const (
38
38
testClusterName = "cluster"
39
39
testServiceName = "service"
40
+ otherTestServiceName = "some-other-name"
40
41
testDescription = "clyde loves pudding"
41
42
otherTestDescription = "pudding plays hard to get"
42
43
testNamespaceStackName = "amazon-ecs-cli-setup-private-dns-namespace-cluster-service"
@@ -231,7 +232,7 @@ func TestCreateServiceDiscoveryWithECSParams(t *testing.T) {
231
232
Description : testDescription ,
232
233
},
233
234
ServiceDiscoveryService : utils.ServiceDiscoveryService {
234
- Name : testServiceName ,
235
+ Name : otherTestServiceName ,
235
236
Description : testDescription ,
236
237
DNSConfig : utils.DNSConfig {
237
238
TTL : aws .Int64 (60 ),
@@ -250,7 +251,7 @@ func TestCreateServiceDiscoveryWithECSParams(t *testing.T) {
250
251
}
251
252
var validateSDS validateSDSParamsFunc = func (t * testing.T , cfnParams * cloudformation.CfnStackParams ) {
252
253
validateCFNParam (testNamespaceID , parameterKeyNamespaceID , cfnParams , t )
253
- validateCFNParam (testServiceName , parameterKeySDSName , cfnParams , t )
254
+ validateCFNParam (otherTestServiceName , parameterKeySDSName , cfnParams , t )
254
255
validateCFNParam (servicediscovery .RecordTypeSrv , parameterKeyDNSType , cfnParams , t )
255
256
validateCFNParam (testDescription , parameterKeySDSDescription , cfnParams , t )
256
257
validateCFNParam ("60" , parameterKeyDNSTTL , cfnParams , t )
0 commit comments