Skip to content

Commit 623fcee

Browse files
Merge pull request #5814 from nalind/integration-base-images-1.35
[release-1.35] integration tests: switch some base images
2 parents d1b468d + 29fc17e commit 623fcee

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.packit.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ jobs:
1818
targets:
1919
- fedora-all-x86_64
2020
- fedora-all-aarch64
21-
- fedora-eln-x86_64
22-
- fedora-eln-aarch64
23-
- centos-stream+epel-next-8-x86_64
24-
- centos-stream+epel-next-8-aarch64
25-
- centos-stream+epel-next-9-x86_64
26-
- centos-stream+epel-next-9-aarch64
2721
additional_repos:
2822
- "copr://rhcontainerbot/podman-next"
2923

tests/bud.bats

+4-1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ _EOF
329329
}
330330

331331
@test "bud build with heredoc content" {
332+
_prefetch quay.io/fedora/python-311
332333
run_buildah build -t heredoc $WITH_POLICY_JSON -f $BUDFILES/heredoc/Containerfile .
333334
expect_output --substring "print first line from heredoc"
334335
expect_output --substring "print second line from heredoc"
@@ -4453,15 +4454,17 @@ EOM
44534454
}
44544455

44554456
@test "bud arg and env var with same name" {
4457+
_prefetch busybox
44564458
# Regression test for https://github.com/containers/buildah/issues/2345
44574459
run_buildah build $WITH_POLICY_JSON -t testctr $BUDFILES/dupe-arg-env-name
44584460
expect_output --substring "https://example.org/bar"
44594461
}
44604462

44614463
@test "bud copy chown with newuser" {
4464+
_prefetch quay.io/fedora/fedora
44624465
# Regression test for https://github.com/containers/buildah/issues/2192
44634466
run_buildah build $WITH_POLICY_JSON -t testctr -f $BUDFILES/copy-chown/Containerfile.chown_user $BUDFILES/copy-chown
4464-
expect_output --substring "myuser myuser"
4467+
expect_output --substring "myuser:myuser"
44654468
}
44664469

44674470
@test "bud-builder-identity" {
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM fedora as builder
1+
# "fedora" is replaced as the base image at test-time using the --from flag
2+
FROM fedora as builder
23
FROM busybox
34
COPY --from=builder /bin/df /tmp/df_tester
45

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
FROM ubuntu:latest
1+
FROM quay.io/fedora/fedora
22

33
ENV MYUSER=myuser
4-
54
RUN useradd --create-home --home /"${MYUSER}" "${MYUSER}"
65
COPY --chown="${MYUSER}" ./copychown.txt /somewhere
76

8-
RUN ls -alF /somewhere
7+
RUN stat -c "%U:%G" /somewhere

tests/bud/dupe-arg-env-name/Containerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM centos:8
1+
FROM busybox
22
ARG FOO=bar
33
ARG WEBROOT=https://example.org/
44

tests/bud/heredoc/Containerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM fedora
1+
FROM quay.io/fedora/python-311
2+
3+
USER root
4+
WORKDIR /
25

36
RUN <<EOF
47
echo "print first line from heredoc"

0 commit comments

Comments
 (0)