File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
testcontainers-dapr/src/test/java/io/dapr/testcontainers Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -50,24 +50,31 @@ public void appHealthParametersTest(){
5050 DaprContainer dapr = new DaprContainer (DAPR_RUNTIME_IMAGE_TAG )
5151 .withAppName ("dapr-app" )
5252 .withAppPort (8081 )
53+ .withAppHealthCheckPath ("/test" )
5354 .withAppHealthCheckProbeInterval (10 )
5455 .withAppHealthCheckProbeTimeout (600 )
5556 .withAppHealthCheckThreshold (7 );
5657
58+ dapr .configure ();
59+
5760 assertEquals (10 , dapr .getAppHealthCheckProbeInterval ());
5861 assertEquals (600 , dapr .getAppHealthCheckProbeTimeout ());
5962 assertEquals (7 , dapr .getAppHealthCheckThreshold ());
63+ assertEquals ("/test" , dapr .getAppHealthCheckPath ());
6064
6165
6266 //Check that the defaults are set by default
6367 DaprContainer dapr2 = new DaprContainer (DAPR_RUNTIME_IMAGE_TAG )
6468 .withAppName ("dapr2-app" )
6569 .withAppPort (8082 );
6670
71+ dapr2 .configure ();
72+
6773 assertEquals (5 , dapr2 .getAppHealthCheckProbeInterval ());
6874 assertEquals (500 , dapr2 .getAppHealthCheckProbeTimeout ());
6975 assertEquals (3 , dapr2 .getAppHealthCheckThreshold ());
7076
7177
78+
7279 }
7380}
You can’t perform that action at this time.
0 commit comments