Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

test: E2E fix scale test indexing out of bounds #3873

Merged
merged 2 commits into from
Oct 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/e2e/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ if [ -n "$ADD_NODE_POOL_INPUT" ]; then
fi

if [ "${SCALE_CLUSTER}" = "true" ]; then
nodepools=$(jq -r '.properties.agentPoolProfiles[].name' < _output/$RESOURCE_GROUP/apimodel.json)
for ((i = 0; i <= ${#nodepools[@]}; ++i)); do
nodepoolcount=$(jq '.properties.agentPoolProfiles| length' < _output/$RESOURCE_GROUP/apimodel.json)
for ((i = 0; i < $nodepoolcount; ++i)); do
nodepool=$(jq -r --arg i $i '. | .properties.agentPoolProfiles[$i | tonumber].name' < _output/$RESOURCE_GROUP/apimodel.json)
if [ "${UPDATE_NODE_POOLS}" = "true" ]; then
# modify the master VM SKU to simulate vertical vm scaling via upgrade
Expand Down