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(){
50
50
DaprContainer dapr = new DaprContainer (DAPR_RUNTIME_IMAGE_TAG )
51
51
.withAppName ("dapr-app" )
52
52
.withAppPort (8081 )
53
+ .withAppHealthCheckPath ("/test" )
53
54
.withAppHealthCheckProbeInterval (10 )
54
55
.withAppHealthCheckProbeTimeout (600 )
55
56
.withAppHealthCheckThreshold (7 );
56
57
58
+ dapr .configure ();
59
+
57
60
assertEquals (10 , dapr .getAppHealthCheckProbeInterval ());
58
61
assertEquals (600 , dapr .getAppHealthCheckProbeTimeout ());
59
62
assertEquals (7 , dapr .getAppHealthCheckThreshold ());
63
+ assertEquals ("/test" , dapr .getAppHealthCheckPath ());
60
64
61
65
62
66
//Check that the defaults are set by default
63
67
DaprContainer dapr2 = new DaprContainer (DAPR_RUNTIME_IMAGE_TAG )
64
68
.withAppName ("dapr2-app" )
65
69
.withAppPort (8082 );
66
70
71
+ dapr2 .configure ();
72
+
67
73
assertEquals (5 , dapr2 .getAppHealthCheckProbeInterval ());
68
74
assertEquals (500 , dapr2 .getAppHealthCheckProbeTimeout ());
69
75
assertEquals (3 , dapr2 .getAppHealthCheckThreshold ());
70
76
71
77
78
+
72
79
}
73
80
}
You can’t perform that action at this time.
0 commit comments