Publish curated ITWorx_MCP_Hub source from 6881b54064f5077391e2a4711917ac54f12a877e
This commit is contained in:
1 parent
cdd8187376
commit
f92819e332
4 files changed
+16
-7
No files matched your search
@@ -62,6 +62,15 @@ class ComposeContractTests(unittest.TestCase):
|
||||
self.assertNotIn("ports", document["services"]["postgres"])
|
||||
self.assertNotIn("ports", document["services"]["redis"])
|
||||
|
||||
def test_integration_uses_the_production_database_artifacts(self) -> None:
|
||||
path = ROOT / "infrastructure/compose/docker-compose.wp050-integration.yml"
|
||||
integration = yaml.safe_load(path.read_text(encoding="utf-8"))
|
||||
for name in ("postgres", "redis"):
|
||||
with self.subTest(service=name):
|
||||
image = self.document["services"][name]["image"]
|
||||
self.assertRegex(image, r"^[a-z]+:[0-9.]+@sha256:[0-9a-f]{64}$")
|
||||
self.assertEqual(integration["services"][name]["image"], image)
|
||||
|
||||
def test_inspector_is_lan_only_optional_profile(self) -> None:
|
||||
inspector = self.document["services"]["inspector"]
|
||||
self.assertEqual(inspector.get("profiles"), ["inspector"])
|
||||
|
||||
Reference in new issue
Block a user