test_azure_provider.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. with self.assertRaises(NotImplementedError):
  12. self.assertTrue(compute.instance_types is not None,
  13. 'Instance types should not be none')
  14. with self.assertRaises(NotImplementedError):
  15. self.assertTrue(compute.regions is not None,
  16. 'Regions should not be none')
  17. with self.assertRaises(Exception):
  18. network = self.provider.network
  19. self.assertTrue(network is not None, 'Network should not be None')
  20. block_store = self.provider.block_store
  21. self.assertTrue(block_store is not None,
  22. 'Block Store should not be None')
  23. block_store = self.provider.block_store
  24. self.assertTrue(block_store is not None,
  25. 'Block Store should not be None')
  26. object_store = self.provider.object_store
  27. self.assertTrue(object_store is not None,
  28. 'Object Store should not be None')
  29. security = self.provider.security
  30. self.assertTrue(security is not None, 'Security should not be None')