1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-03 23:01:48 +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

@ -39,7 +39,7 @@
assert:
that:
- 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
containers.podman.podman_save:
@ -58,7 +58,7 @@
assert:
that:
- 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
containers.podman.podman_image:
@ -87,5 +87,5 @@
assert:
that:
- image.image != {}
- '"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'
# - '"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'

View file

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

View file

@ -40,9 +40,9 @@
assert:
that:
- tagged_image_result.images | length == 1
- "'docker.io/library/alpine' in tagged_image_result.images[0]['RepoTags'][0]"
- "'localhost/openjdk8:latest' in tagged_image_result.images[0]['RepoTags'][1]"
- "'localhost/jdk8:latest' in tagged_image_result.images[0]['RepoTags'][2]"
- 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']"
- "'localhost/jdk8:latest' in tagged_image_result.images[0]['RepoTags']"
always:
- name: Cleanup image