mirror of
https://github.com/valitydev/wb-list-manager.git
synced 2024-11-06 01:35:17 +00:00
Merge pull request #20 from valitydev/fix_prop_riak
Change riak property name
This commit is contained in:
commit
a95c3ebb45
@ -10,10 +10,10 @@ import org.springframework.context.annotation.Configuration;
|
||||
@Configuration
|
||||
public class RiakConfig {
|
||||
|
||||
@Value("${riak.port}")
|
||||
@Value("${riak-config.port}")
|
||||
public int riakPort;
|
||||
|
||||
@Value("${riak.address}")
|
||||
@Value("${riak-config.address}")
|
||||
public String riakAddress;
|
||||
|
||||
@Bean
|
||||
|
@ -27,7 +27,7 @@ public class ListRepository implements CrudRepository<Row, String> {
|
||||
private static final String TEXT_PLAIN = "text/plain";
|
||||
private final RiakClient client;
|
||||
|
||||
@Value("${riak.bucket}")
|
||||
@Value("${riak-config.bucket}")
|
||||
private String bucket;
|
||||
|
||||
@Override
|
||||
|
@ -37,7 +37,7 @@ spring:
|
||||
streams:
|
||||
application-id: wb-list
|
||||
client-id: wb-list-client
|
||||
riak:
|
||||
riak-config:
|
||||
address: localhost
|
||||
port: 8087
|
||||
bucket: wblist
|
||||
|
@ -29,7 +29,7 @@ public class RiakTest {
|
||||
private static final String VALUE = "value";
|
||||
private static final String KEY = "key";
|
||||
|
||||
@Value("${riak.bucket}")
|
||||
@Value("${riak-config.bucket}")
|
||||
private String bucketName;
|
||||
|
||||
@Autowired
|
||||
|
@ -62,8 +62,8 @@ public class RiakTestcontainerExtension implements BeforeAllCallback, AfterAllCa
|
||||
var container = THREAD_CONTAINER.get();
|
||||
if (container != null) {
|
||||
TestPropertyValues.of(
|
||||
"riak.address=" + container.getContainerIpAddress(),
|
||||
"riak.port=" + container.getMappedPort(8087))
|
||||
"riak-config.address=" + container.getContainerIpAddress(),
|
||||
"riak-config.port=" + container.getMappedPort(8087))
|
||||
.applyTo(context);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user