test_azure_provider.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. from azure_test.helpers import ProviderTestBase
  2. class AzureProviderTestCase(ProviderTestBase):
  3. def test_azure_provider(self):
  4. compute = self.provider.compute
  5. self.assertTrue(compute is not None, 'Compute should not be None')
  6. self.assertTrue(compute.images is not None,
  7. 'Images should not be none')
  8. with self.assertRaises(NotImplementedError):
  9. self.assertTrue(compute.instances is not None,
  10. 'Instances should not be none')
  11. self.assertTrue(compute.instance_types is not None,
  12. 'Instance types should not be none')
  13. with self.assertRaises(NotImplementedError):
  14. self.assertTrue(compute.regions is not None,
  15. 'Regions should not be none')
  16. network = self.provider.network
  17. self.assertTrue(network is not None,
  18. 'Network should not be None')
  19. block_store = self.provider.block_store
  20. self.assertTrue(block_store is not None,
  21. 'Block Store should not be None')
  22. block_store = self.provider.block_store
  23. self.assertTrue(block_store is not None,
  24. 'Block Store should not be None')
  25. object_store = self.provider.object_store
  26. self.assertTrue(object_store is not None,
  27. 'Object Store should not be None')
  28. security = self.provider.security
  29. self.assertTrue(security is not None, 'Security should not be None')