fix(cli): add --url flag to resource add for git resource type #6621

Merged
HAL9000 merged 7 commits from fix/issue-6322-resource-add-url-flag into master 2026-05-31 22:59:25 +00:00

7 Commits

Author SHA1 Message Date
HAL9000 fcc780bf1b fix(cli): align --url validation error message with test expectations
CI / build (pull_request) Successful in 42s
CI / lint (pull_request) Successful in 1m1s
CI / quality (pull_request) Successful in 1m4s
CI / typecheck (pull_request) Successful in 1m7s
CI / security (pull_request) Successful in 1m16s
CI / helm (pull_request) Successful in 26s
CI / push-validation (pull_request) Successful in 32s
CI / unit_tests (pull_request) Successful in 6m32s
CI / docker (pull_request) Successful in 1m36s
CI / coverage (pull_request) Successful in 13m55s
CI / integration_tests (pull_request) Successful in 27m19s
CI / status-check (pull_request) Successful in 3s
The Behave test expected the error message to contain '--url is only valid
for git resources' but the code was producing '--url only for git resources'.
Updated the validation error message to match the test assertion.

Also updated the Robot Framework integration test to expect the corrected
message, ensuring consistency across both test suites.

Fixes the failing Behave scenario: 'Using --url with a non-git resource type
is rejected' by correcting the error message text output from the CLI.

ISSUES CLOSED: #6322
2026-05-31 17:10:35 -04:00
HAL9000 ca55d565b6 test: add Robot Framework integration test for --url flag
CI / lint (pull_request) Successful in 38s
CI / helm (pull_request) Successful in 29s
CI / build (pull_request) Successful in 39s
CI / push-validation (pull_request) Successful in 37s
CI / quality (pull_request) Successful in 1m0s
CI / security (pull_request) Successful in 1m14s
CI / typecheck (pull_request) Successful in 1m40s
CI / unit_tests (pull_request) Failing after 7m14s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 25m16s
CI / status-check (pull_request) Failing after 3s
2026-05-31 15:39:36 -04:00
HAL9000 d95873b446 docs: update CHANGELOG for --url flag support 2026-05-31 15:39:36 -04:00
HAL9000 e43305198d fix: apply ruff formatting 2026-05-31 15:39:36 -04:00
HAL9000 60b728c385 fix: shorten error message to pass lint 2026-05-31 15:39:36 -04:00
HAL9000 b598a70c41 fix(cli): resolve lint errors in resource.py
- Break line 702 to fit 88-character limit
- Remove double blank line between validation blocks
- Improves error message clarity by naming 'git' type explicitly
2026-05-31 15:39:36 -04:00
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