Skip to content

Commit

Permalink
accept foreman.dump as offline file in 3.12+
Browse files Browse the repository at this point in the history
theforeman/foreman_maintain#893 switched the db
backups to dump
  • Loading branch information
evgeni authored and ekohl committed Jul 24, 2024
1 parent 49de907 commit 6a13456
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bats/fb-test-backup.bats
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ BACKUP_ONLINE_DIR="${BACKUP_BASE_DIR}/online"

tFileExists "${BACKUP_OFFLINE_DIR}/config_files.tar.gz"
tFileExists "${BACKUP_OFFLINE_DIR}/metadata.yml"
tFileExists "${BACKUP_OFFLINE_DIR}/pgsql_data.tar.gz"

FOREMAN_VERSION=$(tForemanVersion)
if tIsVersionNewer "${FOREMAN_VERSION}" 3.12; then
tFileExists "${BACKUP_OFFLINE_DIR}/foreman.dump"
else
tFileExists "${BACKUP_OFFLINE_DIR}/pgsql_data.tar.gz"
fi
}

@test "check offline backup contents for Katello" {
Expand Down

0 comments on commit 6a13456

Please sign in to comment.