예제 #1
0
        public void TestHzCloudDiscovery_invalidToken()
        {
            var hzCloudDiscovery = new HazelcastCloudDiscovery(DiscoveryTokenInvalid, int.MaxValue, LocalTestBaseUrl);
            var result           = hzCloudDiscovery.DiscoverNodes();

            Assert.IsNull(result);
        }
예제 #2
0
        public void TestHzCloudDiscovery()
        {
            var hzCloudDiscovery = new HazelcastCloudDiscovery(DiscoveryToken, int.MaxValue, LocalTestBaseUrl);
            var result           = hzCloudDiscovery.DiscoverNodes();

            Assert.IsNotEmpty(result);
            foreach (var kv in result)
            {
                Assert.True(Addresses.ContainsKey(kv.Key) && Addresses[kv.Key].Equals(kv.Value));
            }
        }
예제 #3
0
 //Hz cloud address provider
 private IDictionary <Address, Address> GetHzCloudConfigAddresses()
 {
     return(_hzCloudDiscovery.DiscoverNodes());
 }