fix: preserve legacy SBOM source values
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a028f0-a42f-7582-89a8-ebaad7343834
This commit is contained in:
parent
1e5222d458
commit
98518091ae
2 changed files with 13 additions and 2 deletions
|
|
@ -53,7 +53,8 @@ async def test_nexus_read_mode_preserves_state_hub_response_contract(client, mon
|
|||
"repo_id": nexus_repo_id,
|
||||
"repo_slug": "testrepo",
|
||||
"snapshot_at": "2026-08-22T12:00:00+00:00",
|
||||
"source": "state-hub-import",
|
||||
"source": "state-hub:manual",
|
||||
"legacy_id": snapshot_id,
|
||||
"entry_count": 1,
|
||||
"created_at": "2026-08-22T12:00:01+00:00",
|
||||
"status": "imported",
|
||||
|
|
@ -113,6 +114,8 @@ async def test_nexus_read_mode_preserves_state_hub_response_contract(client, mon
|
|||
assert repo_view.status_code == 200
|
||||
assert snapshots.json()[0]["id"] == snapshot_id
|
||||
assert snapshots.json()[0]["repo_id"] == repo["id"]
|
||||
assert snapshots.json()[0]["source"] == "manual"
|
||||
assert detail.json()["source"] == "manual"
|
||||
assert detail.json()["entries"][0]["repo_id"] == repo["id"]
|
||||
assert entries.json()[0]["repo_id"] == repo["id"]
|
||||
assert "source_path" not in entries.json()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue