Skip to content

Commit

Permalink
use a TestingFarm RHEL image for container tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Jaburek <comps@nomail.dom>
  • Loading branch information
comps authored and matusmarhefka committed Nov 25, 2024
1 parent cfcb990 commit f951545
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
3 changes: 0 additions & 3 deletions hardening/container/anaconda-ostree/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ adjust:
- when: distro < rhel-9.6
enabled: false
because: Image Mode not supported for older RHELs
- when: distro == rhel
enabled: false
because: TODO - no freely accessible RHEL bootc image, CentOS Stream only
tag+:
# TODO: this test is currently broken by / blocked on Anaconda
# having broken ostreecontainer kickstart functionality,
Expand Down
9 changes: 7 additions & 2 deletions hardening/container/anaconda-ostree/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
guest.wipe()
guest.generate_ssh_keypair()

# CentOS Stream image only, for now
src_image = f'quay.io/centos-bootc/centos-bootc:stream{versions.rhel.major}'
# select appropriate container image based on host OS
major = versions.rhel.major
minor = versions.rhel.minor
if versions.rhel.is_true_rhel():
src_image = f'images.paas.redhat.com/testingfarm/rhel-bootc:{major}.{minor}'
else:
src_image = f'quay.io/centos-bootc/centos-bootc:stream{major}'

# RHEL-9 and older use 'maint-1.3' openscap git repo branch, newer use 'main'
if versions.rhel <= 9:
Expand Down
3 changes: 0 additions & 3 deletions hardening/container/bootc-image-builder/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ adjust:
- when: distro < rhel-9.6
enabled: false
because: Image Mode not supported for older RHELs
- when: distro == rhel
enabled: false
because: TODO - no freely accessible RHEL bootc image, CentOS Stream only

/anssi_bp28_high:

Expand Down
9 changes: 7 additions & 2 deletions hardening/container/bootc-image-builder/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@
guest.wipe()
guest.generate_ssh_keypair()

# CentOS Stream image only, for now
src_image = f'quay.io/centos-bootc/centos-bootc:stream{versions.rhel.major}'
# select appropriate container image based on host OS
major = versions.rhel.major
minor = versions.rhel.minor
if versions.rhel.is_true_rhel():
src_image = f'images.paas.redhat.com/testingfarm/rhel-bootc:{major}.{minor}'
else:
src_image = f'quay.io/centos-bootc/centos-bootc:stream{major}'

# RHEL-9 and older use 'maint-1.3' openscap git repo branch, newer use 'main'
if versions.rhel <= 9:
Expand Down

0 comments on commit f951545

Please sign in to comment.