-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
parse botocore.endpoint logs into a list of AWS actions #49312
Conversation
Hi @s-hertel, thank you for submitting this pull-request! |
The test
The test
|
The test
The test
|
def exit_json(self, *args, **kwargs): | ||
if self.params.get('debug_botocore_endpoint_logs'): | ||
kwargs['resource_actions'] = self._get_resource_action_list() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor these two lines into a function and call it from the exit_json, fail_json and fail_json_aws.
Maybe just move the logic into _get_resource_action_list and rename it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored but didn't move the logic into _get_resource_action_list
because it was intended to collect unique actions an individual task uses. Not strictly necessary for collecting actions a given playbook uses, but I thought having the finer grain of control had merit.
46bfef9
to
0a7e277
Compare
@@ -11,6 +11,7 @@ | |||
- include: ./credential_tests.yml | |||
- module_defaults: | |||
group/aws: | |||
debug_botocore_endpoint_logs: True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once #51149 is merged I'll be able to remove this. Right now any tests setting module_defaults for group/aws (such as this one) overwrite the setting from the test runner.
Ensure AWS tests inherit environment Remove AWS CLI in aws_rds inventory tests and use the module
cc @Java1Guy @Shaps @akazakov @ryansb @ryansydnor @willthames @wimnat @yaakov-github |
bot_status |
minimize and clarify revise testing procedures moves troubleshooting into its own section this is cleaner bullets for the two choices make requirements clearer
!needs_revision |
Add an option to parse botocore.endpoint logs for the AWS actions performed during a task
Add a callback to consolidate all AWS actions used by modules
Allow integration tests to output AWS actions
Added some docs to help contributors help with the needs_ci_update queue
SUMMARY
This helps remove some friction when determining the minimum permissions needed for integration tests, as well as being a step in the direction of being able to document #22552
Please bikeshed names.
ISSUE TYPE
COMPONENT NAME