Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 8c4030d

Browse files
committed
fix(e2e): do not fail when there's 2 or more cfn stacks named exactly the same
1 parent 96f3f9c commit 8c4030d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

e2e/run

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ conformance() {
132132
master_host=$(aws ec2 describe-instances --output json --query "Reservations[].Instances[]
133133
| [?Tags[?Key==\`aws:cloudformation:stack-name\`].Value|[0]==\`${KUBE_AWS_CLUSTER_NAME}\`]
134134
| [?Tags[?Key==\`aws:cloudformation:logical-id\`].Value|[0]==\`AutoScaleController\`][]
135+
| [?State.Name==\`running\`][]
135136
| []" | jq -r 'map({InstanceId: .InstanceId, PublicIpAddress: .PublicIpAddress}) | first | .PublicIpAddress'
136137
)
137138

@@ -146,6 +147,7 @@ conformance_result() {
146147
master_host=$(aws ec2 describe-instances --output json --query "Reservations[].Instances[]
147148
| [?Tags[?Key==\`aws:cloudformation:stack-name\`].Value|[0]==\`${KUBE_AWS_CLUSTER_NAME}\`]
148149
| [?Tags[?Key==\`aws:cloudformation:logical-id\`].Value|[0]==\`AutoScaleController\`][]
150+
| [?State.Name==\`running\`][]
149151
| []" | jq -r 'map({InstanceId: .InstanceId, PublicIpAddress: .PublicIpAddress}) | first | .PublicIpAddress'
150152
)
151153

0 commit comments

Comments
 (0)