Files
cleveragents-core/features/resource_cli_git_url_flag.feature
T
HAL9000 9dcb446641 fix(cli): add --url flag to resource add for git resource type (#6322)
Ensure git resources accept a remote URL flag and persist the value via CLI validation and properties.

ISSUES CLOSED: #6322
2026-05-31 15:39:36 -04:00

15 lines
772 B
Gherkin

Feature: Git resource CLI supports URL flag
Background:
Given a fresh in-memory resource registry
And built-in types are bootstrapped
Scenario: Adding a git resource with only a URL
When I run resource add "git" "local/upstream" with url "git@github.com:org/upstream.git"
Then the resource command should succeed
And the resource registry resource "local/upstream" should have property "url" equal to "git@github.com:org/upstream.git"
Scenario: Using --url with a non-git resource type is rejected
When I run resource add type "fs-directory" name "local/data" path "/tmp/data" url "git@github.com:org/upstream.git"
Then the resource command should fail
And the resource output should contain "--url is only valid for git resources"