620ed7d11c
CI / push-validation (pull_request) Successful in 24s
CI / lint (pull_request) Failing after 25s
CI / helm (pull_request) Successful in 34s
CI / quality (pull_request) Successful in 38s
CI / typecheck (pull_request) Failing after 48s
CI / unit_tests (pull_request) Failing after 51s
CI / security (pull_request) Failing after 54s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / build (pull_request) Successful in 3m13s
CI / e2e_tests (pull_request) Successful in 6m2s
CI / integration_tests (pull_request) Successful in 7m33s
CI / status-check (pull_request) Failing after 1s
67 lines
2.8 KiB
Gherkin
67 lines
2.8 KiB
Gherkin
Feature: ACMS Context CLI Commands
|
|
As a user
|
|
I want to view and manage ACMS context
|
|
So that I can inspect assembled context and remove stale entries
|
|
|
|
Background:
|
|
Given the ACMS service is initialized
|
|
And a test view "test_view" exists
|
|
|
|
Scenario: Show assembled context for a view
|
|
When I run "agents acms context show test_view"
|
|
Then the output should contain "Assembled Context for View: test_view"
|
|
And the output should contain "Context Entries"
|
|
And the output should contain "Budget Utilization"
|
|
|
|
Scenario: Show context with no entries
|
|
Given the view "empty_view" has no context entries
|
|
When I run "agents acms context show empty_view"
|
|
Then the output should contain "No context entries found"
|
|
|
|
Scenario: Clear context entries with confirmation
|
|
Given the view "test_view" has 5 context entries
|
|
When I run "agents acms context clear" and confirm
|
|
Then the output should contain "Removed 5 context entries"
|
|
|
|
Scenario: Clear context entries with --yes flag
|
|
Given the view "test_view" has 5 context entries
|
|
When I run "agents acms context clear --yes"
|
|
Then the output should contain "Removed 5 context entries"
|
|
And no confirmation prompt should be shown
|
|
|
|
Scenario: Clear context entries by path filter
|
|
Given the view "test_view" has 5 context entries
|
|
And 3 entries match the path pattern "src/*"
|
|
When I run "agents acms context clear --path src/* --yes"
|
|
Then the output should contain "Removed 3 context entries"
|
|
|
|
Scenario: Clear context entries by tag filter
|
|
Given the view "test_view" has 5 context entries
|
|
And 2 entries have the tag "deprecated"
|
|
When I run "agents acms context clear --tag deprecated --yes"
|
|
Then the output should contain "Removed 2 context entries"
|
|
|
|
Scenario: Clear context entries by tier filter
|
|
Given the view "test_view" has 5 context entries
|
|
And 2 entries are in tier "TIER_3"
|
|
When I run "agents acms context clear --tier TIER_3 --yes"
|
|
Then the output should contain "Removed 2 context entries"
|
|
|
|
Scenario: Clear context with no matching entries
|
|
Given the view "test_view" has 5 context entries
|
|
When I run "agents acms context clear --path nonexistent/* --yes"
|
|
Then the output should contain "No context entries match the specified filters"
|
|
|
|
Scenario: Show help for context show command
|
|
When I run "agents acms context show --help"
|
|
Then the output should contain "Display the assembled context"
|
|
And the output should contain "View name/identifier"
|
|
|
|
Scenario: Show help for context clear command
|
|
When I run "agents acms context clear --help"
|
|
Then the output should contain "Remove stale context entries"
|
|
And the output should contain "--path"
|
|
And the output should contain "--tag"
|
|
And the output should contain "--tier"
|
|
And the output should contain "--yes"
|