Skip to content

Commit b433511

Browse files
committed
add sleep
1 parent 0a442b9 commit b433511

File tree

4 files changed

+14
-10
lines changed
  • e2e-tests
    • demand-backup-incremental-sharded
    • demand-backup-incremental
    • demand-backup-physical-sharded
    • demand-backup-physical

4 files changed

+14
-10
lines changed

e2e-tests/demand-backup-incremental-sharded/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ run_recovery_check() {
5757
echo
5858

5959
wait_cluster_consistency ${cluster} 60
60+
sleep 5
6061
wait_for_pbm_operations ${cluster}
6162

6263
if [[ $base == true ]]; then

e2e-tests/demand-backup-incremental/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ run_recovery_check() {
5757
echo
5858

5959
wait_cluster_consistency ${cluster}
60+
sleep 5
6061
wait_for_pbm_operations ${cluster}
6162

6263
if [[ $base == true ]]; then

e2e-tests/demand-backup-physical-sharded/run

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ run_backup() {
1010
local storage=$1
1111
local backup_name=$2
1212

13-
cat $test_dir/conf/backup.yml |
14-
$sed -e "s/name:/name: ${backup_name}/" |
15-
$sed -e "s/storageName:/storageName: ${storage}/" |
16-
kubectl_bin apply -f -
13+
cat $test_dir/conf/backup.yml \
14+
| $sed -e "s/name:/name: ${backup_name}/" \
15+
| $sed -e "s/storageName:/storageName: ${storage}/" \
16+
| kubectl_bin apply -f -
1717
}
1818

1919
run_restore() {
2020
local backup_name=$1
2121

22-
cat $test_dir/conf/restore.yml |
23-
$sed -e "s/name:/name: restore-${backup_name}/" |
24-
$sed -e "s/backupName:/backupName: ${backup_name}/" |
25-
kubectl_bin apply -f -
22+
cat $test_dir/conf/restore.yml \
23+
| $sed -e "s/name:/name: restore-${backup_name}/" \
24+
| $sed -e "s/backupName:/backupName: ${backup_name}/" \
25+
| kubectl_bin apply -f -
2626
}
2727

2828
run_recovery_check() {
@@ -44,6 +44,7 @@ run_recovery_check() {
4444
echo
4545

4646
wait_cluster_consistency ${cluster} 42
47+
sleep 5
4748
wait_for_pbm_operations ${cluster}
4849

4950
compare_mongos_cmd "find" "myApp:myPass@${cluster}-mongos.${namespace}" "-sharded"
@@ -78,8 +79,8 @@ wait_for_running ${cluster}-cfg 3
7879
wait_for_running ${cluster}-mongos 3
7980
wait_cluster_consistency ${cluster}
8081

81-
lbEndpoint=$(kubectl_bin get svc $cluster-mongos -o=jsonpath='{.status}' |
82-
jq -r 'select(.loadBalancer != null and .loadBalancer.ingress != null and .loadBalancer.ingress != []) | .loadBalancer.ingress[0] | if .ip then .ip else .hostname end')
82+
lbEndpoint=$(kubectl_bin get svc $cluster-mongos -o=jsonpath='{.status}' \
83+
| jq -r 'select(.loadBalancer != null and .loadBalancer.ingress != null and .loadBalancer.ingress != []) | .loadBalancer.ingress[0] | if .ip then .ip else .hostname end')
8384
if [ -z $lbEndpoint ]; then
8485
echo "mongos service not exported correctly"
8586
exit 1

e2e-tests/demand-backup-physical/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ run_recovery_check() {
4444
echo
4545

4646
wait_cluster_consistency ${cluster}
47+
sleep 5
4748
wait_for_pbm_operations ${cluster}
4849

4950
compare_mongo_cmd "find" "myApp:myPass@${cluster}-rs0-0.${cluster}-rs0.${namespace}"

0 commit comments

Comments
 (0)