summaryrefslogtreecommitdiff
path: root/novaclient/tests/unit/v2/fakes.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/tests/unit/v2/fakes.py')
-rw-r--r--novaclient/tests/unit/v2/fakes.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/novaclient/tests/unit/v2/fakes.py b/novaclient/tests/unit/v2/fakes.py
index c7687c1e..059a7147 100644
--- a/novaclient/tests/unit/v2/fakes.py
+++ b/novaclient/tests/unit/v2/fakes.py
@@ -1228,13 +1228,8 @@ class FakeSessionClient(base_client.SessionClient):
def post_os_keypairs(self, body, **kw):
assert list(body) == ['keypair']
- if self.api_version >= api_versions.APIVersion("2.92"):
- # In 2.92, public_key becomes mandatory
- required = ['name', 'public_key']
- else:
- required = ['name']
fakes.assert_has_keys(body['keypair'],
- required=required)
+ required=['name'])
r = {'keypair': self.get_os_keypairs()[2]['keypairs'][0]['keypair']}
return (202, {}, r)