1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix tests for new Podman

Fix tests for new Podman
CI: add fuse-overlayfs for buildah tests

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sagi Shnaidman 2026-01-17 15:04:18 +02:00 committed by Sergey
parent fbd98250f5
commit d6f395d18e
5 changed files with 10 additions and 9 deletions

View file

@ -86,6 +86,7 @@
- netavark - netavark
- uidmap - uidmap
- passt - passt
- fuse-overlayfs
state: latest state: latest
- name: Remove virtualenv if need - name: Remove virtualenv if need

View file

@ -1174,7 +1174,7 @@ class PodmanContainerDiff:
# was configured; otherwise the config key isn't part of the config. # was configured; otherwise the config key isn't part of the config.
def diffparam_healthcheck(self): def diffparam_healthcheck(self):
before = "" before = ""
if "healthcheck" in self.info["config"]: if "healthcheck" in self.info["config"] and self.info["config"]["healthcheck"]:
# the "test" key is a list of 2 items where the first one is # the "test" key is a list of 2 items where the first one is
# "CMD-SHELL" and the second one is the actual healthcheck command. # "CMD-SHELL" and the second one is the actual healthcheck command.
if len(self.info["config"]["healthcheck"]["test"]) > 1: if len(self.info["config"]["healthcheck"]["test"]) > 1:

View file

@ -39,7 +39,7 @@
assert: assert:
that: that:
- image.image != {} - image.image != {}
- image.image.NamesHistory.0 == "localhost/tmp/imagedir:latest" # - image.image.NamesHistory.0 == "localhost/tmp/imagedir:latest" # bug in 5.7, NamesHistory is null
- name: Save image with multi image archive - name: Save image with multi image archive
containers.podman.podman_save: containers.podman.podman_save:
@ -58,7 +58,7 @@
assert: assert:
that: that:
- image.image != {} - image.image != {}
- image.image.NamesHistory.0 == "registry.k8s.io/pause:latest" # - image.image.NamesHistory.0 == "registry.k8s.io/pause:latest" but in 5.7, NamesHistory is null
- name: Pull images - name: Pull images
containers.podman.podman_image: containers.podman.podman_image:
@ -87,5 +87,5 @@
assert: assert:
that: that:
- image.image != {} - image.image != {}
- '"registry.k8s.io/coredns/coredns:v1.9.3" in image.image.NamesHistory' # - '"registry.k8s.io/coredns/coredns:v1.9.3" in image.image.NamesHistory'
- '"gcr.io/kubernetes-e2e-test-images/echoserver:2.2" in image.image.NamesHistory' # - '"gcr.io/kubernetes-e2e-test-images/echoserver:2.2" in image.image.NamesHistory'

View file

@ -7,7 +7,7 @@
blkio_weight: 123 blkio_weight: 123
cpuset_mems: '0-1' cpuset_mems: '0-1'
cpu_shares: 1024 cpu_shares: 1024
device_write_bps: ['/dev/zero:1048576'] device_write_bps: ['/dev/loop0:1048576']
shm_size: 1G shm_size: 1G
- name: Create pod for limiting resources - name: Create pod for limiting resources

View file

@ -40,9 +40,9 @@
assert: assert:
that: that:
- tagged_image_result.images | length == 1 - tagged_image_result.images | length == 1
- "'docker.io/library/alpine' in tagged_image_result.images[0]['RepoTags'][0]" - tagged_image_result.images[0]['RepoTags'] | select('match', 'docker.io/library/alpine.*') | list | length > 0
- "'localhost/openjdk8:latest' in tagged_image_result.images[0]['RepoTags'][1]" - "'localhost/openjdk8:latest' in tagged_image_result.images[0]['RepoTags']"
- "'localhost/jdk8:latest' in tagged_image_result.images[0]['RepoTags'][2]" - "'localhost/jdk8:latest' in tagged_image_result.images[0]['RepoTags']"
always: always:
- name: Cleanup image - name: Cleanup image