File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased] [ ]
4
4
5
- [ Unreleased ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.32.0...HEAD
5
+ [ Unreleased ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.32.1...HEAD
6
+
7
+ ## [ 0.32.1] [ ] - 2024-02-23
8
+
9
+ [ 0.32.1 ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.32.0...0.32.1
10
+
11
+ ### Fixed
12
+
13
+ - Use ` boto3.lambda.get_function_concurrency ` to retrieve the reserved
14
+ ` ReservedConcurrentExecutions ` from a lambda function
6
15
7
16
## [ 0.32.0] [ ] - 2024-02-23
8
17
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ def get_function_concurrency(
23
23
Get configuration information of lambda by its function name
24
24
"""
25
25
client = aws_client ("lambda" , configuration , secrets )
26
- result = client .get_function (FunctionName = function_name )
27
- return result ["Concurrency" ][ " ReservedConcurrentExecutions" ]
26
+ result = client .get_function_concurrency (FunctionName = function_name )
27
+ return result ["ReservedConcurrentExecutions" ]
28
28
29
29
30
30
def get_function_timeout (
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ def test_aws_lambda_get_function_concurrency(aws_client):
35
35
aws_client .return_value = client
36
36
lambda_function_name = "my-lambda-function"
37
37
get_function_concurrency (lambda_function_name )
38
- client .get_function .assert_called_with (FunctionName = lambda_function_name )
38
+ client .get_function_concurrency .assert_called_with (
39
+ FunctionName = lambda_function_name
40
+ )
39
41
40
42
41
43
@patch ("chaosaws.awslambda.probes.aws_client" , autospec = True )
You can’t perform that action at this time.
0 commit comments