1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 14:05:44 +00:00

Allow schema-loading from arbitrary url in tests (#374)

* Allow schema-loading from arbitrary url in tests

Server/Schema compatibility tests must be able to load different versions
of the SQL schema. This change allows test runners to override the
schema location using a system property.

Note: due to dependency-locking, we cannot manipulate the dependencies
closure in the build script to load different schema jars. The jars
must not be on the classpath.
This commit is contained in:
Weimin Yu
2019-11-20 12:22:48 -05:00
committed by GitHub
parent 8a06ef09c0
commit 68887d427f
3 changed files with 111 additions and 1 deletions

View File

@@ -660,6 +660,8 @@ task outcastTest(type: FilteringTest) {
// Dedicated test suite for schema-dependent tests.
task sqlIntegrationTest(type: FilteringTest) {
systemProperties project.getProperties().subMap('sql_schema_resource_root')
excludeTestCases = false
tests = ['google/registry/schema/integration/SqlIntegrationTestSuite.*']
}