Skip to content

Commit

Permalink
test: add test for anaconda install on centos10
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Aug 27, 2024
1 parent f333d95 commit f41977d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bib/data/defs/centos-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ anaconda-iso:
- alsa-tools-firmware
- anaconda
- anaconda-dracut
- anaconda-install-env-deps
- anaconda-install-img-deps
- anaconda-widgets
- audit
- bind-utils
Expand All @@ -27,6 +27,7 @@ anaconda-iso:
- gdisk
- glibc-all-langpacks
- gnome-kiosk
- gnome-remote-desktop
- google-noto-sans-cjk-ttc-fonts
- grub2-tools
- grub2-tools-extra
Expand Down Expand Up @@ -62,6 +63,7 @@ anaconda-iso:
- nss-tools
- openssh-clients
- openssh-server
- openssl
- ostree
- pciutils
- perl-interpreter
Expand Down
11 changes: 10 additions & 1 deletion test/testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ class TestCaseCentos(TestCase):
"quay.io/centos-bootc/centos-bootc:stream9")


@dataclasses.dataclass
class TestCaseCentos10(TestCase):
container_ref: str = os.getenv(
"BIB_TEST_BOOTC_CONTAINER_TAG",
"quay.io/centos-bootc/centos-bootc:stream10")


def gen_testcases(what): # pylint: disable=too-many-return-statements
if what == "manifest":
return [TestCaseCentos(), TestCaseFedora()]
Expand All @@ -65,7 +72,9 @@ def gen_testcases(what): # pylint: disable=too-many-return-statements
if what == "ami-boot":
return [TestCaseCentos(image="ami"), TestCaseFedora(image="ami")]
if what == "anaconda-iso":
return [TestCaseCentos(image="anaconda-iso"), TestCaseFedora(image="anaconda-iso")]
return [TestCaseCentos(image="anaconda-iso"),
TestCaseCentos10(image="anaconda-iso"),
TestCaseFedora(image="anaconda-iso")]
if what == "qemu-boot":
test_cases = [
klass(image=img)
Expand Down

0 comments on commit f41977d

Please sign in to comment.