test(cli): assert container-instance stop mock invocation

Extend the devcontainer cleanup Behave scenario for container-instance resources to assert that the stop command delegates to the lifecycle stop mock, providing regression coverage that both container-instance and devcontainer-instance remain stoppable.

ISSUES CLOSED: #6457
This commit is contained in:
2026-04-10 20:00:34 +00:00
committed by drew
parent d785397da4
commit f8946e1147
+1
View File
@@ -143,6 +143,7 @@ Feature: Devcontainer Session Cleanup and CLI Commands
When I invoke CLI resource stop "local/ctr-stop"
Then the CLI exit code should be 0
And the CLI output should contain "Stopped"
And the CLI stop mock should have been called with "01TESTLIFECYCLE0000000370"
# ── F6-r6: CLI handler-level error paths ────────────────────