forked from ansible-collections/community.aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lambda - Fix flaky integration tests which assume there are no other …
…functions in the account (ansible-collections#1279) lambda - Fix flaky integration tests which assume there are no other functions in the account SUMMARY The integration tests for lambda assume that there are no other lambdas in the account. So when we index into [0], that's not necessarily the lambda we just created. Note that this fix doesn't work. One of the assertions is failing. TASK [lambda : lambda_info | Assert successfull retrieval of all information 2] *** fatal: [testhost]: FAILED! => { "assertion": "lambda_infos_all.function[lambda_function_name].versions is not defined", "changed": false, "evaluated_to": false, "msg": "Assertion failed" } That attribute is defined. It's a list of 2 versions. I don't know why. I'm just creating this PR anyway, so someone else can pickup where I left off. ISSUE TYPE Bugfix Pull Request COMPONENT NAME lambda_info ADDITIONAL INFORMATION Fixes ansible-collections#1277 Reviewed-by: Mark Chappell <None> Reviewed-by: Matthew Davis <None>
- Loading branch information
1 parent
bccd539
commit 737ee75
Showing
3 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- lambda - fix flaky integration test which assumes there are no other lambdas in the account (https://github.com/ansible-collections/amazon.aws/issues/1277) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[testgroup] | ||
testhost ansible_connection="local" ansible_pipelining="yes" ansible_python_interpreter="/home/matthew/.pyenv/versions/3.10.1/bin/python3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters