-
Notifications
You must be signed in to change notification settings - Fork 346
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
lambda integration tests - potential test flake #1277
Labels
Comments
Files identified in the description:
If these files are inaccurate, please update the |
I tried fixing this, but got stuck. My progress is in #1279. |
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Nov 29, 2022
…functions in the account (#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 #1277 Reviewed-by: Mark Chappell <None> Reviewed-by: Matthew Davis <None>
patchback bot
pushed a commit
that referenced
this issue
Nov 29, 2022
…functions in the account (#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 #1277 Reviewed-by: Mark Chappell <None> Reviewed-by: Matthew Davis <None> (cherry picked from commit 737ee75)
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Nov 29, 2022
…functions in the account (#1279) (#1289) [PR #1279/737ee750 backport][stable-5] lambda - Fix flaky integration tests which assume there are no other functions in the account This is a backport of PR #1279 as merged into main (737ee75). 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 #1277
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 24, 2023
Add missing changelog fragment for 1195 SUMMARY Forgot to add a changelog fragment for ansible-collections#1195 ISSUE TYPE Docs Pull Request COMPONENT NAME sns_topic ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Another issue I just found: [lambda] Integration tests fail if the account is not empty. The lambda integration tests assume there are no other lambdas in the account. I just swapped my region to one I don't use.
The error was for integration testing lambda. It was an assertion error.
If the freshly created lambda for this test is not the first lambda in the list (because a pre-existing lambda is), then this assertion fails.
Perhaps it's just that this specific test needs to be made a bit smarter.
Originally posted by @mdavis-xyz in #924 (comment)
Issue Type
Bug Report
Component Name
lambda
Ansible Version
CI / latest
Collection Versions
CI / latest
Configuration
CI
OS / Environment
CI
Steps to Reproduce
Run lambda integration tests in an account with existing lambda
Expected Results
Run without errors
Actual Results
Assertion failure
Code of Conduct
The text was updated successfully, but these errors were encountered: