Skip to content

Commit

Permalink
Update e2e-tests/pitr-physical/run
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
hors and github-actions[bot] authored Mar 20, 2024
1 parent 3bc337c commit 9e0629d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e-tests/pitr-physical/run
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ check_recovery() {
fi

desc "check restore by $restore_type"
cat $test_dir/conf/restore.yml |
$sed -e "s/name:/name: restore-$backup_name/" |
$sed -e "s/backupName:/backupName: $backup_name/" |
$sed -e "s/type:/type: $restore_type/" |
if [ -z "$restore_date" ]; then $sed -e "/date:/d"; else $sed -e "s/date:/date: $(format_date ${restore_date})/"; fi |
kubectl_bin apply -f -
cat $test_dir/conf/restore.yml \
| $sed -e "s/name:/name: restore-$backup_name/" \
| $sed -e "s/backupName:/backupName: $backup_name/" \
| $sed -e "s/type:/type: $restore_type/" \
| if [ -z "$restore_date" ]; then $sed -e "/date:/d"; else $sed -e "s/date:/date: $(format_date ${restore_date})/"; fi \
| kubectl_bin apply -f -

# fail faster if we don't reach requested status until some time
wait_restore "$backup_name" "$cluster_name" "requested" "0" "900"
Expand Down

0 comments on commit 9e0629d

Please sign in to comment.