VcsSslCertificateProvisioner implements ConfigurationProvisioner<KubernetesEnvironment> { public boolean isConfigured() { return !isNullOrEmpty(certificate); } VcsSslCertificateProvisioner(); @VisibleForTesting  VcsSslCertificateProvisioner(String certificate, String host); boolean isConfigured(); String getCertPath(); String getGitServerHost(); @Override void provision(KubernetesEnvironment k8sEnv, RuntimeIdentity identity);  }
@Test public void shouldReturnFalseIfCertificateIsNotConfigured() { provisioner = new VcsSslCertificateProvisioner(); assertFalse(provisioner.isConfigured()); }
@Test public void shouldReturnTrueIfCertificateIsConfigured() { provisioner = new VcsSslCertificateProvisioner(CERT_CONTENT, "localhost"); assertTrue(provisioner.isConfigured()); }