Skip to content

Commit

Permalink
Merge pull request #12113 from simondeziel/misc-fix
Browse files Browse the repository at this point in the history
Use smaller ISO files in tests
  • Loading branch information
tomponline authored Aug 4, 2023
2 parents d0e22ea + 6ad0451 commit 8403f05
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ API:
- shared/api/**/*
Documentation:
- doc/**/*
- .sphinx/**/*
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ jobs:
xfsprogs \
xz-utils \
zfsutils-linux
# reclaim some space
sudo apt-get clean
mkdir -p "$(go env GOPATH)/bin"
curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/minio --output "$(go env GOPATH)/bin/minio"
chmod +x "$(go env GOPATH)/bin/minio"
Expand Down
2 changes: 1 addition & 1 deletion test/suites/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test_storage_volume_recover() {
lxc storage volume create "${poolName}" vol1 --type=block

# Import ISO.
truncate -s 25MiB foo.iso
truncate -s 8MiB foo.iso
lxc storage volume import "${poolName}" ./foo.iso vol2 --type=iso

# Delete database entry of the created custom block volume.
Expand Down
2 changes: 1 addition & 1 deletion test/suites/migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ migration() {
lxc_remote rm -f l2:c1

# migrate ISO custom volumes
truncate -s 25MiB foo.iso
truncate -s 8MiB foo.iso
lxc storage volume import l1:"${pool}" ./foo.iso iso1
lxc storage volume copy l1:"${pool}"/iso1 l2:"${remote_pool}"/iso1

Expand Down
2 changes: 1 addition & 1 deletion test/suites/storage_local_volume_handling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ test_storage_local_volume_handling() {
! lxc storage volume get "lxdtest-$(basename "${LXD_DIR}")-${target_driver}" vol5/snapremove user.foo || false

# copy ISO custom volumes
truncate -s 25MiB foo.iso
truncate -s 8MiB foo.iso
lxc storage volume import "lxdtest-$(basename "${LXD_DIR}")-${source_driver}" ./foo.iso iso1
lxc storage volume copy "lxdtest-$(basename "${LXD_DIR}")-${source_driver}"/iso1 "lxdtest-$(basename "${LXD_DIR}")-${target_driver}"/iso1
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${target_driver}" iso1 | grep -q 'content_type: iso'
Expand Down
4 changes: 2 additions & 2 deletions test/suites/storage_volume_import.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_storage_volume_import() {
truncate -s 25MiB foo.iso
truncate -s 25MiB foo.img
truncate -s 8MiB foo.iso
truncate -s 8MiB foo.img

ensure_import_testimage

Expand Down

0 comments on commit 8403f05

Please sign in to comment.