add more realistic policy
This commit is contained in:
parent
fc9c250922
commit
b994cf5291
2 changed files with 9 additions and 2 deletions
|
|
@ -667,4 +667,8 @@ def get_function_policy():
|
|||
response = conn.get_policy(
|
||||
FunctionName='testFunction'
|
||||
)
|
||||
assert response['Policy'] == 'test_policy'
|
||||
|
||||
assert 'Policy' in response
|
||||
assert isinstance(response['Policy'], str)
|
||||
res = json.loads(response['Policy'])
|
||||
assert res['Statement'][0]['Action'] == ['lambda:InvokeFunction']
|
||||
Loading…
Add table
Add a link
Reference in a new issue