refactored: to utilise the google adk and production grade agent
Some checks failed
validation / verify (push) Failing after 10s

This commit is contained in:
2026-09-02 21:42:10 +01:00
parent b9a924cf4a
commit a24a44e28c
279 changed files with 12003 additions and 390 deletions

View File

@@ -5,19 +5,36 @@ import unittest
ROOT = pathlib.Path(__file__).parents[1]
def get_artifact_text(filename):
search_dirs = [
ROOT / "deliverables" / "as-is",
ROOT / "deliverables" / "target",
ROOT / "deliverables" / "validation",
ROOT / "deliverables" / "guides",
ROOT / "deliverables",
ROOT / "docs",
ROOT,
]
for d in search_dirs:
candidate = d / filename
if candidate.is_file():
return candidate.read_text(encoding="utf-8")
raise FileNotFoundError(f"Artifact {filename} not found")
class ArtifactTests(unittest.TestCase):
def test_requirements_defer_products(self):
text = (ROOT / "docs/requirements.md").read_text()
text = get_artifact_text("requirements.md")
self.assertIn("Product selection deferred:", text)
self.assertIn("Open questions", text)
def test_architecture_has_products_and_flow(self):
text = (ROOT / "docs/architecture.md").read_text()
text = get_artifact_text("architecture.md")
for product in ("Cloud Run", "Pub/Sub", "Cloud Storage", "Firestore"):
self.assertIn(product, text)
def test_mermaid_is_flowchart(self):
text = (ROOT / "architecture.mmd").read_text()
text = get_artifact_text("architecture.mmd")
self.assertTrue(text.startswith("flowchart"))
self.assertIn("Cloud Run", text)
@@ -28,7 +45,7 @@ class ArtifactTests(unittest.TestCase):
self.assertNotRegex(main, r"(?i)(password|secret|private_key)\\s*=")
def test_guide_packages_outputs(self):
guide = (ROOT / "solution-architecture-guide.md").read_text()
guide = get_artifact_text("solution-architecture-guide.md")
for heading in ("Requirements", "Architecture", "Terraform", "Validation", "Verification"):
self.assertIn(heading, guide)