Skip to content

Commit 92482b2

Browse files
committed
added experimental and fixed int tests
1 parent 3070eed commit 92482b2

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ jobs:
222222
hauler store copy registry://localhost:5002 --plain-http
223223
# verify blobs actually landed in the registry backend
224224
[ $(find registry -type f | wc -l) -gt 0 ]
225-
# verify --only is accepted (a registry seeded fresh at startup from the
226-
# whole store can't prove exclusion here -- registry-side filtering is
227-
# covered by --only's own unit tests)
225+
# verify via --only
228226
hauler store copy registry://localhost:5002 --plain-http --only busybox
229227
pkill -f "hauler store serve registry --port 5002"
230228
rm -rf registry
@@ -236,19 +234,17 @@ jobs:
236234
- name: Verify - hauler copy
237235
run: |
238236
hauler copy --help
239-
# source registry (seeded from the store, which already has busybox)
237+
# start source registry
240238
hauler store serve registry --port 5004 --readonly=false --directory registry-src &
241239
until curl -sf http://localhost:5004/v2/_catalog; do : ; done
242-
# destination registry
240+
# start destination registry
243241
hauler store serve registry --port 5005 --readonly=false --directory registry-dst &
244242
until curl -sf http://localhost:5005/v2/_catalog; do : ; done
245-
# verify a direct registry-to-registry copy, bypassing the store
246-
# (destination path is deliberately distinct from anything the destination
247-
# registry auto-seeded at startup, so its presence proves the copy, not the seed)
248-
hauler copy localhost:5004/hauler-dev/library/busybox:latest localhost:5005/mycopy/busybox:latest --plain-http
243+
# verify a direct registry to registry copy
244+
hauler copy localhost:5004/custom-path/busybox:stable localhost:5005/mycopy/busybox:latest --plain-http
249245
test -d registry-dst/docker/registry/v2/repositories/mycopy/busybox
250246
# verify --platform copies a single platform out of the index
251-
hauler copy localhost:5004/hauler-dev/library/busybox:latest localhost:5005/mycopy/busybox-platform:amd64 --plain-http --platform linux/amd64
247+
hauler copy localhost:5004/custom-path/busybox:stable localhost:5005/mycopy/busybox-platform:amd64 --plain-http --platform linux/amd64
252248
test -d registry-dst/docker/registry/v2/repositories/mycopy/busybox-platform
253249
pkill -f "hauler store serve registry --port 5004"
254250
pkill -f "hauler store serve registry --port 5005"

cmd/hauler/cli/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func addCopy(parent *cobra.Command, ro *flags.CliRootOpts) {
2525
cmd := &cobra.Command{
2626
Use: "copy SRC DST",
2727
Aliases: []string{"cp"},
28-
Short: "Copy an artifact between registries",
28+
Short: "(EXPERIMENTAL) Copy an artifact between registries",
2929
Example: ` # copy an image to another registry
3030
hauler copy busybox:latest registry.example.com/busybox:latest
3131

0 commit comments

Comments
 (0)