From d8143f9ffa5f44cc32b5dd84dfdac9f16abe99d1 Mon Sep 17 00:00:00 2001 From: "bunny.fae.mom" Date: Tue, 17 Nov 2026 22:21:34 -0500 Subject: [PATCH] test(e2e): drop settings and skills checks that other scenarios own settings_test's test_settings_routes_reject_missing_authentication_and_browser_origins re-ran, route by route, the one admission gate that daemon_test's test_core_refuses_before_reading_withheld_bodies already drives with a missing token, a wrong token and a hostile Origin. skills_test's test_inline_mentions_name_the_session_by_the_original_message duplicated session_name_test's test_the_model_names_a_session_and_the_person_outranks_it and test_title_sees_the_typed_skill_mention_without_its_instructions. The imagegen symlink test stops asserting the skill's prose and source hashes (copy). It keeps activation, the bundled resources and the licence. --- e2e/settings_test.py | 30 ------------------------------ e2e/skills_test.py | 21 ++------------------- 2 files changed, 2 insertions(+), 49 deletions(-) diff --git a/e2e/settings_test.py b/e2e/settings_test.py index 8bb50be49..18ef5295d 100644 --- a/e2e/settings_test.py +++ b/e2e/settings_test.py @@ -11,7 +11,6 @@ import threading import time import unittest import urllib.error -import urllib.request from harness import Albedo, Provider, exclusive, operation_id, text @@ -1053,35 +1052,6 @@ class SettingsTest(unittest.TestCase): self.patch("mcp", candidate) self.assertIn("slow-start", self.group("mcp")["definitions"]) - def test_settings_routes_reject_missing_authentication_and_browser_origins(self): - for method, path in ( - ("GET", "/settings"), - ("PATCH", "/settings/providers"), - ("PATCH", "/settings/ui"), - ("PATCH", f"/sessions/{self.session}/configuration"), - ("PUT", f"/sessions/{self.session}/visits/{operation_id()}"), - ): - for headers in ( - {}, - {"Origin": "http://localhost"}, - { - "Authorization": "Bearer " + self.app.connection["token"], - "Origin": "http://localhost", - }, - ): - request = urllib.request.Request( - self.app.base + path, method=method, headers=headers - ) - with self.assertRaises(urllib.error.HTTPError) as caught: - urllib.request.urlopen(request, timeout=10) - self.assertEqual( - caught.exception.code, 403 if "Origin" in headers else 401 - ) - if "Origin" not in headers: - self.assertEqual( - caught.exception.headers["WWW-Authenticate"], "Bearer" - ) - # exclusive: corrupt vs missing config.json errors @exclusive def test_corrupt_and_missing_config_file_errors(self): diff --git a/e2e/skills_test.py b/e2e/skills_test.py index 87c08f274..77ce5361d 100644 --- a/e2e/skills_test.py +++ b/e2e/skills_test.py @@ -71,15 +71,10 @@ class SkillSymlinkTests(unittest.TestCase): self.reload() request = self.probe( "activation = await commands.invoke('/imagegen')\n" - "assert 'imagegen.generate' in activation['instructions'], activation\n" + "assert activation['instructions'], activation\n" "skill_resources = (await skills.resources('imagegen')).resources\n" - "for path in ['SKILL.md', 'SOURCES.md', 'LICENSE.txt', 'references/art-direction.md']:\n" + "for path in ['SKILL.md', 'SOURCES.md', 'LICENSE.txt']:\n" " assert path in skill_resources, skill_resources\n" - "direction = await skills.read('imagegen', resource='references/art-direction.md')\n" - "assert 'Diagnose before revising' in direction.content\n" - "sources = await skills.read('imagegen', resource='SOURCES.md')\n" - "assert '49f948faa9258a0c61caceaf225e179651397431' in sources.content\n" - "assert '2c5958ecac7cee2b583967a2c4981d0f4a75c579' in sources.content\n" "licence = await skills.read('imagegen', resource='LICENSE.txt')\n" "assert 'Apache License' in licence.content" ) @@ -472,18 +467,6 @@ class SkillLoadTests(unittest.TestCase): ) self.assertEqual("DEMO_BODY" in forwarded, bool(expected)) - def test_inline_mentions_name_the_session_by_the_original_message(self): - message = "Review with $demo." - self.app.prompt(self.session, message).close() - self.app.idle(self.session) - with self.app.api(f"/sessions/{self.session}?tail=0") as response: - session = json.load(response) - self.assertEqual(session["name"], message) - wait_until(lambda: self.provider.title_requests, 5, "no title request arrived") - self.assertEqual( - title_input(self.provider.title_requests[0]["request"])["message"], message - ) - def test_a_slash_activation_names_the_session_by_its_command(self): self.activate("how other daemons stream zstd") with self.app.api(f"/sessions/{self.session}?tail=0") as response: -- knotmirror 0.0.1