Skip to content

Commit

Permalink
testing changing the test case to look at server2 for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Jan 15, 2025
1 parent 0beb954 commit 8aec880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen3/test/dbTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ test_db_services() {

test_db_snapshot_list() {
local snapshotJson
snapshotJson="$(gen3 db snapshot list server1)"; because $? "gen3 db snapshot list server1 should work"
snapshotJson="$(gen3 db snapshot list server2)"; because $? "gen3 db snapshot list server2 should work"
local snapCount
snapCount="$(jq -e -r '.DBClusterSnapshots | length' <<<"$snapshotJson")";
because $? "snap list json has expected structure"
[[ "$snapCount" =~ ^[0-9]+$ && "$snapCount" -gt 0 ]]; because $? "server1 has at least 1 snapshot"
}

test_db_snapshot_take() {
gen3 db snapshot take server1 --dryrun; because $? "gen3 db snapshot take server1 should work"
gen3 db snapshot take server2 --dryrun; because $? "gen3 db snapshot take server2 should work"
}

test_db_backup_restore() {
Expand Down

0 comments on commit 8aec880

Please sign in to comment.