Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename test configuration property names clashing with maven deploy #17329

Merged
merged 1 commit into from
May 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ConfigMappingValidatorTest {
@RegisterExtension
static final QuarkusUnitTest UNIT_TEST = new QuarkusUnitTest().setArchiveProducer(
() -> ShrinkWrap.create(JavaArchive.class)
.addAsResource(new StringAsset("server.host=localhost\n"), "application.properties"));
.addAsResource(new StringAsset("validator.server.host=localhost\n"), "application.properties"));

@Inject
Config config;
Expand All @@ -30,10 +30,10 @@ public class ConfigMappingValidatorTest {
void validator() {
assertThrows(ConfigValidationException.class,
() -> config.unwrap(SmallRyeConfig.class).getConfigMapping(Server.class),
"server.host must be less than or equal to 3");
"validator.server.host must be less than or equal to 3");
}

@ConfigMapping(prefix = "server")
@ConfigMapping(prefix = "validator.server")
public interface Server {
@Max(3)
String host();
Expand Down