@@ -24,6 +24,10 @@ public class ConfigMapHelperConfigTest {
24
24
private static final String PROPERTY_LIVENESS_PROBE_SH = "livenessProbe.sh" ;
25
25
private static final String PROPERTY_READINESS_PROBE_SH = "readinessProbe.sh" ;
26
26
private static final String PROPERTY_READ_STATE_SH = "readState.sh" ;
27
+ private static final String PROPERTY_START_SERVER_SH = "startServer.sh" ;
28
+ private static final String PROPERTY_START_SERVER_PY = "start-server.py" ;
29
+ private static final String PROPERTY_STOP_SERVER_SH = "stopServer.sh" ;
30
+ private static final String PROPERTY_STOP_SERVER_PY = "stop-server.py" ;
27
31
28
32
@ Test
29
33
public void computedDomainConfigMap_isCorrect () throws Exception {
@@ -36,6 +40,10 @@ public void computedDomainConfigMap_isCorrect() throws Exception {
36
40
assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_LIVENESS_PROBE_SH ), not (isEmptyOrNullString ()));
37
41
assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_READINESS_PROBE_SH ), not (isEmptyOrNullString ()));
38
42
assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_READ_STATE_SH ), not (isEmptyOrNullString ()));
43
+ assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_START_SERVER_SH ), not (isEmptyOrNullString ()));
44
+ assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_START_SERVER_PY ), not (isEmptyOrNullString ()));
45
+ assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_STOP_SERVER_SH ), not (isEmptyOrNullString ()));
46
+ assertThat (getThenEmptyConfigMapDataValue (actual , PROPERTY_STOP_SERVER_PY ), not (isEmptyOrNullString ()));
39
47
assertThat (
40
48
actual ,
41
49
yamlEqualTo (getDesiredDomainConfigMap ()));
@@ -52,6 +60,11 @@ private V1ConfigMap getDesiredDomainConfigMap() {
52
60
.putAnnotationsItem (FORMAT_ANNOTATION , FORMAT_VERSION ))
53
61
.putDataItem (PROPERTY_LIVENESS_PROBE_SH , "" )
54
62
.putDataItem (PROPERTY_READINESS_PROBE_SH , "" )
63
+ .putDataItem (PROPERTY_READ_STATE_SH , "" )
64
+ .putDataItem (PROPERTY_START_SERVER_SH , "" )
65
+ .putDataItem (PROPERTY_START_SERVER_PY , "" )
66
+ .putDataItem (PROPERTY_STOP_SERVER_SH , "" )
67
+ .putDataItem (PROPERTY_STOP_SERVER_PY , "" )
55
68
.putDataItem (PROPERTY_READ_STATE_SH , "" );
56
69
}
57
70
0 commit comments