mirror of
https://github.com/Such-Software/adaptive-multi-protocol-gateway.git
synced 2026-10-17 15:41:41 +02:00
Version browser context fixture contract
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ def _health_check(site: SiteConfig, fixture: dict[str, Any], *, mode: str) -> He
|
||||
output_root = site.outputs.root / protocol
|
||||
route = str(fixture.get("route", {}).get("fixture_path", "/"))
|
||||
transport = str(fixture["checks"]["transport"])
|
||||
profile = str(fixture["checks"]["profile"])
|
||||
profile = str(fixture["checks"].get("context", fixture["checks"].get("profile", transport)))
|
||||
address_status = str(fixture["address_status"])
|
||||
output_ready = (output_root / ".ampg-output").exists()
|
||||
preview_status = fixture.get("preview", {}).get("status")
|
||||
|
||||
+3
-3
@@ -10,7 +10,7 @@ from .config import GatewayConfig, ProtocolConfig, RoutePolicyConfig, SiteConfig
|
||||
from .route_policy import fixture_path, route_exposed
|
||||
|
||||
|
||||
SCHEMA = "ampg.fixture-manifest.v1"
|
||||
SCHEMA = "ampg.fixture-manifest.v2"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -83,8 +83,8 @@ def _fixture_entry(
|
||||
"output_path": _output_path_for_route(protocol.name, route_policy),
|
||||
"checks": {
|
||||
"transport": transport,
|
||||
"profile": transport,
|
||||
"isolation": "transport-profile",
|
||||
"context": transport,
|
||||
"isolation": "transport-context",
|
||||
},
|
||||
"interaction": _interaction_policy(protocol, route_policy),
|
||||
}
|
||||
|
||||
+2
-1
@@ -97,7 +97,8 @@ def preview_fixture_manifest(
|
||||
fixture["address_status"] = "preview"
|
||||
fixture["checks"] = {
|
||||
"transport": "clearnet",
|
||||
"profile": "clearnet",
|
||||
"context": "clearnet",
|
||||
"isolation": "transport-context",
|
||||
}
|
||||
return manifest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user