diff --git a/test/system/000-setup.bats b/test/system/000-setup.bats index 94e40be..bb63212 100644 --- a/test/system/000-setup.bats +++ b/test/system/000-setup.bats @@ -26,7 +26,7 @@ load 'libs/helpers' # Cache the default image for the system _pull_and_cache_distro_image "$system_id" "$system_version" || false # Cache all images that will be needed during the tests - _pull_and_cache_distro_image fedora 32 || false + _pull_and_cache_distro_image fedora 34 || false _pull_and_cache_distro_image busybox || false # If run on Fedora Rawhide, cache 2 extra images (previous Fedora versions) local rawhide_res="$(awk '/rawhide/' $os_release)" diff --git a/test/system/101-create.bats b/test/system/101-create.bats index 1b06b42..b529ead 100644 --- a/test/system/101-create.bats +++ b/test/system/101-create.bats @@ -45,10 +45,10 @@ teardown() { assert_success } -@test "create: Create a container with a custom image and name ('fedora32'; f32)" { - pull_distro_image fedora 32 +@test "create: Create a container with a custom image and name ('fedora34'; f34)" { + pull_distro_image fedora 34 - run $TOOLBOX -y create -c "fedora32" -i fedora-toolbox:32 + run $TOOLBOX -y create -c "fedora34" -i fedora-toolbox:34 assert_success } @@ -84,19 +84,19 @@ teardown() { assert [ ${#lines[@]} -eq 4 ] } -@test "create: Create a container with a distro and release options ('fedora'; f32)" { - pull_distro_image fedora 32 +@test "create: Create a container with a distro and release options ('fedora'; f34)" { + pull_distro_image fedora 34 - run $TOOLBOX -y create -d "fedora" -r f32 + run $TOOLBOX -y create -d "fedora" -r f34 assert_success - assert_output --partial "Created container: fedora-toolbox-32" - assert_output --partial "Enter with: toolbox enter fedora-toolbox-32" + assert_output --partial "Created container: fedora-toolbox-34" + assert_output --partial "Enter with: toolbox enter fedora-toolbox-34" # Make sure the container has actually been created run podman ps -a - assert_output --regexp "Created[[:blank:]]+fedora-toolbox-32" + assert_output --regexp "Created[[:blank:]]+fedora-toolbox-34" } @test "create: Try to create a container based on unsupported distribution" { @@ -182,9 +182,9 @@ teardown() { } @test "create: Try to create a container using both --distro and --image" { - pull_distro_image fedora 32 + pull_distro_image fedora 34 - run $TOOLBOX --assumeyes create --distro "fedora" --image fedora-toolbox:32 + run $TOOLBOX --assumeyes create --distro "fedora" --image fedora-toolbox:34 assert_failure assert_line --index 0 "Error: options --distro and --image cannot be used together" @@ -193,9 +193,9 @@ teardown() { } @test "create: Try to create a container using both --image and --release" { - pull_distro_image fedora 32 + pull_distro_image fedora 34 - run $TOOLBOX --assumeyes create --image fedora-toolbox:32 --release 32 + run $TOOLBOX --assumeyes create --image fedora-toolbox:34 --release 34 assert_failure assert_line --index 0 "Error: options --image and --release cannot be used together" @@ -217,7 +217,7 @@ teardown() { @test "create: Create a container based on an image from locked registry using an authentication file" { local authfile="$BATS_RUN_TMPDIR/authfile" - local image="fedora-toolbox:32" + local image="fedora-toolbox:34" run $PODMAN login --authfile "$authfile" --username user --password user "$DOCKER_REG_URI" assert_success @@ -235,7 +235,7 @@ teardown() { rm "$authfile" assert_success - assert_line --index 0 "Created container: fedora-toolbox-32" - assert_line --index 1 "Enter with: toolbox enter fedora-toolbox-32" + assert_line --index 0 "Created container: fedora-toolbox-34" + assert_line --index 1 "Enter with: toolbox enter fedora-toolbox-34" assert [ ${#lines[@]} -eq 2 ] } diff --git a/test/system/102-list.bats b/test/system/102-list.bats index e95dae5..fb0035c 100644 --- a/test/system/102-list.bats +++ b/test/system/102-list.bats @@ -66,7 +66,7 @@ teardown() { @test "list: Try to list images and containers (no flag) with 3 containers and 2 images (the list should have 3 images and 2 containers)" { # Pull the two images pull_default_image - pull_distro_image fedora 32 + pull_distro_image fedora 34 # Create three containers create_default_container @@ -78,7 +78,7 @@ teardown() { assert_success assert_output --partial "$(get_system_id)-toolbox:$(get_system_version)" - assert_output --partial "fedora-toolbox:32" + assert_output --partial "fedora-toolbox:34" # Check containers run $TOOLBOX list --containers @@ -93,7 +93,7 @@ teardown() { assert_success assert_output --partial "$(get_system_id)-toolbox:$(get_system_version)" - assert_output --partial "fedora-toolbox:32" + assert_output --partial "fedora-toolbox:34" assert_output --partial "$(get_system_id)-toolbox-$(get_system_version)" assert_output --partial "non-default-one" assert_output --partial "non-default-two" diff --git a/test/system/README.md b/test/system/README.md index 691f141..945c697 100644 --- a/test/system/README.md +++ b/test/system/README.md @@ -78,11 +78,11 @@ Examples: `localhost:50000`. The registry requires authentication. There is one account present: `user` (password: `user`) -- The registry contains by default only one image: `fedora-toolbox:32` +- The registry contains by default only one image: `fedora-toolbox:34` -Example pull of the `fedora-toolbox:32` image: +Example pull of the `fedora-toolbox:34` image: ```bash $PODMAN login --username user --password user "$DOCKER_REG_URI" -$PODMAN pull "$DOCKER_REG_URI/fedora-toolbox:32" +$PODMAN pull "$DOCKER_REG_URI/fedora-toolbox:34" ``` diff --git a/test/system/libs/helpers.bash b/test/system/libs/helpers.bash index c3d628f..31a8790 100644 --- a/test/system/libs/helpers.bash +++ b/test/system/libs/helpers.bash @@ -199,10 +199,10 @@ function _setup_docker_registry() { "${DOCKER_REG_URI}" assert_success - # Add fedora-toolbox:32 image to the registry + # Add fedora-toolbox:34 image to the registry run $SKOPEO copy --dest-authfile ${TEMP_BASE_DIR}/authfile.json \ - dir:"${IMAGE_CACHE_DIR}"/fedora-toolbox-32 \ - docker://"${DOCKER_REG_URI}"/fedora-toolbox:32 + dir:"${IMAGE_CACHE_DIR}"/fedora-toolbox-34 \ + docker://"${DOCKER_REG_URI}"/fedora-toolbox:34 assert_success run rm ${TEMP_BASE_DIR}/authfile.json