Skip to content

Commit

Permalink
Merge pull request #898 from smallrye/dependabot/maven/io.smallrye.co…
Browse files Browse the repository at this point in the history
…nfig-smallrye-config-3.9.0

build(deps): bump io.smallrye.config:smallrye-config from 3.8.3 to 3.9.0
  • Loading branch information
cescoffier authored Jul 19, 2024
2 parents faee534 + 41c1157 commit 05dedba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import io.smallrye.config.ConfigValuePropertiesConfigSource;
import io.smallrye.config.ConfigValue;
import io.smallrye.config.MapBackedConfigValueConfigSource;
import io.smallrye.config.SmallRyeConfig;
import io.smallrye.config.SmallRyeConfigBuilder;
import io.smallrye.stork.Stork;
Expand Down Expand Up @@ -234,8 +235,18 @@ void shouldHandleServiceNamesInQuotes() {
}

private Stork storkForConfig(Map<String, String> properties) {
Map<String, ConfigValue> backend = new HashMap<>();
for (Map.Entry<String, String> entry : properties.entrySet()) {
ConfigValue.ConfigValueBuilder builder = new ConfigValue.ConfigValueBuilder();
builder.withName(entry.getKey()).withValue(entry.getValue()).withRawValue(entry.getValue())
.withConfigSourceName("test-config-source").withConfigSourceOrdinal(0);
backend.put(entry.getKey(), builder.build());
}

MapBackedConfigValueConfigSource source = new MapBackedConfigValueConfigSource("test-config-source", backend, 0) {
};
SmallRyeConfig config = new SmallRyeConfigBuilder()
.withSources(new ConfigValuePropertiesConfigSource(properties, "test-config-source", 0))
.withSources(source)
.build();
ConfigProviderResolver.setInstance(new TestMicroProfileConfigProvider(config));
return StorkTestUtils.getNewStorkInstance();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<version.assertj>3.26.3</version.assertj>
<version.microprofile-config-api>3.1</version.microprofile-config-api>
<version.mutiny>2.6.2</version.mutiny>
<version.smallrye-config>3.8.3</version.smallrye-config>
<version.smallrye-config>3.9.0</version.smallrye-config>

<vertx.version>4.5.9</vertx.version>
<version.vertx-mutiny-bindings>3.14.0</version.vertx-mutiny-bindings>
Expand Down

0 comments on commit 05dedba

Please sign in to comment.