Skip to content

Could not find a ConfigMapping after upgrading to 3.23.3/3.24.0.CR1 #48419

@gbourant

Description

@gbourant

When I run, mvn test on my reproducer I get the error Caused by: java.util.NoSuchElementException: SRCFG00027: Could not find a mapping for gr.DummyConfig.

If I comment the @WithPlaywright or delete the file quarkus-config-roots.list which contains gr.DummyConfig the tests do pass.

If I don't delete anything, but run each test individually, again they do pass.

It used to work on 3.21.1 but it's not working on 3.23.3 and 3.24.0.CR1.

//@Unremovable
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
@ConfigMapping(prefix = "dummy")
public interface DummyConfig {
}

public class FastestTestProfile implements QuarkusTestProfile {
}

@QuarkusTest
@TestProfile(FastestTestProfile.class)
class DatabaseExecuteTest {
    @Test
    void shouldRun() {
    }
}

@QuarkusTest
@TestProfile(FastestTestProfile.class)
@WithPlaywright(browserContext = @BrowserContextConfig(defaultTimeout = "PT2s", defaultNavigationTimeout = "PT2s"))
class ShouldExecuteTest {
    @Test
    void shouldRun() {
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions