Skip to content

Commit 3f21319

Browse files
committed
test: update backup script assertions
1 parent f4e4a30 commit 3f21319

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/integration/ops/test_runbook_paths.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ def test_runbook_mentions_reindex_recovery() -> None:
1010
cron_script = Path("scripts/ops/install-backup-cron.sh").read_text(encoding="utf-8")
1111

1212
assert "reindex" in runbook.lower()
13-
assert 'git -C "$CORPUS_ROOT" push' in backup_script
13+
assert "git -C \"${CORPUS_ROOT}\" add -A" in backup_script
14+
assert "git -C \"${CORPUS_ROOT}\" commit" in backup_script
15+
assert "git -C \"${CORPUS_ROOT}\" push -u origin" in backup_script
1416
assert "status" in restore_script
1517
assert "crontab" in cron_script
1618
assert "backup.sh" in cron_script
19+
assert "DORY_CORPUS_ROOT" in cron_script

0 commit comments

Comments
 (0)