-
Notifications
You must be signed in to change notification settings - Fork 1
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
[OPENJDK-3396]Addition of a testcase for testing the jlink tech preview functionality. #14
Conversation
…ew functionality.
Hi! Great job! Can you please a bit describe what it does and why it do what it do as it do it? |
@judovana Sure, The test case automation deploys the template onto the OCP cluster. Then validates the templates parameters. Next the test deploys an application using this template, validating the defined resources are created and available on the OCP cluster. Final it checks that the deployed App is up and running. Utility code was borrowed from historic eap testing. |
@@ -18,6 +18,9 @@ xtf.openjdk.17.version=17 | |||
xtf.openjdk.21.image=registry.access.redhat.com/ubi8/openjdk-21:1.19-4 | |||
xtf.openjdk.21.version=21 | |||
|
|||
#Jlink template file location | |||
xtf.openjdk.21.properties.template.url=https://raw.githubusercontent.com/rh-openjdk/redhat-openjdk-containers/refs/heads/jlink-dev/templates/jlink/jlinked-app.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that have alot of A LOT OF parameters...
verifyExpectedResourcesCreated(); | ||
// Validate the app is up | ||
assertTrue(Https.doesUrlReturnCode("http://" + HOSTNAME, 200).waitFor()); | ||
System.out.println("Statement."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Statement? Just statement?-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to remove that. I was using it so I could study the assert with the debugger
test-openjdk/src/test/java/com/redhat/qe/openjdk/jlink/TemplateBuildTest.java
Show resolved
Hide resolved
Beginner question: How can I invoke the new |
@jmtd |
that was from the root, trying from Edit: same result. This is clearly just beginner's inexperience with running this stuff, but any more pointers greatly appreciated! |
@jmtd Looking now. |
The content of the test looks good to me, I'll try running it later and see if I can reproduce the issue Jon is seeing |
… HEAP space in the builds.
@jmtd @Josh-Matsuoka clean -DforkCount=0 test -P 21 -Dtest=TemplateBuildTest -Dmaven.home=/usr/share/maven Make sure to update your xtf.openjdk.21.image= value to your build under test. |
What is the recommended Java and Maven versions to execute this please? JDK21 and Maven 3.8.7 seems to result in
|
@jmtd I'm running jdk 17 mvn 3.9.6 |
Unfortunately i still can't get mvn/? to find the class
in the big backtrace, this is the bit that looks most useful
Maven has actually built the test class, so that bit seems to work:
|
Full backtrace:
|
I think it's because i have not explicitly pointed xtf at an OCP instance. current guess |
Added test case to check the jlink template and test the app deployment and resource creation on an OpenShift cluster.