Skip to content

Commit c445db4

Browse files
authored
Merge pull request #221 from jmtd/ubi8-content-sets
[OPENJDK-407] use UBI content sets + a test
2 parents ceddd60 + e6c2e51 commit c445db4

File tree

5 files changed

+42
-32
lines changed

5 files changed

+42
-32
lines changed

redhat/ubi8-openjdk-11-runtime.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ packages:
1414
manager: microdnf
1515
content_sets:
1616
x86_64:
17-
- rhel-8-for-x86_64-baseos-rpms
18-
- rhel-8-for-x86_64-appstream-rpms
17+
- ubi-8-for-x86_64-baseos-rpms__8
18+
- ubi-8-for-x86_64-appstream-rpms__8
1919
ppc64le:
20-
- rhel-8-for-ppc64le-baseos-rpms
21-
- rhel-8-for-ppc64le-appstream-rpms
20+
- ubi-8-for-ppc64le-appstream-rpms__8
21+
- ubi-8-for-ppc64le-baseos-rpms__8
2222
aarch64:
23-
- rhel-8-for-aarch64-baseos-rpms
24-
- rhel-8-for-aarch64-appstream-rpms
23+
- ubi-8-for-aarch64-baseos-rpms__8
24+
- ubi-8-for-aarch64-appstream-rpms__8
2525
s390x:
26-
- rhel-8-for-s390x-baseos-rpms
27-
- rhel-8-for-s390x-appstream-rpms
26+
- ubi-8-for-s390x-baseos-rpms__8
27+
- ubi-8-for-s390x-appstream-rpms__8

redhat/ubi8-openjdk-11.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ packages:
1616
manager: microdnf
1717
content_sets:
1818
x86_64:
19-
- rhel-8-for-x86_64-baseos-rpms
20-
- rhel-8-for-x86_64-appstream-rpms
19+
- ubi-8-for-x86_64-baseos-rpms__8
20+
- ubi-8-for-x86_64-appstream-rpms__8
2121
ppc64le:
22-
- rhel-8-for-ppc64le-baseos-rpms
23-
- rhel-8-for-ppc64le-appstream-rpms
22+
- ubi-8-for-ppc64le-appstream-rpms__8
23+
- ubi-8-for-ppc64le-baseos-rpms__8
2424
aarch64:
25-
- rhel-8-for-aarch64-baseos-rpms
26-
- rhel-8-for-aarch64-appstream-rpms
25+
- ubi-8-for-aarch64-baseos-rpms__8
26+
- ubi-8-for-aarch64-appstream-rpms__8
2727
s390x:
28-
- rhel-8-for-s390x-baseos-rpms
29-
- rhel-8-for-s390x-appstream-rpms
28+
- ubi-8-for-s390x-baseos-rpms__8
29+
- ubi-8-for-s390x-appstream-rpms__8

redhat/ubi8-openjdk-8-runtime.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ packages:
1414
manager: microdnf
1515
content_sets:
1616
x86_64:
17-
- rhel-8-for-x86_64-baseos-rpms
18-
- rhel-8-for-x86_64-appstream-rpms
17+
- ubi-8-for-x86_64-baseos-rpms__8
18+
- ubi-8-for-x86_64-appstream-rpms__8
1919
ppc64le:
20-
- rhel-8-for-ppc64le-baseos-rpms
21-
- rhel-8-for-ppc64le-appstream-rpms
20+
- ubi-8-for-ppc64le-appstream-rpms__8
21+
- ubi-8-for-ppc64le-baseos-rpms__8
2222
aarch64:
23-
- rhel-8-for-aarch64-baseos-rpms
24-
- rhel-8-for-aarch64-appstream-rpms
23+
- ubi-8-for-aarch64-baseos-rpms__8
24+
- ubi-8-for-aarch64-appstream-rpms__8
2525
s390x:
26-
- rhel-8-for-s390x-baseos-rpms
27-
- rhel-8-for-s390x-appstream-rpms
26+
- ubi-8-for-s390x-baseos-rpms__8
27+
- ubi-8-for-s390x-appstream-rpms__8

redhat/ubi8-openjdk-8.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ packages:
1616
manager: microdnf
1717
content_sets:
1818
x86_64:
19-
- rhel-8-for-x86_64-baseos-rpms
20-
- rhel-8-for-x86_64-appstream-rpms
19+
- ubi-8-for-x86_64-baseos-rpms__8
20+
- ubi-8-for-x86_64-appstream-rpms__8
2121
ppc64le:
22-
- rhel-8-for-ppc64le-baseos-rpms
23-
- rhel-8-for-ppc64le-appstream-rpms
22+
- ubi-8-for-ppc64le-appstream-rpms__8
23+
- ubi-8-for-ppc64le-baseos-rpms__8
2424
aarch64:
25-
- rhel-8-for-aarch64-baseos-rpms
26-
- rhel-8-for-aarch64-appstream-rpms
25+
- ubi-8-for-aarch64-baseos-rpms__8
26+
- ubi-8-for-aarch64-appstream-rpms__8
2727
s390x:
28-
- rhel-8-for-s390x-baseos-rpms
29-
- rhel-8-for-s390x-appstream-rpms
28+
- ubi-8-for-s390x-baseos-rpms__8
29+
- ubi-8-for-s390x-appstream-rpms__8

tests/features/java/openjdk.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ Feature: Miscellaneous OpenJDK-related unit tests
3232
| arg | value |
3333
| command | bash -c "$JAVA_HOME/bin/java -version" |
3434
Then available container log should contain OpenJDK Runtime Environment
35+
36+
@ubi8
37+
Scenario: Check that certain non-UBI packages are not installed
38+
When container is started with args
39+
| arg | value |
40+
| command | rpm -qa |
41+
Then available container log should not contain grub
42+
Then available container log should not contain dejavu-sans-mono-fonts
43+
Then available container log should not contain os-prober
44+
Then available container log should not contain rpm-plugin-systemd-inhibit

0 commit comments

Comments
 (0)