From dcf44263ce3e63be721ee996c8b3de3c84b893e6 Mon Sep 17 00:00:00 2001 From: ChrisC Date: Thu, 23 Jul 2020 17:25:46 +0200 Subject: Update Release Note Update Release note for El-Alto Maintenance release Issue-ID: SDC-3199 Signed-off-by: ChrisC Change-Id: Iefa7e70adac2a4bcb3f8f9399bf60826869b8469 Signed-off-by: ChrisC --- .../dao/cassandra/schema/SdcSchemaUtilsTest.java | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'catalog-dao') diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/SdcSchemaUtilsTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/SdcSchemaUtilsTest.java index 39a19641f0..126881381a 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/SdcSchemaUtilsTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/SdcSchemaUtilsTest.java @@ -156,27 +156,4 @@ public class SdcSchemaUtilsTest { Assert.assertNull(cluster); } } - - @Test - public void testCreateClusterWithAuthSsl() { - Configuration.CassandrConfig cfg = new Configuration.CassandrConfig(); - cfg.setAuthenticate(true); - cfg.setCassandraHosts(CASSANDRA_HOSTS); - cfg.setCassandraPort(CASSANDRA_PORT); - cfg.setUsername(CASSANDRA_USERNAME); - cfg.setPassword(CASSANDRA_PASSWORD); - cfg.setSsl(true); - cfg.setTruststorePath(TRUSTSTORE_PATH); - cfg.setTruststorePassword(TRUSTSTORE_PASSWORD); - - SdcSchemaUtils sdcSchemaUtils = Mockito.mock(SdcSchemaUtils.class); - when(sdcSchemaUtils.getCassandraConfig()).thenReturn(cfg); - when(sdcSchemaUtils.createCluster()).thenCallRealMethod(); - - try(Cluster cluster = sdcSchemaUtils.createCluster()) { - Assert.assertNotNull(cluster); - Assert.assertEquals(System.getProperty("javax.net.ssl.trustStore"), TRUSTSTORE_PATH); - Assert.assertEquals(System.getProperty("javax.net.ssl.trustStorePassword"), TRUSTSTORE_PASSWORD); - } - } } \ No newline at end of file -- cgit 1.2.3-korg