Skip to content

ArtemisTestResource in Quarkus Integration Test with a Test Profile leads to a Quarkus Boot Error after Quarkus 3.18 #797

@dcheng1248

Description

@dcheng1248

We updated from Quarkus 3.17.4 to 3.22.2 when the issue appeared, but I have tested 3.18 and it seems the issue already exists.

We have a Quarkus Integration Test using a named Artemis Test Resource and also a Test Profile. Normally, we expect a warning about the overriding of build time property as mentioned in the documentation, but instead we encounter this error:

java.lang.IllegalStateException: Build time property cannot be changed at runtime:
 - quarkus.artemis."test".url is set to yyy but it is build time fixed to xxx. Did you change the property quarkus.artemis."test".url after building the application?

As far as I understanding from debugging, this is because the Quarkus IntegrationTestUtils class forces the quarks.config.build-time-mismatch-at-runtime to "fail" if a test profile exists. Possible workaround are to remove the test profile (tested) or perhaps set this property to warn directly in the pom (I have not tested this).

I'm wondering if there is a better way around this, or perhaps this issue (Integration test with test profile) should be documented? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions