Skip to content

Commit 81d2898

Browse files
committed
fix tests
1 parent b433511 commit 81d2898

File tree

4 files changed

+9
-2
lines changed
  • e2e-tests
    • demand-backup-incremental-sharded
    • demand-backup-incremental
    • demand-backup-physical-sharded
    • demand-backup-physical

4 files changed

+9
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ run_recovery_check() {
4949

5050
# we don't wait for cluster readiness here because the annotation gets removed then
5151
wait_restore "${backup_name}" "${cluster}" "ready" "0" "3000"
52-
kubectl_bin get psmdb ${cluster} -o yaml
52+
53+
sleep 5
54+
5355
if [ $(kubectl_bin get psmdb ${cluster} -o yaml | yq '.metadata.annotations."percona.com/resync-pbm"') == null ]; then
5456
log "psmdb/${cluster} should be annotated with percona.com/resync-pbm after a incremental restore"
5557
exit 1

e2e-tests/demand-backup-incremental/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ run_recovery_check() {
5050
# we don't wait for cluster readiness here because the annotation gets removed then
5151
wait_restore "${backup_name}" "${cluster}" "ready" "0" "1800"
5252

53+
sleep 5
54+
5355
if [ $(kubectl_bin get psmdb ${cluster} -o yaml | yq '.metadata.annotations."percona.com/resync-pbm"') == null ]; then
5456
log "psmdb/${cluster} should be annotated with percona.com/resync-pbm after a incremental restore"
5557
exit 1

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ run_recovery_check() {
3737
# we don't wait for cluster readiness here because the annotation gets removed then
3838
wait_restore "${backup_name}" "${cluster}" "ready" "0" "3000"
3939

40+
sleep 5
41+
4042
if [ $(kubectl_bin get psmdb ${cluster} -o yaml | yq '.metadata.annotations."percona.com/resync-pbm"') == null ]; then
4143
echo "psmdb/${cluster} should be annotated with percona.com/resync-pbm after a physical restore"
4244
exit 1

e2e-tests/demand-backup-physical/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ run_recovery_check() {
3737
# we don't wait for cluster readiness here because the annotation gets removed then
3838
wait_restore "${backup_name}" "${cluster}" "ready" "0" "1800"
3939

40+
sleep 5
41+
4042
if [ $(kubectl_bin get psmdb ${cluster} -o yaml | yq '.metadata.annotations."percona.com/resync-pbm"') == null ]; then
4143
echo "psmdb/${cluster} should be annotated with percona.com/resync-pbm after a physical restore"
4244
exit 1
4345
fi
4446
echo
4547

4648
wait_cluster_consistency ${cluster}
47-
sleep 5
4849
wait_for_pbm_operations ${cluster}
4950

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

0 commit comments

Comments
 (0)