Skip to content

Commit c79cad1

Browse files
committed
[OPENJDK-1335] Test lack of transitive weak-deps
Ensure images do not have a set of RPMs installed which are not hard dependencies of OpenJDK or Maven but might get installed as transitive weak dependencies if microdnf is not configured with install_weak_deps=0 Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 54da0e3 commit c79cad1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/features/java/openjdk.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,18 @@ Feature: Miscellaneous OpenJDK-related unit tests
7979
| arg | value |
8080
| command | bash -c "$JAVA_HOME/bin/java -XshowSettings:properties -version" |
8181
Then available container log should contain file.encoding = UTF-8
82+
83+
@ubi8/openjdk-8
84+
@ubi8/openjdk-11
85+
@ubi8/openjdk-17
86+
Scenario: Check that transitive weak dependencies are not installed (OPENJDK-1335)
87+
When container is started with args
88+
| arg | value |
89+
| command | rpm -qa |
90+
Then available container log should not contain procps-ng
91+
Then available container log should not contain os-prober
92+
Then available container log should not contain which
93+
Then available container log should not contain systemd-pam
94+
Then available container log should not contain libpwquality
95+
Then available container log should not contain libxkbcommon
96+
Then available container log should not contain kbd

0 commit comments

Comments
 (0)