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

[WFLY-6448] Allow exclusion of kernel xsd schemas during testing of c… #8813

Merged
merged 1 commit into from
Apr 1, 2016

Conversation

bstansberry
Copy link
Contributor

…ore snapshots

Prevents StandardConfigsXMLValidationUnitTestCase rejecting full's valid standard config files when testing a core snapshot that includes a new kernel xsd version.

To use, assuming a core version named "3.0.0.Alpha1-SNAPSHOT" is being tested in full, and it includes a new xsd named wildfly-config_5_0.xsd:

  1. Include -Dversion.org.wildfly.core=3.0.0.Alpha1-SNAPSHOT in the params passed to mvn when running full's testsuite. (This is the normal way you test a core snapshot; nothing related to this PR here).

  2. Also, include -Djboss.test.xml.validation.future.schemas=3.0.0.Alpha1-SNAPSHOT/wildfly-config_5_0.xsd in the params passed to mvn.

So, format of the new sys prop's value is core_version/xsd_file.

If for some reason you need more than one file, the system property value can be a comma delimited list with each element a / delimited pair.

Why use the pair in the new property and not just the file name? Doing this helps guard against people setting this up in a CI test setup, and then forgetting to clear it when the core version is released and the new xsd becomes the "current" one in full. A schema file is only considered to be a "future" one if the core_version part matches the core version being tested.

@darranl
Copy link
Contributor

darranl commented Apr 1, 2016

Looks good

@bstansberry bstansberry merged commit 3829371 into wildfly:master Apr 1, 2016
@bstansberry bstansberry deleted the WFLY-6448 branch April 1, 2016 21:13
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