add more realistic policy

This commit is contained in:
Chris Keogh 2017-10-03 13:54:37 +13:00
commit b994cf5291
2 changed files with 9 additions and 2 deletions

View file

@ -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']