Release Connectors v0.1.21 with external knowledge integration
Module Package Release / publish-packages (push) Successful in 12s
Module Package Release / publish-packages (push) Successful in 12s
This commit is contained in:
@@ -17,6 +17,8 @@ from govoplan_connectors.backend.db.models import (
|
||||
ConnectorConfiguration,
|
||||
ConnectorDefinition,
|
||||
ConnectorDefinitionRevision,
|
||||
ConnectorKnowledgeProfile,
|
||||
ConnectorKnowledgeSyncRun,
|
||||
ConnectorSanctionsAcquisitionRun,
|
||||
ConnectorSimulationRun,
|
||||
ConnectorTabularSource,
|
||||
@@ -201,6 +203,43 @@ class ConnectorsDsarProviderTests(unittest.TestCase):
|
||||
created_at=NOW,
|
||||
updated_at=NOW,
|
||||
),
|
||||
ConnectorKnowledgeProfile(
|
||||
id="knowledge-profile-1",
|
||||
tenant_id="tenant-1",
|
||||
configuration_id="configuration-1",
|
||||
status="active",
|
||||
product="bluespice",
|
||||
desired_maturity="migrate",
|
||||
discovered_maturity="migrate",
|
||||
source_authority_mode="external_mirror",
|
||||
default_visibility="restricted",
|
||||
default_acl_tokens=["group:secret-do-not-export"],
|
||||
namespace_mappings=[{"secret": "mapping-do-not-export"}],
|
||||
capabilities=["read", "synchronize", "migrate"],
|
||||
discovery_evidence={"secret": "discovery-do-not-export"},
|
||||
health_details={"secret": "health-do-not-export"},
|
||||
updated_by="account-1",
|
||||
created_at=NOW,
|
||||
updated_at=NOW,
|
||||
),
|
||||
ConnectorKnowledgeSyncRun(
|
||||
id="knowledge-run-1",
|
||||
tenant_id="tenant-1",
|
||||
profile_id="knowledge-profile-1",
|
||||
mode="delta",
|
||||
idempotency_key="knowledge-idempotency-do-not-export",
|
||||
request_hash="knowledge-request-hash-do-not-export",
|
||||
status="completed",
|
||||
counts={"update": 1},
|
||||
effects=[{"secret": "knowledge-effect-do-not-export"}],
|
||||
diagnostics=[{"secret": "knowledge-diagnostic-do-not-export"}],
|
||||
provenance={"secret": "knowledge-provenance-do-not-export"},
|
||||
created_by="account-1",
|
||||
started_at=NOW,
|
||||
finished_at=NOW,
|
||||
created_at=NOW,
|
||||
updated_at=NOW,
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
@@ -219,6 +258,8 @@ class ConnectorsDsarProviderTests(unittest.TestCase):
|
||||
"definition_actor_attribution",
|
||||
"configuration_actor_attribution",
|
||||
"simulation_actor_attribution",
|
||||
"knowledge_profile_actor_attribution",
|
||||
"knowledge_run_actor_attribution",
|
||||
},
|
||||
{record.resource_type for record in records},
|
||||
)
|
||||
@@ -247,6 +288,15 @@ class ConnectorsDsarProviderTests(unittest.TestCase):
|
||||
"diagnostic-do-not-export",
|
||||
"provenance-do-not-export",
|
||||
"review-reason-do-not-export",
|
||||
"secret-do-not-export",
|
||||
"mapping-do-not-export",
|
||||
"discovery-do-not-export",
|
||||
"health-do-not-export",
|
||||
"knowledge-idempotency-do-not-export",
|
||||
"knowledge-request-hash-do-not-export",
|
||||
"knowledge-effect-do-not-export",
|
||||
"knowledge-diagnostic-do-not-export",
|
||||
"knowledge-provenance-do-not-export",
|
||||
):
|
||||
self.assertNotIn(excluded, exported)
|
||||
|
||||
@@ -332,7 +382,7 @@ class ConnectorsDsarProviderTests(unittest.TestCase):
|
||||
expected_revision=row.resource_revision,
|
||||
)
|
||||
self.assertEqual("searched", row.status)
|
||||
self.assertEqual(5, row.search_result["record_count"])
|
||||
self.assertEqual(7, row.search_result["record_count"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user