test_azure_provider.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. self.assertTrue(compute.instances is not None,
  9. 'Instances should not be none')
  10. self.assertTrue(compute.instance_types is not None,
  11. 'Instance types should not be none')
  12. self.assertTrue(compute.regions is not None,
  13. 'Regions should not be none')
  14. network = self.provider.network
  15. self.assertTrue(network is not None,
  16. 'Network should not be None')
  17. block_store = self.provider.block_store
  18. self.assertTrue(block_store is not None,
  19. 'Block Store 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. object_store = self.provider.object_store
  24. self.assertTrue(object_store is not None,
  25. 'Object Store should not be None')
  26. security = self.provider.security
  27. self.assertTrue(security is not None, 'Security should not be None')