-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): Add integ test cases for ECS CreateServerGroup for task d…
…efinitions input and artifacts (#5042) Co-authored-by: Parag Bhingre <pbhingre@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
96cd916
commit df785b0
Showing
5 changed files
with
273 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...startifacts/createServerGroup-artifact-EC2-targetGroup-WithNoContainers-artifactFile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"family": "PLACEHOLDER", | ||
"containerDefinitions": [], | ||
"cpu": "256", | ||
"memory": "512", | ||
"requiresCompatibilities": [ | ||
"EC2" | ||
], | ||
"executionRoleArn": "arn:aws:iam:::executionRole/testExecutionRole:1", | ||
"networkMode": "bridge", | ||
"taskRoleArn" : "arn:aws:iam:::role/testTaskRole:1" | ||
} |
38 changes: 38 additions & 0 deletions
38
...c/integration/resources/testoperations/createServerGroup-inputs-ec2-serviceDiscovery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"account": "ecs-account", | ||
"application": "ecs", | ||
"availabilityZones": { | ||
"us-west-1": [ | ||
"us-west-1a", | ||
"us-west-1c" | ||
] | ||
}, | ||
"capacity": { | ||
"desired": 1, | ||
"max": 1, | ||
"min": 1 | ||
}, | ||
"cloudProvider": "ecs", | ||
"computeUnits": 256, | ||
"credentials": "ecs-account", | ||
"dockerImageAddress": "nginx", | ||
"ecsClusterName": "integInputsEc2WithServiceDiscovery-cluster", | ||
"launchType": "EC2", | ||
"networkMode": "bridge", | ||
"placementStrategySequence": [], | ||
"reservedMemory": 512, | ||
"stack": "integInputsEc2WithServiceDiscovery", | ||
"serviceDiscoveryAssociations": [ | ||
{ | ||
"containerPort": 80, | ||
"registry": { | ||
"account": "ecs-my-aws-devel-acct", | ||
"arn": "arn:aws:servicediscovery:us-west-2:910995322324:service/srv-ckeydmrhzmqh6yfz", | ||
"displayName": "spinnaker-ecs-demo-artifacts1 (srv-ckeydmrhzmqh6yfz)", | ||
"id": "srv-ckeydmrhzmqh6yfz", | ||
"name": "spinnaker-ecs-demo-artifacts1", | ||
"region": "us-west-2" | ||
} | ||
} | ||
] | ||
} |
26 changes: 26 additions & 0 deletions
26
...ntegration/resources/testoperations/createServerGroup-inputs-ec2-withoutLoadBalacing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"account": "ecs-account", | ||
"application": "ecs", | ||
"availabilityZones": { | ||
"us-west-1": [ | ||
"us-west-1a", | ||
"us-west-1c" | ||
] | ||
}, | ||
"capacity": { | ||
"desired": 1, | ||
"max": 1, | ||
"min": 1 | ||
}, | ||
"cloudProvider": "ecs", | ||
"computeUnits": 256, | ||
"containerPort": 80, | ||
"credentials": "ecs-account", | ||
"dockerImageAddress": "nginx", | ||
"ecsClusterName": "integInputsEc2NoLoadBalancing-cluster", | ||
"launchType": "EC2", | ||
"networkMode": "bridge", | ||
"placementStrategySequence": [], | ||
"reservedMemory": 512, | ||
"stack": "integInputsEc2NoLoadBalancing" | ||
} |