test(e2e): workflow example 18 — container with remote repo clone (trusted profile)
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 20s
CI / typecheck (pull_request) Successful in 47s
CI / quality (pull_request) Successful in 48s
CI / build (pull_request) Successful in 15s
CI / helm (pull_request) Successful in 22s
CI / security (pull_request) Successful in 4m18s
CI / integration_tests (pull_request) Successful in 6m19s
CI / unit_tests (pull_request) Successful in 6m39s
CI / docker (pull_request) Successful in 1m32s
CI / coverage (pull_request) Successful in 12m6s
CI / e2e_tests (pull_request) Successful in 19m6s
CI / status-check (pull_request) Successful in 2s
CI / quality (push) Successful in 45s
CI / build (push) Successful in 17s
CI / helm (push) Successful in 23s
CI / lint (push) Successful in 3m16s
CI / integration_tests (push) Successful in 3m50s
CI / typecheck (push) Successful in 3m54s
CI / security (push) Successful in 4m4s
CI / unit_tests (push) Successful in 8m31s
CI / docker (push) Successful in 1m22s
CI / coverage (push) Successful in 12m12s
CI / benchmark-regression (push) Has been skipped
CI / e2e_tests (push) Successful in 21m14s
CI / status-check (push) Successful in 2s
CI / benchmark-publish (push) Has been cancelled
CI / benchmark-regression (pull_request) Successful in 59m1s

E2E test for Specification Workflow Example 18: Container with Remote
Repo Clone using the trusted automation profile.  Exercises the full
container-instance workflow per the spec:

- Registers a container-instance resource with --clone-into flag (new
  CLI flag added to resource add for REPO_URL:CONTAINER_PATH).
- Two-step project creation: project create + project link-resource.
- Dynamic LLM actor selection (Anthropic/OpenAI) matching available
  API keys.
- Plan use with --execution-environment container,
  --execution-env-priority fallback, and --automation-profile trusted.
- Full plan lifecycle: strategize, execute, diff, apply, status.
- Positive assertions: non-empty output, plan ID presence, terminal
  state verification, container/clone evidence logging.
- Negative assertions: Traceback and INTERNAL error checks.
- ULID regex uses Crockford base32 character set.
- Unique suffix for resource/project names (parallel CI safe).
- Skip If No LLM Keys guard for graceful degradation.
- CHANGELOG.md updated.

ISSUES CLOSED: #764
This commit was merged in pull request #820.
This commit is contained in:
2026-03-13 17:16:40 +00:00
committed by Rui Hu
parent b6c3169634
commit 9cace15d6e
5 changed files with 370 additions and 0 deletions
+26
View File
@@ -215,3 +215,29 @@ Feature: Resource CLI error path coverage
When I run resource type add with path to missing file
Then the resource command should fail
And the resource output should contain "not found"
# ---- --clone-into flag coverage ----
Scenario: resource add container-instance with --clone-into stores clone_into property
Given built-in types are bootstrapped
When I run resource add "container-instance" "local/clone-test" with clone-into "https://github.com/acme/api.git:/workspace"
Then the resource output should contain "local/clone-test"
And the resource output should contain "Added resource"
Scenario: resource add with --clone-into on non-container type fails
Given built-in types are bootstrapped
When I run resource add "git-checkout" "local/bad-clone" with clone-into "https://github.com/acme/api.git:/workspace"
Then the resource command should fail
And the resource output should contain "Validation error"
Scenario: resource add with --clone-into in invalid format fails
Given built-in types are bootstrapped
When I run resource add "container-instance" "local/bad-fmt" with clone-into "no-colon-separator"
Then the resource command should fail
And the resource output should contain "Validation error"
Scenario: resource add with --clone-into missing path segment fails
Given built-in types are bootstrapped
When I run resource add "container-instance" "local/bad-path" with clone-into "https://github.com/acme/api.git:"
Then the resource command should fail
And the resource output should contain "Validation error"