Closed cherylking closed 3 years ago
I used this guide to test the fix: https://openliberty.io/guides/arquillian-managed.html
I altered the pom.xml in the finish
folder to include the userDirectory
configuration parameter for liberty-maven-plugin
and added usrDir
with the same value to the arquillianProperties
in the same plugin configuration.
When running the tests without the fix, the following is seen at the end of the run:
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.331 s - in it.io.openliberty.guides.inventory.InventoryArquillianIT
CWWKE0005E: The runtime environment could not be launched.
CWWKE0031E: Specified defaultServer server does not exist; use the create action to create a new server. serverPath: /Users/cherylking/gitForks/guide-arquillian-managed/finish/target/liberty/wlp/usr/servers/defaultServer
With the fix, the following is seen:
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.393 s - in it.io.openliberty.guides.inventory.InventoryArquillianIT
Stopping server defaultServer.
[AUDIT ] CWWKE0055I: Server shutdown requested on Monday, April 26, 2021 at 11:51 AM. The server defaultServer is shutting down.
[AUDIT ] CWWKE1100I: Waiting for up to 30 seconds for the server to quiesce.
[INFO ] CWWKO0220I: TCP Channel defaultHttpEndpoint has stopped listening for requests on host localhost (IPv4: 127.0.0.1) port 9080.
[INFO ] CWWKE1101I: Server quiesce complete.
[AUDIT ] CWWKE0036I: The server defaultServer stopped after 12.198 seconds.
Server defaultServer stopped.
Short description of what this resolves:
Fix setting of WLP_USER_DIR for stop server commands.
Changes proposed in this pull request:
Fixes #107