-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add get_function_configuration support for Lambda #3562
Add get_function_configuration support for Lambda #3562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR @enoodle! Left a few comments.
tests/test_awslambda/test_lambda.py
Outdated
) | ||
result["Version"].should.equal("$LATEST") | ||
result["FunctionArn"].should.equal( | ||
"arn:aws:lambda:us-west-2:{}:function:testFunction:$LATEST".format(ACCOUNT_ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The region can also be formatted, with _lambda_region
tests/test_awslambda/test_lambda.py
Outdated
) | ||
|
||
result = conn.get_function_configuration(FunctionName="testFunction") | ||
# this is hard to match against, so remove it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think we need to remove these keys, as we're not verifying equality on the entire dict.
94c88a8
to
a29238b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes @enoodle. Looks like the linter fails atm (https://travis-ci.org/github/spulec/moto/builds/753454806) - happy to merge once that's resolved.
@bblommers I fixed the linting issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This adds support for
boto3.client('lambda').get_function_configuration(FunctionName='blalbla')