Added 'x-amzn-ErrorType' in return header from lambda:get_function for missing function
This commit is contained in:
parent
7719ac76a3
commit
b4c9b76ca9
2 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ def lambda_handler(event, context):
|
|||
|
||||
def get_test_zip_file4():
|
||||
pfunc = """
|
||||
def lambda_handler(event, context):
|
||||
def lambda_handler(event, context):
|
||||
raise Exception('I failed!')
|
||||
"""
|
||||
return _process_lambda(pfunc)
|
||||
|
|
@ -455,7 +455,7 @@ def test_get_function():
|
|||
)
|
||||
|
||||
# Test get function when can't find function name
|
||||
with assert_raises(ClientError):
|
||||
with assert_raises(conn.exceptions.ResourceNotFoundException):
|
||||
conn.get_function(FunctionName="junk", Qualifier="$LATEST")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue