You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/specs/001-marketplace-api-update/quickstart.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Quickstart: Marketplace Download Command
1
+
# Quickstart: Marketplace Get Command
2
2
3
-
End-to-end smoke test for the updated `infrahubctl marketplace download` command. These steps exercise each acceptance scenario in `spec.md` and should be green before merging.
3
+
End-to-end smoke test for the updated `infrahubctl marketplace get` command. These steps exercise each acceptance scenario in `spec.md` and should be green before merging.
4
4
5
5
## Prerequisites
6
6
@@ -28,33 +28,33 @@ All existing tests must stay green, and new tests MUST be added to cover:
28
28
29
29
```bash
30
30
# Scenario 1: download a schema by auto-detection
31
-
uv run infrahubctl marketplace download acme/network-base
31
+
uv run infrahubctl marketplace get acme/network-base
32
32
ls schemas/
33
33
34
34
# Scenario 2: download a collection by auto-detection
35
-
uv run infrahubctl marketplace download acme/starter-pack
35
+
uv run infrahubctl marketplace get acme/starter-pack
36
36
ls schemas/
37
37
38
38
# Scenario 3: pin a specific schema version
39
-
uv run infrahubctl marketplace download acme/network-base --version 0.9.0
39
+
uv run infrahubctl marketplace get acme/network-base --version 0.9.0
40
40
grep '^version:' schemas/network-base.yml
41
41
42
42
# Scenario 4: custom output directory
43
-
uv run infrahubctl marketplace download acme/network-base --output-dir ./tmp/market-test
43
+
uv run infrahubctl marketplace get acme/network-base --output-dir ./tmp/market-test
44
44
ls ./tmp/market-test
45
45
46
46
# Scenario 5: explicit --collection still works (override path)
47
-
uv run infrahubctl marketplace download acme/starter-pack --collection
47
+
uv run infrahubctl marketplace get acme/starter-pack --collection
48
48
49
49
# Scenario 6: version on a collection emits a warning, proceeds
50
-
uv run infrahubctl marketplace download acme/starter-pack --version 1.0.0
50
+
uv run infrahubctl marketplace get acme/starter-pack --version 1.0.0
51
51
# Expect: "Warning: --version is ignored when downloading a collection." followed by success output.
52
52
```
53
53
54
54
## Manual verification against a local/staging marketplace
55
55
56
56
```bash
57
-
uv run infrahubctl marketplace download acme/test \
0 commit comments