test_integration_azure_image_service.py 705 B

12345678910111213141516171819
  1. import azure_integration_test.helpers as helpers
  2. from azure_integration_test.helpers import ProviderTestBase
  3. class AzureIntegrationImageServiceTestCase(ProviderTestBase):
  4. @helpers.skipIfNoService(['compute.images'])
  5. def test_azure_image_service(self):
  6. images_list = self.provider.compute.images.list()
  7. if images_list.total_results > 0:
  8. image_get = self.provider.compute.images.get(images_list[0].id)
  9. print("Get Image - " + str(image_get))
  10. self.assertIsNotNone(image_get)
  11. # print("Before updating tag - " + str(image_get.name))
  12. # image_get.name("NewTestImage")
  13. # print("After updating tag - " + str(image_get.name))