You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start up micronaut test resources without any issue when running ./gradlew test
Actual Behaviour
Unexpected response code: 301 <!doctype html><title>301 Moved Permanently</title><h1 style="text-align: center">301 Moved Permanently</h1>
io.micronaut.testresources.client.TestResourcesException: Unexpected response code: 301 <!doctype html><title>301 Moved Permanently</title><h1 style="text-align: center">301 Moved Permanently</h1>
at io.micronaut.testresources.client.DefaultTestResourcesClient.request(DefaultTestResourcesClient.java:153)
at io.micronaut.testresources.client.DefaultTestResourcesClient.getResolvableProperties(DefaultTestResourcesClient.java:82)
at io.micronaut.testresources.client.TestResourcesClientPropertySourceLoader$ClientTestResourcesResolver.lambda$produceKeys$0(TestResourcesClientPropertySourceLoader.java:57)
at java.base/java.util.Optional.map(Optional.java:260)
at io.micronaut.testresources.client.TestResourcesClientPropertySourceLoader$ClientTestResourcesResolver.produceKeys(TestResourcesClientPropertySourceLoader.java:57)
at io.micronaut.testresources.core.LazyTestResourcesPropertySourceLoader$LazyPropertySource.computeKeys(LazyTestResourcesPropertySourceLoader.java:109)
at io.micronaut.testresources.core.LazyTestResourcesPropertySourceLoader$LazyPropertySource.iterator(LazyTestResourcesPropertySourceLoader.java:90)
at io.micronaut.context.env.PropertySourcePropertyResolver.processPropertySource(PropertySourcePropertyResolver.java:594)
at io.micronaut.context.env.DefaultEnvironment.readPropertySources(DefaultEnvironment.java:459)
at io.micronaut.context.env.DefaultEnvironment.start(DefaultEnvironment.java:277)
at io.micronaut.context.DefaultApplicationContext$RuntimeConfiguredEnvironment.start(DefaultApplicationContext.java:963)
at io.micronaut.context.DefaultApplicationContext$RuntimeConfiguredEnvironment.start(DefaultApplicationContext.java:932)
at io.micronaut.context.DefaultApplicationContext.startEnvironment(DefaultApplicationContext.java:286)
at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:215)
at io.micronaut.test.extensions.AbstractMicronautExtension.startApplicationContext(AbstractMicronautExtension.java:507)
at io.micronaut.test.extensions.AbstractMicronautExtension.beforeClass(AbstractMicronautExtension.java:346)
at io.micronaut.test.extensions.junit5.MicronautJunit5Extension.beforeAll(MicronautJunit5Extension.java:84)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
When I ran stopTestResourcesService I got a NOT_FOUND error on localhost:63342
The way I fixed it, is I start/stop and ran my tests in a terminal without IntelliJ running. It must have changed my test-resources.properties file (wish I checked before)
I tried to manually set the port again and could not reproduce after fixing and could not 🤷🏼
That's an unfortunate collision... I think however this would have to be moved to micronaut-core, since the test resources service uses the built-in random port selector. I'm actually surprised that it picked up a busy port 🤔
Expected Behavior
Start up micronaut test resources without any issue when running
./gradlew test
Actual Behaviour
When I ran
stopTestResourcesService
I got a NOT_FOUND error onlocalhost:63342
I wondered if something odd happened with the build_in_server of the IDE?
https://www.jetbrains.com/help/idea/settings-debugger.html#debugger_built_in_server
Steps To Reproduce
I'm not entirely sure....
I ran
lsof
and saw thisThe way I fixed it, is I start/stop and ran my tests in a terminal without IntelliJ running. It must have changed my test-resources.properties file (wish I checked before)
I tried to manually set the port again and could not reproduce after fixing and could not 🤷🏼
Environment Information
Example Application
No response
Version
4.7.3
The text was updated successfully, but these errors were encountered: