mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-14 06:37:25 +00:00
Merge remote-tracking branch 'origin/main' into fix/sys-ctl-hlth-runtime/vulnerability-engines/1324
This commit is contained in:
19 files changed
+77
-20
No files matched your search
@@ -85,6 +85,16 @@ class TestTlsResolveLookup(unittest.TestCase):
|
||||
)[0]
|
||||
self.assertEqual(val, "https://a.example/")
|
||||
|
||||
def test_url_origin_is_the_base_url_without_its_trailing_slash(self):
|
||||
origin, base = (
|
||||
self.lookup.run(["web-app-a", want], variables=self.base_vars, mode="app")[
|
||||
0
|
||||
]
|
||||
for want in ("url.origin", "url.base")
|
||||
)
|
||||
self.assertEqual(origin, "https://a.example")
|
||||
self.assertEqual(f"{origin}/", base)
|
||||
|
||||
def test_protocols_web_path_is_http_for_an_onion_only_app(self):
|
||||
onion = dict(self.base_vars)
|
||||
onion["domains"] = {**self.domains, "web-app-onion": "abc123.onion"}
|
||||
|
||||
Reference in new issue
Block a user