CertificateProvisioner implements ConfigurationProvisioner<KubernetesEnvironment> { public String getCertPath() { return CERT_MOUNT_PATH + CA_CERT_FILE; } CertificateProvisioner(); @VisibleForTesting  CertificateProvisioner(String certificate); boolean isConfigured(); String getCertPath(); @Override void provision(KubernetesEnvironment k8sEnv, RuntimeIdentity identity); static final String CHE_SELF_SIGNED_CERT_SECRET_SUFFIX; static final String CHE_SELF_SIGNED_CERT_VOLUME; static final String CERT_MOUNT_PATH; static final String CA_CERT_FILE; }
@Test public void shouldReturnCertPathFile() { String certPath = provisioner.getCertPath(); assertEquals(certPath, "/tmp/che/secret/ca.crt"); }