Skip to content

Commit c73a071

Browse files
committed
Run shfmt on split-horizon test
1 parent b944512 commit c73a071

File tree

1 file changed

+7
-7
lines changed
  • e2e-tests/split-horizon

1 file changed

+7
-7
lines changed

e2e-tests/split-horizon/run

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ configure_client_hostAliases() {
1616
hostAliasesJson=$(echo $hostAliasesJson | jq --argjson newAlias "$hostAlias" '. += [$newAlias]')
1717
done
1818

19-
kubectl_bin patch deployment psmdb-client --type='json' -p="[{'op': 'replace', 'path': '/spec/template/spec/hostAliases', 'value': $hostAliasesJson}]"
19+
kubectl_bin patch deployment psmdb-client --type='json' -p="[{'op': 'replace', 'path': '/spec/template/spec/hostAliases', 'value': $hostAliasesJson}]"
2020

2121
wait_pod $(kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}')
2222
}
@@ -51,22 +51,22 @@ diff $test_dir/compare/horizons-3.json $tmp_dir/horizons-3.json
5151
isMaster=$(run_mongo_tls "db.isMaster().ismaster" "clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" mongodb "" "--quiet" | egrep -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:' | grep -v certificateNames)
5252
if [ "${isMaster}" != "true" ]; then
5353
collect_k8s_logs
54-
echo "mongo client should've redirect the connection to primary"
55-
exit 1
54+
echo "mongo client should've redirect the connection to primary"
55+
exit 1
5656
fi
5757

5858
# stepping down to ensure we haven't redirected to primary just because primary is pod-0
5959
run_mongo_tls "rs.stepDown()" \
60-
"clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" \
61-
mongodb "" "--quiet"
60+
"clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" \
61+
mongodb "" "--quiet"
6262

6363
sleep 10 # give some time for re-election
6464

6565
isMaster=$(run_mongo_tls "db.isMaster().ismaster" "clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" mongodb "" "--quiet" | egrep -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:' | grep -v certificateNames)
6666
if [ "${isMaster}" != "true" ]; then
6767
collect_k8s_logs
68-
echo "mongo client should've redirect the connection to primary"
69-
exit 1
68+
echo "mongo client should've redirect the connection to primary"
69+
exit 1
7070
fi
7171

7272
apply_cluster ${test_dir}/conf/${cluster}-5horizons.yml

0 commit comments

Comments
 (0)