Commit Graph

130 Commits

Author SHA1 Message Date
Bert Blommers
438b2b7843
Feature: Proxy (#6848) 2023-09-27 18:34:30 +00:00
Bert Blommers
643759bd64
Admin: Rework skipped tests for ServerMode (#6833) 2023-09-19 19:46:20 +00:00
Bert Blommers
8aafbdb58f
Techdebt: Streamline AWSLambda/Docker tests (#6735) 2023-08-31 06:47:49 +00:00
Scott Bailey
b71723b99a
awslambda: create_function() should fail on duplicate (#6626) 2023-08-15 21:24:01 +00:00
Scott Bailey
824f22a794
AWSLambda: enforce concurrency quota in put_function_concurrency() (#6628) 2023-08-15 16:43:40 +00:00
Scott Bailey
2b0d6ee0dc
Add ECR support to lambda update_function_code() (#6586) 2023-08-08 10:11:24 +00:00
Scott Bailey
80f6cd78d1
AWSLambda: Don't report undefined working directory (#6585) 2023-08-01 21:42:12 +00:00
rafcio19
5f1ccb298e
Lambda: additional optional fields (#6483) 2023-07-06 16:45:29 +00:00
Oliver Bell
bf3c9768b2
Lambda: create list_aliases functionality (#6455) 2023-07-01 10:32:33 +00:00
Bert Blommers
22774e8d08
Core: Reduce slowdown mock_all (#6451) 2023-06-28 21:23:33 +00:00
joel-aws
4cbddbed96
Support All AWS Partitions (#6412) 2023-06-18 12:05:55 +00:00
Bert Blommers
f1ba6554b2
Techdebt: Replace sure with regular asserts in AWSLambda tests (#6393) 2023-06-11 18:44:30 +00:00
Brendan Keane
2cf770f697
ECR Manifest List Support (#5753) 2022-12-16 17:22:43 -01:00
Bert Blommers
d359b5d074
AWSLambda: Only publish functions when source has changed (#5734) 2022-12-05 09:31:20 -01:00
Brendan Keane
3d95ac0978
AWSlambda: Let create_function reference ECR via ImageUri (#5688) 2022-11-23 12:16:33 -01:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
Brian Pandola
3c26da6f64
Fix Race Condition in Parallel AWS Lambda Server Mode Tests (#5643) 2022-11-07 19:03:07 -01:00
Bert Blommers
d469e64612
AWSLambda - Improve retrieval of qualifiers (#5576) 2022-10-18 09:35:17 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Bert Blommers
6bb409e29d
AWSlambda: Support creation of functions with PackageType=Image (#5213) 2022-06-10 14:09:13 +00:00
Bert Blommers
96c9391beb
Improvements: AWSLambda (#4943) 2022-03-17 11:32:31 -01:00
Bert Blommers
5ae0ced349
AWSLambda - raise correct error when publishing unknown function (#4934) 2022-03-15 14:07:01 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
de559e450d
AWSLambda - Error when removing unknown permission (#4846) 2022-02-09 18:31:53 -01:00
Bert Blommers
094d00a37a
Feature: APIGatewayV2 (#4840) 2022-02-08 20:12:51 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
d08ed937f3
AWSLambda - clean up tests (#4317) 2021-09-21 15:19:49 +00:00
Bert Blommers
728c0c91b4
AWSLambda:list_functions() should only return the latest version by default (#4047) 2021-08-28 15:26:44 +01:00
Bert Blommers
027d05e21c
Improve logs when Docker is not running (#3711) 2021-08-28 10:48:28 +01:00
Bert Blommers
0e302a97cb
Streamline success/failure response from AWSLambda (#4000) 2021-08-28 09:41:05 +01:00
Bert Blommers
cc50acc8b5
AWSLambda - Allow ARN as parameter (#3740) 2021-08-28 07:23:44 +01:00
Bert Blommers
8cc439444f
#3991 - AWSLambda - set content-type to app/json (#4046) 2021-06-30 11:02:38 +01:00
Bert Blommers
4af57c18bd
AWSLambda - Verify we can add multiple files to a Function (#3771) 2021-06-24 06:24:32 +01:00
Laurie O
ddd3c0edc4
Assume synchronous Lambda invocation by default (#3615)
* Assume synchronous Lambda invocation by default

* Support Python 2 with dict-unpacking
2021-01-26 13:28:01 +00:00
Erez Freiberger
9784e1b487
adding layers support for lambda backend (#3563)
* adding layers support for lambda backend

* improving lambda layer tests

* adding lambda list_layers and fixing tests

* make format
2021-01-17 15:28:49 +00:00
Brian Pandola
7ff60683e0
Expose contextual data when Lambda test fails (#3590)
This test is flaky, but when it fails we don't get any indication as to why.
This commit ensures that the reason for failure will be part of the assertion
message.

Once we have information about why this test fails, we can troubleshoot further
and hopefully come up with a permanent fix.
2021-01-15 14:42:35 +00:00
Erez Freiberger
f749f583ee
Add get_function_configuration support for Lambda (#3562)
* Add get_function_configuration support for Lambda

* remove unnesecary code from test and use _lambda_region when asserting

* rename function and skip coping configuration

* run black formatting
2021-01-10 15:24:04 +00:00
Brian Pandola
d712a98ce1
Enable AWSLambda and STS mocking for AWS China regions/endpoints (#3574)
Fixes #3570
2021-01-08 14:22:12 +00:00
Oide Brett
83507fbc37
fixed issue in update_configuration for lambda when setting VPC config property (#3479) 2020-11-18 08:45:31 +00:00
Bert Blommers
273ca63d59 Linting 2020-11-11 15:55:37 +00:00
Matěj Cepl
2705698d83 Mark functions as requiring network 2020-11-10 14:12:38 +01:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
Karthikeyan Singaravelan
7054143701
Fix deprecation warnings due to invalid escape sequences. (#3273)
* Fix deprecation warnings due to invalid escape sequences.

* Fix linter error.
2020-09-10 09:20:26 +01:00
Guilherme Martins Crocetti
f744356da7
Lambda reserved concurrency (#3215)
* lambda-responses: add method to dispatch concurrency calls

* lambda-resources: add route to handle concurrency requests

* lambda-model: implement put_function_concurrency and concurrency attribute

* put-concurrency-tests: add one simple test

* get_function: add concurrency entry - with test

* lambda-reserved-concurrency: cloudformation support

* lambda-concurrency: implement delete_reserved with tests

* lambda-concurrency: implement get_reserved with tests

* lint

* implementation-cov: mark delete_function_concurrency, put_function_concurrency and get_function_concurrency

* botocore doesn't display concurrency entry for lambdas without it

* lambda(refactor): improvements on response's handler
2020-08-26 11:06:53 +01:00
Guilherme Martins Crocetti
0dd41d4c32
Cloudformation support for EventSourceMapping (#3045)
* change line position for uuid and last_modified because they're not input parameters

* add event_source_arn validator and setter

* refactor batch_size as setter

* add helper function to parse arn and return source service

* fix for EventSource's create_from_cfn, there was no reference in the lambda object for the esm if created by cfn

* add esm deletion by cloudformation

* remove unused variable in test

* add cfn's update

* add complete implementation of delete_from_cfn

* blacked changed files

* fix test with invalid batchsize for sqs

* Dynamodb2 Table - Bugfix for localindex and implemented get_cfn_attributes

* Dynamodb2 eventsource - fix test to use StreamArn attribute

* Lambda Test - fix test_update_event_source_mapping
2020-06-14 16:03:00 +01:00
Bert Blommers
0718525a2a Linting 2020-05-07 12:29:18 +01:00
Bert Blommers
f82e834225 Lambda - Only return Logs if LogType=Tail 2020-05-07 10:55:15 +01:00
Bert Blommers
be5b1c592f Lambda - Add actual logs to LogResult, instead of replicating the response 2020-05-07 10:40:24 +01:00