diff --git a/bats/fb-test-backup.bats b/bats/fb-test-backup.bats index e4e4e5ba1..14b6597ef 100644 --- a/bats/fb-test-backup.bats +++ b/bats/fb-test-backup.bats @@ -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" {