public void When_Valid_Credentials_Provided_Bucket_Created_Succesfully() { var config = new ClientConfiguration { BucketConfigs = new Dictionary<string, BucketConfiguration> { { "authenticated", new BucketConfiguration { BucketName = "authenticated" } } } }; var cluster = new CouchbaseCluster(config); var bucket = cluster.OpenBucket("authenticated", "secret"); cluster.CloseBucket(bucket); Assert.IsNotNull(bucket); cluster.CloseBucket(bucket); }
public void When_Disposing_StreamingProvider_Worker_Thread_Does_Not_Hang_With_Bucket_Open_And_Closed() { //remove CCCP provider because we want to bootstrap off of the StreamingProvider var cccp = _clusterManager.ConfigProviders.Find(x => x is CarrierPublicationProvider); _clusterManager.ConfigProviders.Remove(cccp); var cluster = new CouchbaseCluster(_clientConfig, _clusterManager); var bucket = cluster.OpenBucket(); cluster.CloseBucket(bucket); cluster.Dispose(); }
public void When_Valid_Credentials_Provided_Bucket_Created_Succesfully() { var config = new ClientConfiguration { BucketConfigs = new Dictionary <string, BucketConfiguration> { { "authenticated", new BucketConfiguration { BucketName = "authenticated" } } } }; var cluster = new CouchbaseCluster(config); var bucket = cluster.OpenBucket("authenticated", "secret"); cluster.CloseBucket(bucket); Assert.IsNotNull(bucket); cluster.CloseBucket(bucket); }
public void When_InValid_Credentials_Provided_Bucket_Created_UnSuccesfully() { var config = new ClientConfiguration { Servers = new List<Uri> { new Uri("http://127.0.0.1:8091") }, BucketConfigs = new Dictionary<string, BucketConfiguration> { { "authenticated", new BucketConfiguration { BucketName = "authenticated" } } } }; var cluster = new CouchbaseCluster(config); var bucket = cluster.OpenBucket("authenticated", "secretw"); cluster.CloseBucket(bucket); Assert.IsNotNull(bucket); }
public void When_InValid_Credentials_Provided_Bucket_Created_UnSuccesfully() { var config = new ClientConfiguration { Servers = new List <Uri> { new Uri("http://127.0.0.1:8091") }, BucketConfigs = new Dictionary <string, BucketConfiguration> { { "authenticated", new BucketConfiguration { BucketName = "authenticated" } } } }; var cluster = new CouchbaseCluster(config); var bucket = cluster.OpenBucket("authenticated", "secretw"); cluster.CloseBucket(bucket); Assert.IsNotNull(bucket); }
public void When_Disposing_StreamingProvider_Worker_Thread_Does_Not_Hang_With_Bucket_Open_And_Closed() { //remove CCCP provider because we want to bootstrap off of the StreamingProvider var cccp = _clusterManager.ConfigProviders.Find(x => x is CarrierPublicationProvider); _clusterManager.ConfigProviders.Remove(cccp); var cluster = new CouchbaseCluster(_clientConfig, _clusterManager); var bucket = cluster.OpenBucket(); cluster.CloseBucket(bucket); cluster.Dispose(); }