[
https://jira.jboss.org/jira/browse/JBBOOT-43?page=com.atlassian.jira.plug...
]
John Bailey commented on JBBOOT-43:
-----------------------------------
After second thought, I am not able to remove the additional lifecycle method in
MCServerBootstrapUrlTestCase.@After. Even with the shutdownServerAndClear lifecycle, the
system properties are not being removed between tests. If the system properties are not
removed between tests, subsequent tests will fail if the only the bootstrapHome is set.
When each test runs through the start process it runs through the property overrides and
sets system properties for each of the bootstrap(Home, Name, URL) properties. So if the
bootstrapUrl is set in one test, it will still be set as a system property for the next
test. If the subsequent test only sets the bootstrapHome and bootstrapName, it will get
the bootstrapUrl applied from the last test as part of the override properties step, and
will likely fail with the wrong bootstrapUrl. This seems like something that should get
cleaned up when the server is shutdown. To test this behavior, remove the
clearServerProperties method and rerun the tests. You will see a failure occur and if
traced through it is bases on a lingering bootstrapUrl system property.
Should these system properties be cleaned up at server shutdown?
Enable the use of local and remote URLs for bootstrapUrl and properly
handle relative <url> elements
----------------------------------------------------------------------------------------------------
Key: JBBOOT-43
URL:
https://jira.jboss.org/jira/browse/JBBOOT-43
Project: JBoss Bootstrap
Issue Type: Feature Request
Components: impl-mc
Affects Versions: 0.1.1
Reporter: Andrew Lee Rubinger
Assignee: John Bailey
Fix For: impl-mc-2.0.0-alpha-3
Attachments: JBBOOT-43.patch
Make sure the bootstrapUrl works for URLs other than file:// and verify both relative and
fully qualified <url> elements are handled correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira