Skip to content

Commit

Permalink
test: remove dep on zothub.io in squashfs test
Browse files Browse the repository at this point in the history
this is testing import of squash images then building tar on top, we can
test that without also testing zothub.io's nine fives.

Signed-off-by: Michael McCracken <[email protected]>
  • Loading branch information
mikemccracken committed Jan 11, 2025
1 parent 4502da1 commit 3627cc9
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions test/squashfs.bats
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,23 @@ EOF
}

@test "build squashfs then tar" {
echo "x" > x
cat > stacker.yaml <<"EOF"
install-base:
build_only: true
from:
type: docker
url: "docker://zothub.io/machine/bootkit/rootfs:v0.0.17.231018-squashfs"
from:
type: oci
url: ${{BUSYBOX_OCI}}
run: |
touch /1
EOF
stacker build --layer-type=squashfs --substitute BUSYBOX_OCI=${BUSYBOX_OCI}
mv oci oci-import

echo "x" > x
cat > stacker.yaml <<"EOF"
install-rootfs-pkg:
from:
type: built
tag: install-base
type: oci
url: oci-import:install-base-squashfs
build_only: true
run: |
#!/bin/sh -ex
Expand Down

0 comments on commit 3627cc9

Please sign in to comment.