Skip to content

Commit 7a4f7d3

Browse files
Migrate PubSub removing flaky test (#1407)
* Migrate PubSub removing flaky test Signed-off-by: Matheus Cruz <[email protected]> * Adjust assertion Signed-off-by: Matheus Cruz <[email protected]> * Change assert Signed-off-by: Matheus Cruz <[email protected]> * Apply pull request suggestions Signed-off-by: Matheus Cruz <[email protected]> * Use custom ObjectSerializer Signed-off-by: Matheus Cruz <[email protected]> --------- Signed-off-by: Matheus Cruz <[email protected]> Co-authored-by: artur-ciocanu <[email protected]>
1 parent 7bb5ffc commit 7a4f7d3

File tree

4 files changed

+944
-0
lines changed

4 files changed

+944
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package io.dapr.it.testcontainers;
2+
3+
import io.dapr.client.DaprClientBuilder;
4+
import io.dapr.config.Properties;
5+
import io.dapr.testcontainers.DaprContainer;
6+
7+
public interface DaprClientFactory {
8+
9+
static DaprClientBuilder createDaprClientBuilder(DaprContainer daprContainer) {
10+
return new DaprClientBuilder()
11+
.withPropertyOverride(Properties.HTTP_ENDPOINT, "http://localhost:" + daprContainer.getHttpPort())
12+
.withPropertyOverride(Properties.GRPC_ENDPOINT, "http://localhost:" + daprContainer.getGrpcPort());
13+
}
14+
}

0 commit comments

Comments
 (0)