Skip to content

Commit 9780172

Browse files
committed
Modify duplicate test to prove proxyConfiguration is preserved
1 parent ed89721 commit 9780172

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test.bats

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ EOF
687687
echo "output = $output" 1>&2
688688
}
689689

690-
@test "test createNewTaskDefJson with single container in definition" {
690+
@test "test createNewTaskDefJson with existing proxyConfiguration value" {
691691
imageWithoutTag="121212345678.dkr.ecr.us-east-1.amazonaws.com/acct/repo"
692692
useImage="121212345678.dkr.ecr.us-east-1.amazonaws.com/acct/repo:1111111111"
693693
TASK_DEFINITION=$(cat <<EOF
@@ -733,12 +733,15 @@ EOF
733733
}
734734
],
735735
"placementConstraints": null,
736+
"proxyConfiguration": {
737+
"containerName": "example"
738+
},
736739
"revision": 123
737740
}
738741
}
739742
EOF
740743
)
741-
expected='{ "family": "app-task-def", "volumes": [], "containerDefinitions": [ { "environment": [ { "name": "KEY", "value": "value * " } ], "name": "API", "links": [], "mountPoints": [], "image": "121212345678.dkr.ecr.us-east-1.amazonaws.com/acct/repo:1111111111", "essential": true, "portMappings": [ { "protocol": "tcp", "containerPort": 80, "hostPort": 10080 } ], "entryPoint": [], "memory": 128, "command": [ "/data/run.sh" ], "cpu": 200, "volumesFrom": [] } ], "placementConstraints": null, "networkMode": "bridge" }'
744+
expected='{ "family": "app-task-def", "volumes": [], "containerDefinitions": [ { "environment": [ { "name": "KEY", "value": "value * " } ], "name": "API", "links": [], "mountPoints": [], "image": "121212345678.dkr.ecr.us-east-1.amazonaws.com/acct/repo:1111111111", "essential": true, "portMappings": [ { "protocol": "tcp", "containerPort": 80, "hostPort": 10080 } ], "entryPoint": [], "memory": 128, "command": [ "/data/run.sh" ], "cpu": 200, "volumesFrom": [] } ], "placementConstraints": null, "networkMode": "bridge", "proxyConfiguration": { "containerName": "example" } }'
742745
run createNewTaskDefJson
743746
[ ! -z $status ]
744747
[ "$(echo "$output" | jq .)" == "$(echo "$expected" | jq .)" ]

0 commit comments

Comments
 (0)