Logo
Explore Help
Sign In
agents/content-ingestion-agent
1
0
Fork 0
You've already forked content-ingestion-agent
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
cbf8597f9ed7ad1088358192ad924bf381790df1
content-ingestion-agent/tests/test_governance.py
demo-bot 34d9dd0f1f
Some checks failed
ci / test (push) Failing after 8s
Details
decomposer: generate deliverable files for Define the normalized ingestion contract and pluggable source-connector interface for SCM, CMS, and other content sources.; Implement a GitHub SCM connector that conforms to the normalized ingestion contract and supports scoped full and incremental ingestion of Markdown, plain-text, and source files with webhook and revision metadata.; Implement a SharePoint CMS connector that conforms to the normalized ingestion contract and supports scoped full and incremental ingestion of PDF, DOCX, and HTML files with webhook and revision metadata.; Implement ingestion orchestration and triggers; Normalize, govern, and publish ingested content to the shared knowledge store.; Add deployment/configuration, tests, and documentation for the ingestion agent.; Validate end-to-end ingestion and downstream content availability.
2026-09-01 14:03:17 +00:00

10 lines
324 B
Python
Raw Blame History

import pytest
from kab_ingestion.governance import GovernedPublisher
class Store:
def upsert(self,d): self.docs=d
def delete(self,*a): pass
def test_tenant_isolation():
class D: tenant_id='other'
class B: tenant_id='acme'; documents=[D()]
with pytest.raises(PermissionError): GovernedPublisher(Store(),[]).publish(B())
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 282ms Template: 15ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API