From 8b7e813eca7f1069706372101bb045c9c700e5ef Mon Sep 17 00:00:00 2001 From: implementation-worker Date: Tue, 14 Apr 2026 23:28:31 +0000 Subject: [PATCH] fix(cli): update test assertions for new session create JSON structure Update feature file assertions to match the new nested JSON structure for session create output. Changed assertions from 'session_id:' to 'id:' to reflect the new data.session.id structure per spec #6441. --- features/security_template_coverage_boost.feature | 4 ++-- features/session_create_error.feature | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/security_template_coverage_boost.feature b/features/security_template_coverage_boost.feature index 8ba950848..64fd8ba92 100644 --- a/features/security_template_coverage_boost.feature +++ b/features/security_template_coverage_boost.feature @@ -139,7 +139,7 @@ Feature: Coverage boost for security template branch Given a session CLI test environment And a mock session service that returns a created session When I invoke session create with format "json" - Then the covboost session output should contain "session_id" + Then the covboost session output should contain "data" Scenario: Session create error shows session not found message Given a session CLI test environment @@ -169,7 +169,7 @@ Feature: Coverage boost for security template branch Given a session CLI test environment And a mock session service that can export When I invoke session export to stdout - Then the covboost session output should contain "session_id" + Then the covboost session output should contain "data" Scenario: Session export to file that exists without force fails Given a session CLI test environment diff --git a/features/session_create_error.feature b/features/session_create_error.feature index cbd9b005d..9b8619c3d 100644 --- a/features/session_create_error.feature +++ b/features/session_create_error.feature @@ -14,7 +14,7 @@ Feature: Session create command resolves DI container wiring Scenario: Session create produces a new session When I invoke session-create-error create with no arguments Then the session-create-error command should exit successfully - And the session-create-error output should contain "session_id:" + And the session-create-error output should contain "id:" @tdd_issue @tdd_issue_570 @@ -30,7 +30,7 @@ Feature: Session create command resolves DI container wiring When I invoke session-create-error create with actor "openai/gpt-4" Then the session-create-error command should exit successfully And the session-create-error output should contain "openai/gpt-4" - And the session-create-error output should contain "session_id:" + And the session-create-error output should contain "id:" @tdd_issue @tdd_issue_570