-
Notifications
You must be signed in to change notification settings - Fork 345
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
ec2_metadata_facts: unit-test coverage #1196
ec2_metadata_facts: unit-test coverage #1196
Conversation
Partial unit-test coverage of the `ec2_metadata_facts` module.
@goneri: Greetings! Thanks for taking the time to open this pullrequest. In order for the community to handle your pullrequest effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this pullrequest with this template: |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 12s |
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 4m 14s |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
…1196) rds_instance - fix sporadic test failure in processor features SUMMARY Seen a few failures in CI testing when professor features are actually applied and not pending (in pending_modified_values) ISSUE TYPE Feature Pull Request COMPONENT NAME rds_instance ADDITIONAL INFORMATION when processor features are applied and not pending: 2022-06-01 22:24:33.960215 | controller | "pending_modified_values": {}, 2022-06-01 22:24:33.960221 | controller | "performance_insights_enabled": false, 2022-06-01 22:24:33.960227 | controller | "preferred_backup_window": "06:49-07:19", 2022-06-01 22:24:33.960234 | controller | "preferred_maintenance_window": "thu:06:19-thu:06:49", 2022-06-01 22:24:33.960239 | controller | "processor_features": { 2022-06-01 22:24:33.960245 | controller | "coreCount": "4", 2022-06-01 22:24:33.960252 | controller | "threadsPerCore": "2" 2022-06-01 22:24:33.960258 | controller | }, 2022-06-01 22:24:45.612919 | controller | TASK [rds_instance : assert] *************************************************** 2022-06-01 22:24:45.613111 | controller | task path: /home/zuul/.ansible/collections/ansible_collections/community/aws/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_processor.yml:105 2022-06-01 22:24:45.613324 | controller | fatal: [processor]: FAILED! => { 2022-06-01 22:24:45.613339 | controller | "msg": "The conditional check 'result.pending_modified_values.processor_features.coreCount == \"4\" or result.processor_features.coreCount == \"4\"' failed. The error was: error while evaluating conditional (result.pending_modified_values.processor_features.coreCount == \"4\" or result.processor_features.coreCount == \"4\"): 'dict object' has no attribute 'processor_features'" 2022-06-01 22:24:45.613347 | controller | } Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@72be46e
…1196) rds_instance - fix sporadic test failure in processor features SUMMARY Seen a few failures in CI testing when professor features are actually applied and not pending (in pending_modified_values) ISSUE TYPE Feature Pull Request COMPONENT NAME rds_instance ADDITIONAL INFORMATION when processor features are applied and not pending: 2022-06-01 22:24:33.960215 | controller | "pending_modified_values": {}, 2022-06-01 22:24:33.960221 | controller | "performance_insights_enabled": false, 2022-06-01 22:24:33.960227 | controller | "preferred_backup_window": "06:49-07:19", 2022-06-01 22:24:33.960234 | controller | "preferred_maintenance_window": "thu:06:19-thu:06:49", 2022-06-01 22:24:33.960239 | controller | "processor_features": { 2022-06-01 22:24:33.960245 | controller | "coreCount": "4", 2022-06-01 22:24:33.960252 | controller | "threadsPerCore": "2" 2022-06-01 22:24:33.960258 | controller | }, 2022-06-01 22:24:45.612919 | controller | TASK [rds_instance : assert] *************************************************** 2022-06-01 22:24:45.613111 | controller | task path: /home/zuul/.ansible/collections/ansible_collections/community/aws/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_processor.yml:105 2022-06-01 22:24:45.613324 | controller | fatal: [processor]: FAILED! => { 2022-06-01 22:24:45.613339 | controller | "msg": "The conditional check 'result.pending_modified_values.processor_features.coreCount == \"4\" or result.processor_features.coreCount == \"4\"' failed. The error was: error while evaluating conditional (result.pending_modified_values.processor_features.coreCount == \"4\" or result.processor_features.coreCount == \"4\"): 'dict object' has no attribute 'processor_features'" 2022-06-01 22:24:45.613347 | controller | } Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None>
Partial unit-test coverage of the
ec2_metadata_facts
module.