Skip to content

Commit

Permalink
Merge pull request containers#21868 from edsantiago/reenable-boltdb-u…
Browse files Browse the repository at this point in the history
…pgrade-test

Reenable boltdb upgrade tests
  • Loading branch information
openshift-merge-bot[bot] authored Feb 29, 2024
2 parents 12b8cc8 + 064258b commit c1ac602
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,12 @@ upgrade_test_task:
only_if: *not_tag_magic
depends_on: *build
matrix:
# - env:
# PODMAN_UPGRADE_FROM: v4.1.0
- env:
# 2024-02: as long as possible/reasonable, try to keep
# one version < 4.8 so we can test boltdb. v4.3.1 is
# the lowest we can go right now, builds before that
# have netavark <1.4 which hangs on f39 kernel (#21863).
PODMAN_UPGRADE_FROM: v4.3.1
- env:
PODMAN_UPGRADE_FROM: v4.8.0
gce_instance: *standardvm
Expand Down
10 changes: 4 additions & 6 deletions test/upgrade/test-upgrade.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ setup() {
fi

if [ "$(< $PODMAN_UPGRADE_WORKDIR/status)" = "failed" ]; then
# FIXME: exit instead?
echo "*** setup failed - no point in running tests"
false
skip "*** setup failed - no point in running tests"
fi

# cgroup-manager=systemd does not work inside a container
Expand Down Expand Up @@ -128,7 +126,7 @@ podman \$opts run --name myfailedcontainer --label mylabel=$LABEL_FAILED \
podman \$opts run -d --name myrunningcontainer --label mylabel=$LABEL_RUNNING \
--network bridge \
-p $HOST_PORT:80 \
-p 127.0.0.1:8080-8082:8080-8082 \
-p 127.0.0.1:9090-9092:8080-8082 \
-v $pmroot/var/www:/var/www \
-w /var/www \
--mac-address aa:bb:cc:dd:ee:ff \
Expand Down Expand Up @@ -177,7 +175,7 @@ EOF
# mount /dev/shm because the container locks are stored there
# mount /run/containers for the dnsname plugin
#
$PODMAN run -d --name podman_parent --pid=host \
$PODMAN run -d --name podman_parent \
--privileged \
--net=host \
--cgroupns=host \
Expand Down Expand Up @@ -243,7 +241,7 @@ EOF
# Port order is not guaranteed
assert "${lines[3]}" =~ "myrunningcontainer--Up .*--$LABEL_RUNNING" "line 3, running"
assert "${lines[3]}" =~ ".*--.*0\.0\.0\.0:$HOST_PORT->80\/tcp.*--.*" "line 3, first port forward"
assert "${lines[3]}" =~ ".*--.*127\.0\.0\.1\:8080-8082->8080-8082\/tcp.*--.*" "line 3, second port forward"
assert "${lines[3]}" =~ ".*--.*127\.0\.0\.1\:9090-9092->8080-8082\/tcp.*--.*" "line 3, second port forward"

assert "${lines[4]}" =~ ".*-infra--Created----<no value>" "line 4, infra container"

Expand Down

0 comments on commit c1ac602

Please sign in to comment.