Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added testcase to check if tar is installed in the container image. #6

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

sefroberg
Copy link
Collaborator

Testcase to test the presents of 'tar' in the container image.
Related to ticket: https://issues.redhat.com/browse/OPENJDK-2588

Ran locally against a full image, an old runtime image to prove it fails and the current runtime image to prove it passes.

@sefroberg sefroberg requested review from jmtd, judovana and andrlos March 7, 2024 21:34
@sefroberg sefroberg self-assigned this Mar 7, 2024
# This test is added to check that tar is installed in all Openjdk images.
# https://issues.redhat.com/browse/OPENJDK-2588
function testTarIsInstalled() {
runOnBaseDir tar --version
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in very extreme cases (eg messed up security release of tar), the --version may not be enough , and rpm -q tar . But thats just an idea forfuture far far away. ty!

@sefroberg sefroberg merged commit 2b0ddbf into main Mar 11, 2024
@sefroberg sefroberg deleted the new_tar_check_tc branch March 11, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants