def test_no_matching_vnet(self):
     self._set_ns('emptyrg', 'eastus')
     validate_default_vnet(self.ns)
     self.assertIsNone(self.ns.virtual_network)
     self.assertIsNone(self.ns.subnet_name)
     self.assertIsNone(self.ns.virtual_network_type)
Example #2
0
 def test_no_matching_vnet(self):
     self._set_ns('emptyrg', 'eastus')
     validate_default_vnet(self.ns)
     self.assertIsNone(self.ns.virtual_network)
     self.assertIsNone(self.ns.subnet_name)
     self.assertIsNone(self.ns.virtual_network_type)
 def test_matching_vnet_specified_location(self):
     self._set_ns('rg1', 'eastus')
     validate_default_vnet(self.ns)
     self.assertEqual(self.ns.virtual_network, 'vnet1')
     self.assertEqual(self.ns.subnet_name, 'vnet1subnet')
     self.assertEqual(self.ns.virtual_network_type, 'existingName')
Example #4
0
 def test_matching_vnet_specified_location(self):
     self._set_ns('rg1', 'eastus')
     validate_default_vnet(self.ns)
     self.assertEqual(self.ns.virtual_network, 'vnet1')
     self.assertEqual(self.ns.subnet_name, 'vnet1subnet')
     self.assertEqual(self.ns.virtual_network_type, 'existingName')