return empty key pairs response

This commit is contained in:
Konstantinos Koukopoulos 2014-02-24 12:18:52 +02:00
parent 390d3b900c
commit d438b05d41

View File

@ -1,3 +1,4 @@
from jinja2 import Template
from moto.core.responses import BaseResponse
@ -9,7 +10,15 @@ class KeyPairs(BaseResponse):
raise NotImplementedError('KeyPairs.delete_key_pair is not yet implemented')
def describe_key_pairs(self):
raise NotImplementedError('KeyPairs.describe_key_pairs is not yet implemented')
template = Template(DESCRIBE_KEY_PAIRS_RESPONSE)
return template.render(keypairs=[])
def import_key_pair(self):
raise NotImplementedError('KeyPairs.import_key_pair is not yet implemented')
DESCRIBE_KEY_PAIRS_RESPONSE = """<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<keySet>
</keySet>
</DescribeKeyPairsResponse>"""