Steve Pulec
d297fc08f2
Merge pull request #2755 from bblommers/dynamodbstreams_update_item
...
DynamoDB - Send item to DDB Stream on update, not just on create
2020-02-18 18:15:25 -06:00
Bert Blommers
5863d9fab9
Linting
2020-02-18 12:34:24 +00:00
Bert Blommers
9971bcdfcd
DynamoDB - Send item to DDB Stream on update, not just on create
2020-02-18 11:49:55 +00:00
Steve Pulec
aeb194fc57
Update new lambda test to work with updated status codes. CC #2642 .
2020-02-17 17:29:00 -06:00
Steve Pulec
039656f84d
Merge pull request #2704 from bblommers/bugfix/2642
...
Fix AWS Lambda status code on invoke
2020-02-15 10:46:01 -06:00
Steve Pulec
e40d75359a
Merge pull request #2717 from bblommers/feature/s3_illegallocationconstraint
...
S3 Feature: Add IllegalLocationConstraintException
2020-02-15 10:41:00 -06:00
Terry Griffin
f70cd0182e
Fixed test_lambda_can_be_deleted_by_cloudformation for new (correct) error code.
2020-02-10 09:18:25 -08:00
Terry Griffin
b4c9b76ca9
Added 'x-amzn-ErrorType' in return header from lambda:get_function for missing function
2020-02-06 15:26:20 -08:00
Mike Grima
bb64258a8f
Fixed issue with Lambda invoke via ARN
...
- Fixed an issue where Lambda invokes via an ARN was hitting real AWS.
2020-02-04 22:12:11 -08:00
Bert Blommers
e21ddb7abc
Use var instead of hardcoded string for region
2020-02-02 14:25:44 +00:00
Bert Blommers
a86cba79de
Add S3 LocationConstraint to Lambda tests
2020-02-02 11:48:32 +00:00
Bert Blommers
da40c7125a
Merge pull request #2703 from brady-gsa/fix_lambda_config
...
Fixes awslambda policy management
2020-01-29 15:30:25 +00:00
Brady
dd243d72c2
switch to using sure for assertions
2020-01-29 09:46:09 -05:00
Brady
cb07d17e13
don't use table of test cases and reduce duplication in get_policy method
2020-01-27 10:35:46 -05:00
Brady
2a2ff32dec
improves support for AWS lambda policy management
2020-01-24 14:53:16 -05:00
Andrey Kislyuk
324ef5af36
Fix test
2020-01-24 16:11:44 +00:00
Bert Blommers
ccd0257acc
Fix Lambda tests for DryRuns
2020-01-24 10:09:56 +00:00
Bert Blommers
ee8231202a
Fix linting
2020-01-24 09:08:48 +00:00
Roque Pinel
2ae09c5335
Fix the StatusCode
returned by lambda invoke
...
According to the AWS documentation:
```
The HTTP status code will be in the 200 range for successful request.
For the RequestResponse invocation type this status code will be 200.
For the Event invocation type this status code will be 202.
For the DryRun invocation type the status code will be 204.
```
2020-01-24 09:07:49 +00:00
Bert Blommers
5884483019
Compare map, instead of string repr
2020-01-09 10:08:35 +00:00
Bert Blommers
cba3cfc384
Escape curly braces in formatting string
2020-01-09 09:10:16 +00:00
Bert Blommers
eab9e15bf0
#2623 - Fix and simplify test in ServerMode
2020-01-05 15:01:31 +00:00
Fabio Dias
743dd46399
black linting
2019-12-16 21:25:20 -05:00
Fabio Dias
b83a750630
Added references to moto.iam.models.ACCOUNT_ID instead of hardcoded id
2019-12-16 19:56:11 -05:00
Mike Grima
76aaa2df0f
Merge pull request #2595 from bblommers/feature/2317
...
Add CF update/delete methods for Lambda
2019-12-09 14:04:49 -08:00
Bert Blommers
9c247f4b70
Specify region name for IAM
2019-11-24 15:33:51 +00:00
Bert Blommers
791c25b51c
#2317 - Add CF Update/Delete methods for Lambda
2019-11-24 14:54:38 +00:00
Bert Blommers
d759f16331
Specify region name when creating Lambda roles
2019-11-22 08:12:47 +00:00
Bert Blommers
5f6e8fd6fe
Merge branch 'master' into feature/2546
2019-11-22 06:22:54 +00:00
Bert Blommers
1d85288244
Ensure Flask sends through custom error messages
2019-11-20 08:57:38 +00:00
Bert Blommers
0ea98f22ee
Merge branch 'master' into feature/2546
2019-11-19 08:00:59 +00:00
Mike Grima
bd777cad44
Fix for moto not unmocking.
...
- Fixes #2575
- Also upgraded Travis CI to make use of Bionic instead of Xenial
- This may also address concerns raised in #1793
2019-11-18 15:28:31 -08:00
Mike Grima
27f36a7514
Fixed the Lambda invocation due to lambci changes.
...
It looks like lambci is pre-pending the "lambda" responses with an
escape character `\033`. This was breaking the unit tests.
2019-11-17 18:40:15 -08:00
Bert Blommers
40aa73a12b
#2546 - AWS Lambda: Add Role validation when creating functions
2019-11-07 17:11:13 +00:00
Ian Yon
9e2b47e82b
Applied black formatter
2019-11-04 12:22:03 -03:00
Ian Yon
577419798d
Merge from master to current branch
2019-11-04 12:14:43 -03:00
Ian Yon
90a9235f4c
Allow lambda get function by arn and addded environment configuration
2019-11-04 10:44:01 -03:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
Jack Danger
b6fe526add
Merge pull request #2502 from bblommers/feature/lambda-delete-by-arn
...
Feature - Lambda Delete by arn
2019-10-22 16:02:33 -07:00
Jack Danger
a05c7da3bb
Implement support for lambda policies ( #2471 )
...
* Implement support for lambda policies
* Fixing two tests that weren't running
* Getting tests running under Python 2.7
2019-10-22 14:09:44 -07:00
Bert Blommers
ce4bd5d64c
AWS Lambda - Allow function deletions by ARN
2019-10-22 09:31:37 +01:00
Mike Grima
4dd347e1fe
Merge pull request #2487 from bblommers/feature/iam_delete_policy
...
Feature - [IAM] Delete Policy
2019-10-18 09:53:51 -07:00
Christian Clauss
c3c75c12d9
Use ==/!= to compare str, bytes, and int literals
...
Python 3.8 will probably [raise SyntaxWarnings](https://docs.python.org/3/whatsnew/3.8.html#changes-in-python-behavior ) on the flake8 F632 issue raised below.
[flake8](http://flake8.pycqa.org ) testing of https://github.com/spulec/moto on Python 3.7.1
$ __flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics__
```
./tests/test_awslambda/test_lambda.py:1137:24: F632 use ==/!= to compare str, bytes, and int literals
assert len(messages) is 3
^
1 F632 use ==/!= to compare str, bytes, and int literals
1
```
2019-10-18 09:03:31 +02:00
Bert Blommers
856a06a778
IAM - Delete Policy implementation
2019-10-17 09:28:19 +01:00
Steve Pulec
31198c75b8
Merge pull request #2457 from bblommers/feature/dynamodb_streams_invoke_lambda
...
Feature: Add option for DynamoDB stream to kick off lambda
2019-10-10 17:05:43 -05:00
Seth Black
dff24cb032
bringing up test percentage
2019-10-09 16:20:53 -05:00
Seth Black
20dc8ae5c4
getting tests working in server mode
2019-10-09 15:15:10 -05:00
Seth Black
41af98c98b
added UpdateFunctionCode and UpdateFunctionConfiguration and associated test cases
2019-10-08 15:59:03 -05:00
Bert Blommers
91b13f998f
Feature: Add option for DynamoDB stream to kick off lambda
2019-10-07 11:11:22 +01:00
Randy Westergren
ccceb70397
And event source mapping endpoints and SQS trigger support
2019-08-20 21:54:57 -04:00