Skip to content

Commit 1c5708b

Browse files
authored
Test beta RPMs (#191)
1 parent 3e0d887 commit 1c5708b

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed

test/ubi8/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM registry.access.redhat.com/ubi8/ubi:latest as adt
2+
3+
COPY <<EOF /etc/yum.repos.d/aap.repo
4+
[aap25]
5+
name=aap25
6+
baseurl='https://rhsm-pulp.corp.stage.redhat.com/content/beta/layered/rhel$releasever/$basearch/ansible-developer/1-beta/os/'
7+
gpgcheck=0
8+
enabled=1
9+
module_hotfixes=1
10+
EOF
11+
12+
RUN <<EOF
13+
dnf remove -y subscription-manager dnf-plugin-subscription-manager
14+
dnf install -y ansible-dev-tools
15+
dnf clean all
16+
EOF
17+
RUN <<EOF
18+
set -e
19+
echo "Show adt version."
20+
adt --version
21+
echo "Show ansible-creator version."
22+
ansible-creator --version
23+
echo "Show ansible-lint version."
24+
ansible-lint --version
25+
echo "Show ansible-navigator version."
26+
ansible-navigator --version
27+
echo "Show molecule version."
28+
molecule --version
29+
echo "Show ade version."
30+
ade --version
31+
echo "Check if tox recognizes tox-ansible plugin."
32+
tox --version | grep tox-ansible
33+
echo "Check if pytest recognizes pytest-ansible plugin."
34+
pytest-3.11 --version -VV | grep pytest-ansible
35+
EOF

test/ubi9/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM registry.access.redhat.com/ubi9/ubi:latest as adt
2+
3+
COPY <<EOF /etc/yum.repos.d/aap.repo
4+
[aap25]
5+
name=aap25
6+
baseurl='https://rhsm-pulp.corp.stage.redhat.com/content/beta/layered/rhel$releasever/$basearch/ansible-developer/1-beta/os/'
7+
gpgcheck=0
8+
enabled=1
9+
module_hotfixes=1
10+
EOF
11+
12+
RUN <<EOF
13+
dnf remove -y subscription-manager dnf-plugin-subscription-manager
14+
dnf install -y ansible-dev-tools
15+
dnf clean all
16+
EOF
17+
RUN <<EOF
18+
set -e
19+
echo "Show adt version."
20+
adt --version
21+
echo "Show ansible-creator version."
22+
ansible-creator --version
23+
echo "Show ansible-lint version."
24+
ansible-lint --version
25+
echo "Show ansible-navigator version."
26+
ansible-navigator --version
27+
echo "Show molecule version."
28+
molecule --version
29+
echo "Show ade version."
30+
ade --version
31+
echo "Check if tox recognizes tox-ansible plugin."
32+
tox --version | grep tox-ansible
33+
echo "Check if pytest recognizes pytest-ansible plugin."
34+
pytest-3.11 --version -VV | grep pytest-ansible
35+
EOF

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ minversion = 4.0
33
envlist =
44
lint
55
docs
6+
ubi8
7+
ubi9
68
isolated_build = True
79
requires =
810
tox>=4.0.12
@@ -35,3 +37,12 @@ deps = pre-commit>=1.18.1
3537
extras =
3638
skip_install = true
3739
usedevelop = false
40+
41+
[testenv:{ubi8,ubi9}]
42+
description = Building container using beta RPMs (requires VPN) {envname}
43+
changedir = test/{envname}
44+
commands =
45+
podman build --tag adt-{envname} {posargs} .
46+
podman run -it adt-{envname} adt --version
47+
allowlist_externals =
48+
podman

0 commit comments

Comments
 (0)