Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hawflau committed Nov 12, 2023
1 parent 26f3efe commit 4d04ac5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions tests/build_image_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,7 @@ def is_architecture(self, architecture):
self.client.containers.run(self.image, command=["/bin/uname", "-m"])
)
return architecture in result


class AL2023BasedBuildImageBase(BuildImageBase):
package_managers = ["dnf"]
9 changes: 4 additions & 5 deletions tests/test_build_images.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from tests.build_image_base_test import BuildImageBase
from tests.build_image_base_test import BuildImageBase, AL2023BasedBuildImageBase


@pytest.mark.java8
Expand Down Expand Up @@ -318,7 +318,7 @@ def test_packages(self):
self.assertTrue(self.is_architecture("aarch64"))

@pytest.mark.nodejs20x
class TestBINode20(BuildImageBase):
class TestBINode20(AL2023BasedBuildImageBase):
__test__ = True

@classmethod
Expand All @@ -335,7 +335,7 @@ def test_packages(self):


@pytest.mark.nodejs20x
class TestBINode18ForArm(BuildImageBase):
class TestBINode18ForArm(AL2023BasedBuildImageBase):
__test__ = True

@classmethod
Expand Down Expand Up @@ -694,9 +694,8 @@ def test_architecture(self):


@pytest.mark.provided_al2023
class TestBIProvidedAL2023(BuildImageBase):
class TestBIProvidedAL2023(AL2023BasedBuildImageBase):
__test__ = True
package_managers = ["dnf"]

@classmethod
def setUpClass(cls):
Expand Down

0 comments on commit 4d04ac5

Please sign in to comment.