This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit d9683458e0ec5a57fde9879cb3d2e257e705f7f9 Author: Tomaz Muraus <[email protected]> AuthorDate: Thu Sep 3 12:56:00 2020 +0200 Fix failing test - use the correct fixture name and add an assertion on the request path. --- libcloud/test/compute/test_gce.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcloud/test/compute/test_gce.py b/libcloud/test/compute/test_gce.py index c923ded..4884729 100644 --- a/libcloud/test/compute/test_gce.py +++ b/libcloud/test/compute/test_gce.py @@ -2275,7 +2275,7 @@ class GCENodeDriverTest(GoogleTestCase, TestCaseMixin): self.assertIsNone(zone_no_mw.time_until_mw) -class GCEMockHttp(MockHttp): +class GCEMockHttp(MockHttp, unittest.TestCase): fixtures = ComputeFileFixtures('gce') json_hdr = {'content-type': 'application/json; charset=UTF-8'} @@ -2405,7 +2405,8 @@ class GCEMockHttp(MockHttp): 'zones_us_central1_a_instances_node_name_setLabels_post.json') return (httplib.OK, body, self.json_hdr, httplib.responses[httplib.OK]) - def _global_custom_image_setLabels(self, method, url, body, headers): + def _global_images_custom_image_setLabels(self, method, url, body, headers): + self.assertTrue('global/images/custom-image/setLabels' in url) body = self.fixtures.load( 'global_custom_image_setLabels_post.json') return (httplib.OK, body, self.json_hdr, httplib.responses[httplib.OK])
