diff --git a/igor-web/src/main/groovy/com/netflix/spinnaker/igor/Main.groovy b/igor-web/src/main/groovy/com/netflix/spinnaker/igor/Main.groovy index c4e640242..82ff917ef 100644 --- a/igor-web/src/main/groovy/com/netflix/spinnaker/igor/Main.groovy +++ b/igor-web/src/main/groovy/com/netflix/spinnaker/igor/Main.groovy @@ -39,7 +39,9 @@ import java.security.Security ) class Main extends SpringBootServletInitializer { - static final Map DEFAULT_PROPS = new DefaultPropertiesBuilder().property("spring.application.name", "igor").build() + static final Map DEFAULT_PROPS = new DefaultPropertiesBuilder().property("spring.application.name", "igor") + .property("spring.mvc.pathmatch.matching-strategy","ANT_PATH_MATCHER") + .build() static { /** diff --git a/igor-web/src/test/java/com/netflix/spinnaker/igor/MainTest.java b/igor-web/src/test/java/com/netflix/spinnaker/igor/MainTest.java index f3a1c9131..ebf6647e2 100644 --- a/igor-web/src/test/java/com/netflix/spinnaker/igor/MainTest.java +++ b/igor-web/src/test/java/com/netflix/spinnaker/igor/MainTest.java @@ -24,7 +24,11 @@ @ExtendWith(SpringExtension.class) @SpringBootTest(classes = {RedisConfig.class, Main.class}) -@TestPropertySource(properties = {"spring.application.name = igor"}) +@TestPropertySource( + properties = { + "spring.application.name = igor", + "spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER" + }) public class MainTest { @Test public void startupTest() {} diff --git a/igor-web/src/test/java/com/netflix/spinnaker/igor/artifacts/ArtifactExtractorTest.java b/igor-web/src/test/java/com/netflix/spinnaker/igor/artifacts/ArtifactExtractorTest.java index 71809203c..12ae4f48a 100644 --- a/igor-web/src/test/java/com/netflix/spinnaker/igor/artifacts/ArtifactExtractorTest.java +++ b/igor-web/src/test/java/com/netflix/spinnaker/igor/artifacts/ArtifactExtractorTest.java @@ -18,7 +18,11 @@ @ExtendWith(SpringExtension.class) @SpringBootTest(classes = Main.class) -@TestPropertySource(properties = {"spring.application.name = igor"}) +@TestPropertySource( + properties = { + "spring.application.name = igor", + "spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER" + }) public class ArtifactExtractorTest { @Autowired private ArtifactExtractor artifactExtractor;