Skip to content

Commit

Permalink
Merge pull request #2312 from smallrye/dependabot/maven/main/io.small…
Browse files Browse the repository at this point in the history
…rye.config-smallrye-config-3.4.1

Bump io.smallrye.config:smallrye-config from 3.3.4 to 3.4.1
  • Loading branch information
ozangunalp authored Oct 4, 2023
2 parents 714dcf3 + 9b697cf commit 5dc9e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<microprofile-metrics-api.version>4.0.1</microprofile-metrics-api.version>
<microprofile-health-api.version>4.0</microprofile-health-api.version>

<smallrye-config.version>3.3.4</smallrye-config.version>
<smallrye-config.version>3.4.1</smallrye-config.version>
<smallrye-metrics.version>4.0.0</smallrye-metrics.version>
<smallrye-common.version>2.2.0</smallrye-common.version>
<smallrye-health.version>4.0.4</smallrye-health.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@SetEnvironmentVariable(key = "MP_MESSAGING_CONNECTOR_SOME_CONNECTOR_ATTR1", value = "should not be used")
@SetEnvironmentVariable(key = "MP_MESSAGING_CONNECTOR_SOME_CONNECTOR_ATTR3", value = "used")
@SetEnvironmentVariable(key = "mp_messaging_connector_some_connector_attr4", value = "used")
@SetEnvironmentVariable(key = "mp_messaging_connector_SOME_CONNECTOR_mixedcase", value = "should not be used")
@SetEnvironmentVariable(key = "mp_messaging_connector_SOME_CONNECTOR_mixedcase", value = "used")
@DisabledForJreRange(min = JRE.JAVA_17, disabledReason = "Environment cannot be modified on Java 17")
public class ConnectorConfigTest {

Expand Down Expand Up @@ -85,7 +85,7 @@ public String getName() {
@SetEnvironmentVariable(key = "MP_MESSAGING_CONNECTOR_SOME_CONNECTOR_ATTR1", value = "should not be used")
@SetEnvironmentVariable(key = "MP_MESSAGING_CONNECTOR_SOME_CONNECTOR_ATTR3", value = "used")
@SetEnvironmentVariable(key = "mp_messaging_connector_some_connector_attr4", value = "used")
@SetEnvironmentVariable(key = "mp_messaging_connector_SOME_CONNECTOR_mixedcase", value = "should not be used")
@SetEnvironmentVariable(key = "mp_messaging_connector_SOME_CONNECTOR_mixedcase", value = "used")
@Test
public void testPropertyNames() {

Expand Down Expand Up @@ -126,7 +126,7 @@ public void testGetFromEnv() {
assertThat(config.getOptionalValue("ATTR4", String.class)).hasValue("used-2");
// Mixed case value in env should not be found as it does not match the key we're looking for
// either in its original casing, or after conversion to uppercase.
assertThat(config.getOptionalValue("mixedcase", String.class)).isEmpty();
assertThat(config.getOptionalValue("mixedcase", String.class)).hasValue("used");
}

@Test
Expand Down

0 comments on commit 5dc9e6e

Please sign in to comment.