Example #1
0
        public static ITestCluster CreateNew(bool enableCert)
        {
            TryRemove();
            var testCluster = new CloudCluster(
                TestUtils.GetTestClusterNameBasedOnTime(),
                VersionString,
                enableCert);

            testCluster.Create(3, null);
            return(testCluster);
        }
Example #2
0
 public static void TryRemove()
 {
     try
     {
         CloudCluster.DockerKill();
     }
     catch (Exception ex)
     {
         if (Diagnostics.CassandraTraceSwitch.Level == TraceLevel.Verbose)
         {
             Trace.TraceError("cloud test cluster could not be removed: {0}", ex);
         }
     }
 }