From 41c5fc95e3f971b66eeaa7e3f9f4701efd9fcbb2 Mon Sep 17 00:00:00 2001 From: HAL9000 Date: Sat, 9 May 2026 11:42:30 +0000 Subject: [PATCH] =?UTF-8?q?fix(resource):=20update=20stale=20DETECTED?= =?UTF-8?q?=E2=86=92DISCOVERED=20scenario=20title=20in=20protocol=20method?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The devcontainer_handler_protocol_methods.feature file and its step definitions still referenced the old ContainerLifecycleState.DETECTED terminology. Update to DISCOVERED for consistency with specification. ISSUES CLOSED: #7555 --- features/devcontainer_handler_protocol_methods.feature | 4 ++-- features/steps/devcontainer_handler_protocol_methods_steps.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/devcontainer_handler_protocol_methods.feature b/features/devcontainer_handler_protocol_methods.feature index 9490a8d3b..8eaf0330b 100644 --- a/features/devcontainer_handler_protocol_methods.feature +++ b/features/devcontainer_handler_protocol_methods.feature @@ -124,10 +124,10 @@ Feature: DevcontainerHandler missing protocol methods Then dcproto the sandbox result should have strategy "snapshot" And dcproto the sandbox result should have a sandbox path - Scenario: dcproto create_sandbox activates container when in DETECTED state + Scenario: dcproto create_sandbox activates container when in DISCOVERED state Given dcproto a devcontainer handler And dcproto a devcontainer-instance resource with location "/ws/project" - And dcproto the container is in DETECTED state + And dcproto the container is in DISCOVERED state And dcproto a mock sandbox manager that returns a valid sandbox And dcproto activate_container is mocked to succeed When dcproto I create a sandbox for the resource with plan "plan-002" diff --git a/features/steps/devcontainer_handler_protocol_methods_steps.py b/features/steps/devcontainer_handler_protocol_methods_steps.py index 8a24086ea..1e6eebc0d 100644 --- a/features/steps/devcontainer_handler_protocol_methods_steps.py +++ b/features/steps/devcontainer_handler_protocol_methods_steps.py @@ -152,8 +152,8 @@ def step_dcproto_container_running(context: Context) -> None: context.dcproto_container_state = ContainerLifecycleState.RUNNING -@given("dcproto the container is in DETECTED state") -def step_dcproto_container_detected(context: Context) -> None: +@given("dcproto the container is in DISCOVERED state") +def step_dcproto_container_discovered(context: Context) -> None: from cleveragents.resource.handlers._devcontainer_internals import ( set_lifecycle_tracker, )