Added non existant parameter test + needed error responses
This commit is contained in:
parent
cf7e07b728
commit
783c287e51
2 changed files with 20 additions and 1 deletions
|
|
@ -49,7 +49,11 @@ class SimpleSystemManagerResponse(BaseResponse):
|
|||
result = self.ssm_backend.get_parameter(name, with_decryption)
|
||||
|
||||
if result is None:
|
||||
return '', dict(status=400)
|
||||
error = {
|
||||
'__type': 'ParameterNotFound',
|
||||
'message': 'Parameter {0} not found.'.format(name)
|
||||
}
|
||||
return json.dumps(error), dict(status=400)
|
||||
|
||||
response = {
|
||||
'Parameter': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue