From b99d30455517b1c17d48d1d9eff566f0c28fdf93 Mon Sep 17 00:00:00 2001 From: Ken Finnigan Date: Wed, 30 Oct 2019 14:38:44 -0400 Subject: [PATCH] Fix MP Config TCK tests as part of #4516 --- .../configuration/ExpandingConfigSource.java | 2 +- .../deployment/ErroneousConfigTest.java | 2 +- tcks/microprofile-config/pom.xml | 11 ++-- tcks/microprofile-config/tck-suite.xml | 50 ------------------- 4 files changed, 10 insertions(+), 55 deletions(-) delete mode 100644 tcks/microprofile-config/tck-suite.xml diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ExpandingConfigSource.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ExpandingConfigSource.java index b588d32854f49..aefcc7dfb77e3 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ExpandingConfigSource.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ExpandingConfigSource.java @@ -72,7 +72,7 @@ public static String expandValue(String value, Cache cache) { if (value == null) return null; final Expression compiled = cache.exprCache.computeIfAbsent(value, - str -> Expression.compile(str, Expression.Flag.LENIENT_SYNTAX)); + str -> Expression.compile(str, Expression.Flag.LENIENT_SYNTAX, Expression.Flag.NO_TRIM)); return compiled.evaluate(ConfigExpander.INSTANCE); } diff --git a/extensions/swagger-ui/deployment/src/test/java/io/quarkus/swaggerui/deployment/ErroneousConfigTest.java b/extensions/swagger-ui/deployment/src/test/java/io/quarkus/swaggerui/deployment/ErroneousConfigTest.java index b3c749035a97f..a0ce42d541ba4 100644 --- a/extensions/swagger-ui/deployment/src/test/java/io/quarkus/swaggerui/deployment/ErroneousConfigTest.java +++ b/extensions/swagger-ui/deployment/src/test/java/io/quarkus/swaggerui/deployment/ErroneousConfigTest.java @@ -16,7 +16,7 @@ public class ErroneousConfigTest { static final QuarkusUnitTest config = new QuarkusUnitTest() .setExpectedException(ConfigurationError.class) .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class) - .addAsResource(new StringAsset("quarkus.swagger-ui.path=/ \n"), "application.properties")); + .addAsResource(new StringAsset("quarkus.swagger-ui.path=/\n"), "application.properties")); @Test public void shouldNotStartApplicationIfSwaggerPathIsASlash() { diff --git a/tcks/microprofile-config/pom.xml b/tcks/microprofile-config/pom.xml index 5e9072bd42542..fee196fe3730a 100644 --- a/tcks/microprofile-config/pom.xml +++ b/tcks/microprofile-config/pom.xml @@ -18,9 +18,6 @@ org.apache.maven.plugins maven-surefire-plugin - - tck-suite.xml - 45 @@ -38,6 +35,14 @@ org.eclipse.microprofile.config:microprofile-config-tck + false + + + org.eclipse.microprofile.config.tck.EmptyValuesTest + + + org.eclipse.microprofile.config.tck.ConfigProviderTest + diff --git a/tcks/microprofile-config/tck-suite.xml b/tcks/microprofile-config/tck-suite.xml deleted file mode 100644 index c235643512885..0000000000000 --- a/tcks/microprofile-config/tck-suite.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file