Merge "Use HTTPRequest instead of HTTPRequestV3 for v2/v2.1 tests"
This commit is contained in:
commit
b40ea7c0ec
@ -48,7 +48,7 @@ class ShelvePolicyTestV21(test.NoDBTestCase):
|
|||||||
self.controller = self.plugin.ShelveController()
|
self.controller = self.plugin.ShelveController()
|
||||||
|
|
||||||
def _fake_request(self):
|
def _fake_request(self):
|
||||||
return fakes.HTTPRequestV3.blank('/servers/12/os-shelve')
|
return fakes.HTTPRequest.blank('/v2/123/servers/12/os-shelve')
|
||||||
|
|
||||||
def test_shelve_restricted_by_role(self):
|
def test_shelve_restricted_by_role(self):
|
||||||
rules = {'compute_extension:%sshelve' % self.prefix:
|
rules = {'compute_extension:%sshelve' % self.prefix:
|
||||||
@ -143,6 +143,3 @@ class ShelvePolicyTestV2(ShelvePolicyTestV21):
|
|||||||
plugin = shelve_v2
|
plugin = shelve_v2
|
||||||
prefix = ''
|
prefix = ''
|
||||||
offload = 'shelveOffload'
|
offload = 'shelveOffload'
|
||||||
|
|
||||||
def _fake_request(self):
|
|
||||||
return fakes.HTTPRequest.blank('/v2/123/servers/12/os-shelve')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user