test_azure_provider.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. self.assertTrue(compute.regions is not None,
  14. 'Regions should not be none')
  15. network = self.provider.network
  16. self.assertTrue(network is not None,
  17. 'Network should not be None')
  18. block_store = self.provider.block_store
  19. self.assertTrue(block_store is not None,
  20. 'Block Store should not be None')
  21. block_store = self.provider.block_store
  22. self.assertTrue(block_store is not None,
  23. 'Block Store should not be None')
  24. object_store = self.provider.object_store
  25. self.assertTrue(object_store is not None,
  26. 'Object Store should not be None')
  27. security = self.provider.security
  28. self.assertTrue(security is not None, 'Security should not be None')