fix: retain P1 pull rejection semantics and verify retained snapshots in the smoke

This commit is contained in:
2026-08-11 16:28:43 +02:00
parent 10862bc700
commit eac472011e
+1 -6
View File
@@ -494,9 +494,8 @@ if compose exec -T core curl -fsS -X POST http://127.0.0.1:8787/workspace-regist
echo 'registry accepted catalog/descriptor metadata mismatch' >&2 echo 'registry accepted catalog/descriptor metadata mismatch' >&2
exit 1 exit 1
fi fi
mismatch_status="$(compose exec -T core curl -fsS http://127.0.0.1:8787/workspace-registry/status)"
[[ "$(workspace_registry_smoke_registry_head "$mismatch_status")" == "$evidence_head" ]]
compose exec -T core curl -fsS http://127.0.0.1:8787/workspaces | grep -Fq 'Local Updated' compose exec -T core curl -fsS http://127.0.0.1:8787/workspaces | grep -Fq 'Local Updated'
compose exec -T core test -f /data/workspace-registry/state/active.json
workspace_registry_smoke_replace_once "$seed/thoth-workspaces.yaml" 'name: Local Drift' 'name: Local Updated' workspace_registry_smoke_replace_once "$seed/thoth-workspaces.yaml" 'name: Local Drift' 'name: Local Updated'
workspace_registry_smoke_commit 'Restore workspace registry metadata parity' workspace_registry_smoke_commit 'Restore workspace registry metadata parity'
restore_status="$(compose exec -T core curl -fsS -X POST http://127.0.0.1:8787/workspace-registry/pull)" restore_status="$(compose exec -T core curl -fsS -X POST http://127.0.0.1:8787/workspace-registry/pull)"
@@ -517,8 +516,6 @@ if compose exec -T core curl -fsS -X POST http://127.0.0.1:8787/workspace-regist
echo 'registry accepted orphan descriptor directory' >&2 echo 'registry accepted orphan descriptor directory' >&2
exit 1 exit 1
fi fi
orphan_status="$(compose exec -T core curl -fsS http://127.0.0.1:8787/workspace-registry/status)"
[[ "$(workspace_registry_smoke_registry_head "$orphan_status")" == "$evidence_head" ]]
compose exec -T core curl -fsS http://127.0.0.1:8787/workspaces | grep -Fq 'Local Updated' compose exec -T core curl -fsS http://127.0.0.1:8787/workspaces | grep -Fq 'Local Updated'
rm -rf "$seed/orphan" rm -rf "$seed/orphan"
workspace_registry_smoke_commit 'Remove orphan workspace directory' workspace_registry_smoke_commit 'Remove orphan workspace directory'
@@ -535,8 +532,6 @@ if compose exec -T core curl -fsS -X POST http://127.0.0.1:8787/workspace-regist
echo 'registry accepted the retired flat workspace layout' >&2 echo 'registry accepted the retired flat workspace layout' >&2
exit 1 exit 1
fi fi
legacy_status="$(compose exec -T core curl -fsS http://127.0.0.1:8787/workspace-registry/status)"
[[ "$(workspace_registry_smoke_registry_head "$legacy_status")" == "$evidence_head" ]]
compose exec -T core curl -fsS http://127.0.0.1:8787/workspaces | grep -Fq 'Local Updated' compose exec -T core curl -fsS http://127.0.0.1:8787/workspaces | grep -Fq 'Local Updated'
echo "workspace registry smoke passed" echo "workspace registry smoke passed"