PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (verification): Decode renamed postgresqlLogical field in agent assignment
Rostislav Dugin14845f86306a
diff --git a/agent/verification/e2e/scripts/test-restore-broken.sh b/agent/verification/e2e/scripts/test-restore-broken.shindex a9a9a4d4..15996d74 100644--- a/agent/verification/e2e/scripts/test-restore-broken.sh+++ b/agent/verification/e2e/scripts/test-restore-broken.sh@@ -31,7 +31,7 @@ curl -sf -X POST "$MOCK/mock/set-backup-fixture" \curl -sf -X POST "$MOCK/mock/set-claim" \-H 'Content-Type: application/json' \- -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":2048,\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresql\":{\"version\":\"16\"}}}"+ -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":2048,\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresqlLogical\":{\"version\":\"16\"}}}"# Spawn + image pull (first run) + restore + report. Generous budget on cold cache.wait_for_report '"status":"FAILED"' 240diff --git a/agent/verification/e2e/scripts/test-restore-disk-budget.sh b/agent/verification/e2e/scripts/test-restore-disk-budget.shindex 162ff050..0297f674 100644--- a/agent/verification/e2e/scripts/test-restore-disk-budget.sh+++ b/agent/verification/e2e/scripts/test-restore-disk-budget.sh@@ -31,7 +31,7 @@ curl -sf -X POST "$MOCK/mock/set-backup-fixture" \curl -sf -X POST "$MOCK/mock/set-claim" \-H 'Content-Type: application/json' \- -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":1,\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresql\":{\"version\":\"16\"}}}"+ -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":1,\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresqlLogical\":{\"version\":\"16\"}}}"wait_for_report '"failureKind":"DISK_LIMIT_EXCEEDED"' 180 '"status":"COMPLETED"'diff --git a/agent/verification/e2e/scripts/test-restore-success.sh b/agent/verification/e2e/scripts/test-restore-success.shindex aa9cb9b8..ef3823d3 100644--- a/agent/verification/e2e/scripts/test-restore-success.sh+++ b/agent/verification/e2e/scripts/test-restore-success.sh@@ -35,7 +35,7 @@ curl -sf -X POST "$MOCK/mock/set-backup-fixture" \curl -sf -X POST "$MOCK/mock/set-claim" \-H 'Content-Type: application/json' \- -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":2048,\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresql\":{\"version\":\"${PG_VERSION}\"}}}"+ -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":2048,\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresqlLogical\":{\"version\":\"${PG_VERSION}\"}}}"wait_for_report '"status":"COMPLETED"' 240 '"status":"FAILED"'diff --git a/agent/verification/e2e/scripts/test-restore-timescale.sh b/agent/verification/e2e/scripts/test-restore-timescale.shindex d4c0f5ba..e7ab2821 100644--- a/agent/verification/e2e/scripts/test-restore-timescale.sh+++ b/agent/verification/e2e/scripts/test-restore-timescale.sh@@ -36,7 +36,7 @@ curl -sf -X POST "$MOCK/mock/set-backup-fixture" \curl -sf -X POST "$MOCK/mock/set-claim" \-H 'Content-Type: application/json' \- -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":4096,\"timescaledbVersion\":\"${TS_VERSION}\",\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresql\":{\"version\":\"${PG_VERSION}\"}}}"+ -d "{\"verificationId\":\"$VERIFICATION_ID\",\"backupId\":\"$BACKUP_ID\",\"backupSizeMb\":1,\"maxContainerDiskMb\":4096,\"timescaledbVersion\":\"${TS_VERSION}\",\"database\":{\"type\":\"POSTGRES_LOGICAL\",\"postgresqlLogical\":{\"version\":\"${PG_VERSION}\"}}}"wait_for_report '"status":"COMPLETED"' 300 '"status":"FAILED"'diff --git a/agent/verification/internal/features/api/api_test.go b/agent/verification/internal/features/api/api_test.goindex e94db7ed..9f97f0bf 100644--- a/agent/verification/internal/features/api/api_test.go+++ b/agent/verification/internal/features/api/api_test.go@@ -52,8 +52,8 @@ func Test_ClaimVerification_WhenServer200_SendsNestedMaxRamMbAndDeserializes(t *"backupSizeMb": 120.5,"maxContainerDiskMb": 800.25,"database": map[string]any{- "type": "POSTGRES_LOGICAL",- "postgresql": map[string]any{"version": "16"},+ "type": "POSTGRES_LOGICAL",+ "postgresqlLogical": map[string]any{"version": "16"},},})}))