fix: configure finance wallet event delivery
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package com.baiyue.eventbridge.service;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class HttpFinanceEventClientTest {
|
||||
@Test
|
||||
void walletConsumerUrlCanBeConfiguredForContainerDeployment() throws Exception {
|
||||
String application = Files.readString(Path.of("src/main/resources/application.yml"));
|
||||
|
||||
assertThat(application).contains(
|
||||
"finance-wallet-consumer-url: ${FINANCE_WALLET_EVENT_CONSUMER_URL:"
|
||||
+ "http://127.0.0.1:9203/internal/finance/v1/wallet-command-events}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user