Add repo-family metadata to Fabric registry
This commit is contained in:
parent
3240b78185
commit
0ea99a73d8
15 changed files with 189 additions and 32 deletions
|
|
@ -42,7 +42,7 @@ def test_local_fabric_registry_connector_adds_separate_registry_evidence(tmp_pat
|
|||
|
||||
_validate_schema("discovery-snapshot.schema.yaml", snapshot)
|
||||
assert snapshot["connector_runs"][0]["status"] == "success"
|
||||
assert snapshot["connector_runs"][0]["candidate_counts"] == {"nodes": 1, "edges": 1, "attributes": 8}
|
||||
assert snapshot["connector_runs"][0]["candidate_counts"] == {"nodes": 1, "edges": 1, "attributes": 9}
|
||||
assert any(scope["source_kind"] == "fabric_registry" for scope in snapshot["replacement_scopes"])
|
||||
|
||||
registry_node = next(node for node in snapshot["candidates"]["nodes"] if node["kind"] == "FabricRegistryEntry")
|
||||
|
|
@ -50,6 +50,7 @@ def test_local_fabric_registry_connector_adds_separate_registry_evidence(tmp_pat
|
|||
assert registry_node["review_state"] == "candidate"
|
||||
assert registry_node["replacement_scope"].startswith("scope:fixture-repo:local-fabric-registry:fabric_registry")
|
||||
assert registry_node["attributes"]["state_hub_repo_id"] == "state-hub-id"
|
||||
assert registry_node["attributes"]["repo_family"] == "ownership"
|
||||
assert any(edge["edge_type"] == "cataloged_as" for edge in snapshot["candidates"]["edges"])
|
||||
registry_attributes = {
|
||||
attribute["name"]: attribute
|
||||
|
|
@ -136,6 +137,7 @@ repositories:
|
|||
default_branch: main
|
||||
state_hub_repo_id: state-hub-id
|
||||
remote_url: gitea-remote:coulomb/fixture-repo.git
|
||||
repo_family: ownership
|
||||
declaration_paths:
|
||||
- /tmp/fixture-repo
|
||||
""".lstrip(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue