public void TestHzCloudDiscovery_invalidToken() { var hzCloudDiscovery = new HazelcastCloudDiscovery(DiscoveryTokenInvalid, int.MaxValue, LocalTestBaseUrl); var result = hzCloudDiscovery.DiscoverNodes(); Assert.IsNull(result); }
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)); } }
//Hz cloud address provider private IDictionary <Address, Address> GetHzCloudConfigAddresses() { return(_hzCloudDiscovery.DiscoverNodes()); }