@@ -56,10 +56,10 @@ public class DaprContainer extends GenericContainer<DaprContainer> {
56
56
private static final YamlConverter <Subscription > SUBSCRIPTION_CONVERTER = new SubscriptionYamlConverter (YAML_MAPPER );
57
57
private static final YamlConverter <HttpEndpoint > HTTPENDPOINT_CONVERTER = new HttpEndpointYamlConverter (YAML_MAPPER );
58
58
private static final YamlConverter <Configuration > CONFIGURATION_CONVERTER = new ConfigurationYamlConverter (
59
- YAML_MAPPER );
59
+ YAML_MAPPER );
60
60
private static final WaitStrategy WAIT_STRATEGY = Wait .forHttp ("/v1.0/healthz/outbound" )
61
- .forPort (DAPRD_DEFAULT_HTTP_PORT )
62
- .forStatusCodeMatching (statusCode -> statusCode >= 200 && statusCode <= 399 );
61
+ .forPort (DAPRD_DEFAULT_HTTP_PORT )
62
+ .forStatusCodeMatching (statusCode -> statusCode >= 200 && statusCode <= 399 );
63
63
64
64
private final Set <Component > components = new HashSet <>();
65
65
private final Set <Subscription > subscriptions = new HashSet <>();
@@ -82,6 +82,7 @@ public class DaprContainer extends GenericContainer<DaprContainer> {
82
82
83
83
/**
84
84
* Creates a new Dapr container.
85
+ *
85
86
* @param dockerImageName Docker image name.
86
87
*/
87
88
public DaprContainer (DockerImageName dockerImageName ) {
@@ -94,6 +95,7 @@ public DaprContainer(DockerImageName dockerImageName) {
94
95
95
96
/**
96
97
* Creates a new Dapr container.
98
+ *
97
99
* @param image Docker image name.
98
100
*/
99
101
public DaprContainer (String image ) {
@@ -213,6 +215,7 @@ public DaprContainer withComponent(Component component) {
213
215
214
216
/**
215
217
* Adds a Dapr component from a YAML file.
218
+ *
216
219
* @param path Path to the YAML file.
217
220
* @return This container.
218
221
*/
@@ -227,7 +230,7 @@ public DaprContainer withComponent(Path path) {
227
230
String type = (String ) spec .get ("type" );
228
231
String version = (String ) spec .get ("version" );
229
232
List <Map <String , String >> specMetadata =
230
- (List <Map <String , String >>) spec .getOrDefault ("metadata" , Collections .emptyList ());
233
+ (List <Map <String , String >>) spec .getOrDefault ("metadata" , Collections .emptyList ());
231
234
232
235
ArrayList <MetadataEntry > metadataEntries = new ArrayList <>();
233
236
@@ -268,17 +271,17 @@ protected void configure() {
268
271
269
272
if (this .placementContainer == null ) {
270
273
this .placementContainer = new DaprPlacementContainer (this .placementDockerImageName )
271
- .withNetwork (getNetwork ())
272
- .withNetworkAliases (placementService )
273
- .withReuse (this .shouldReusePlacement );
274
+ .withNetwork (getNetwork ())
275
+ .withNetworkAliases (placementService )
276
+ .withReuse (this .shouldReusePlacement );
274
277
this .placementContainer .start ();
275
278
}
276
279
277
280
if (this .schedulerContainer == null ) {
278
281
this .schedulerContainer = new DaprSchedulerContainer (this .schedulerDockerImageName )
279
- .withNetwork (getNetwork ())
280
- .withNetworkAliases (schedulerService )
281
- .withReuse (this .shouldReuseScheduler );
282
+ .withNetwork (getNetwork ())
283
+ .withNetworkAliases (schedulerService )
284
+ .withReuse (this .shouldReuseScheduler );
282
285
this .schedulerContainer .start ();
283
286
}
284
287
@@ -394,6 +397,14 @@ public static DockerImageName getDefaultImageName() {
394
397
return DEFAULT_IMAGE_NAME ;
395
398
}
396
399
400
+ public DockerImageName getPlacementDockerImageName () {
401
+ return placementDockerImageName ;
402
+ }
403
+
404
+ public DockerImageName getSchedulerDockerImageName () {
405
+ return schedulerDockerImageName ;
406
+ }
407
+
397
408
// Required by spotbugs plugin
398
409
@ Override
399
410
public boolean equals (Object o ) {
0 commit comments