ProbeGenerator { protected static io.fabric8.kubernetes.api.model.Probe tlsSidecarReadinessProbe(TlsSidecar tlsSidecar) { Probe tlsSidecarReadinessProbe = DEFAULT_TLS_SIDECAR_PROBE; if (tlsSidecar != null && tlsSidecar.getReadinessProbe() != null) { tlsSidecarReadinessProbe = tlsSidecar.getReadinessProbe(); } return ProbeGenerator.execProbe(tlsSidecarReadinessProbe, Arrays.asList("/opt/stunnel/stunnel_healthcheck.sh", "2181")); } private  ProbeGenerator(); static ProbeBuilder defaultBuilder(Probe probeConfig); static io.fabric8.kubernetes.api.model.Probe httpProbe(Probe probeConfig, String path, String port); static io.fabric8.kubernetes.api.model.Probe execProbe(Probe probeConfig, List<String> command); static final io.strimzi.api.kafka.model.Probe DEFAULT_TLS_SIDECAR_PROBE; }
@Test public void testTlsSidecarReadinessProbe() { Probe probe = ProbeGenerator.tlsSidecarReadinessProbe(TLS_SIDECAR); assertThat(probe, is(new ProbeBuilder() .withNewExec() .addToCommand("/opt/stunnel/stunnel_healthcheck.sh", "2181") .endExec() .withInitialDelaySeconds(6) .withTimeoutSeconds(7) .withPeriodSeconds(8) .withSuccessThreshold(9) .withFailureThreshold(10) .build() )); }