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:
@@ -59,7 +59,7 @@ cid = "bafyexample"
|
||||
manifest = fixture_manifest(config, config.sites[0])
|
||||
written = write_fixture_manifests(config)
|
||||
|
||||
self.assertEqual("ampg.fixture-manifest.v1", manifest["schema"])
|
||||
self.assertEqual("ampg.fixture-manifest.v2", manifest["schema"])
|
||||
self.assertEqual(["example"], [result.site_id for result in written])
|
||||
self.assertEqual(5, written[0].fixture_count)
|
||||
|
||||
@@ -75,8 +75,8 @@ cid = "bafyexample"
|
||||
self.assertEqual(
|
||||
{
|
||||
"transport": "ipfs",
|
||||
"profile": "ipfs",
|
||||
"isolation": "transport-profile",
|
||||
"context": "ipfs",
|
||||
"isolation": "transport-context",
|
||||
},
|
||||
by_protocol["ipfs"]["checks"],
|
||||
)
|
||||
|
||||
@@ -36,10 +36,13 @@ class PreviewTest(unittest.TestCase):
|
||||
|
||||
tor_root = by_protocol_path[("tor", "/")]
|
||||
self.assertEqual("http://127.0.0.1:19101/", tor_root["url"])
|
||||
self.assertEqual({"transport": "clearnet", "profile": "clearnet"}, tor_root["checks"])
|
||||
self.assertEqual(
|
||||
{"transport": "clearnet", "context": "clearnet", "isolation": "transport-context"},
|
||||
tor_root["checks"],
|
||||
)
|
||||
self.assertEqual("http://preview.onion/", tor_root["published"]["url"])
|
||||
self.assertEqual(
|
||||
{"transport": "tor", "profile": "tor", "isolation": "transport-profile"},
|
||||
{"transport": "tor", "context": "tor", "isolation": "transport-context"},
|
||||
tor_root["published"]["checks"],
|
||||
)
|
||||
self.assertEqual("preview", tor_root["address_status"])
|
||||
|
||||
Reference in New Issue
Block a user