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

Add negative tests for versionless feature support #1831

Merged

Conversation

cherylking
Copy link
Member

Found a way to check the build.log for error messages via the postBuildHookScript.

@cherylking
Copy link
Member Author

This is what the output looks like in one of the failing test build.log files:

[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.10.4-SNAPSHOT:install-feature (install-feature) on project kernel-install-versionless-feature-fail-bad-platform-it: Error installing features for server test: CWWKF1515E: The badname platform could not be found.
[ERROR] CWWKF1516E: The platform could not be determined. The following versionless features cannot be installed: [jaxws].
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Running post-build script: /Users/cherylking/gitForks/ci.maven/liberty-maven-plugin/target/it/kernel-install-versionless-feature-fail-bad-platform-it/cleanTest.bsh
Running post-build script: /Users/cherylking/gitForks/ci.maven/liberty-maven-plugin/target/it/kernel-install-versionless-feature-fail-bad-platform-it/checkErrorVersionlessFeature.bsh
Correct error message found for test kernel-install-versionless-feature-fail-bad-platform-it
Cleaned target dir(s) for /Users/cherylking/gitForks/ci.maven/liberty-maven-plugin/target/it/kernel-install-versionless-feature-fail-bad-platform-it
Finished post-build script: /Users/cherylking/gitForks/ci.maven/liberty-maven-plugin/target/it/kernel-install-versionless-feature-fail-bad-platform-it/cleanTest.bsh

@cherylking cherylking merged commit c0d69d2 into OpenLiberty:main Sep 23, 2024
12 checks passed
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.

2 participants