Open gtroitsk opened 2 weeks ago
The test will have to change, index.html is not available in test scope anymore. The test will have to provide it's own page to test against
@phillip-kruger Quarkus provides dynamic page at http://localhost:8080
. I expect that after I set KC auth credentials I can access page, but app gives me an error 403 CORS Rejected - Invalid origin for http://localhost:8080/q/dev-ui/welcome
, because of redirection. I tried quarkus.dev-ui.cors.enabled=false
, but I have no luck. Can you please give me some hint what should I do?
The dynamic page is only available in Dev Mode. So if your test is not a dev mode test, it should return 404. If it's a dev mode test you should get the redirection. quarkus.dev-ui.cors.enabled=false should work from CORS. You can also try and set the origin header in your test. But I would suggest to not test against this and rather include your own test html in your test case app that you test against.
If I understand your correctly, for this QS we need to get html page back to the state before https://github.com/quarkusio/quarkus-quickstarts/pull/1459
Any basic HTML file will do, it does not have to be the one from before
CodeFlowTest fails after deleting index.html in https://github.com/quarkusio/quarkus-quickstarts/pull/1459.
Stack trace
Expected Behavior: The test should successfully access Quarkus main page