Skip to content
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

Emit a warning if botocore/boto3 versions don't meet our supported minimums and remove tests for old versions #442

Merged
merged 7 commits into from
Aug 6, 2021

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Aug 5, 2021

SUMMARY

Rather than checking that we support (old) boto3/botocore features, emit a warning if botocore/boto3 are less than the supported versions.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/module_utils/core.py
plugins/modules/aws_s3.py
plugins/modules/cloudformation.py
plugins/modules/ec2_group.py
plugins/modules/ec2_instance.py
plugins/modules/ec2_instance_info.py
plugins/modules/ec2_vpc_subnet.py
plugins/modules/s3_bucket.py

ADDITIONAL INFORMATION

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress feature This issue/PR relates to a feature request module module module_utils module_utils needs_triage plugins plugin (any type) labels Aug 5, 2021
@ansibullbot
Copy link

cc @Sodki
click here for bot help

@tremble tremble requested a review from jillr August 6, 2021 09:05
@tremble tremble changed the title [WIP] Emit a warning if botocore/boto3 versions don't meet our supported minimums Emit a warning if botocore/boto3 versions don't meet our supported minimums and remove tests for old versions Aug 6, 2021
@ansibullbot ansibullbot added community_review and removed WIP Work in progress labels Aug 6, 2021
@tremble tremble added the gate label Aug 6, 2021
Copy link
Contributor

@ansible-zuul ansible-zuul bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ansible-zuul ansible-zuul bot merged commit 32b380b into ansible-collections:main Aug 6, 2021
ansible-zuul bot added a commit to ansible-collections/community.aws that referenced this pull request Aug 10, 2021
Cleanup boto3/botocore dependencies - remove tests for unsupported versions

SUMMARY
Testing for boto3/botocore support on specific functions is very inconsistent.  Now that we have minimum supported versions we can drop the tests for previous versions.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/aws_eks_cluster.py
plugins/modules/aws_msk_cluster.py
plugins/modules/aws_msk_config.py
plugins/modules/cloudformation_stack_set.py
plugins/modules/dynamodb_table.py
plugins/modules/dynamodb_ttl.py
plugins/modules/ec2_ami_copy.py
plugins/modules/ec2_asg.py
plugins/modules/ec2_launch_template.py
plugins/modules/ec2_transit_gateway.py
plugins/modules/ec2_transit_gateway_info.py
plugins/modules/ec2_vpc_peer.py
plugins/modules/ecs_ecr.py
plugins/modules/ecs_service.py
plugins/modules/ecs_task.py
plugins/modules/ecs_taskdefinition.py
plugins/modules/efs.py
plugins/modules/efs_info.py
plugins/modules/elb_target_group.py
plugins/modules/iam_role.py
plugins/modules/lambda.py
plugins/modules/rds_instance.py
plugins/modules/sqs_queue.py
ADDITIONAL INFORMATION
Depends-on: ansible-collections/amazon.aws#442
Depends-on: ansible-collections/amazon.aws#446

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
jillr pushed a commit to jillr/amazon.aws that referenced this pull request Aug 20, 2021
* Move ec2_vpc_route_table tests into group 4
* ec2_vpc_route_table - Use retries more consistently.
* ec2_vpc_route_table_info - boto3 migration
* changelog
* Add return value documentation
* catch WaiterError for cleaner error messages

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@dfb20a3
jillr pushed a commit to jillr/amazon.aws that referenced this pull request Aug 26, 2021
* Move ec2_vpc_route_table tests into group 4
* ec2_vpc_route_table - Use retries more consistently.
* ec2_vpc_route_table_info - boto3 migration
* changelog
* Add return value documentation
* catch WaiterError for cleaner error messages

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@dfb20a3
jillr pushed a commit to jillr/amazon.aws that referenced this pull request Aug 27, 2021
* Move ec2_vpc_route_table tests into group 4
* ec2_vpc_route_table - Use retries more consistently.
* ec2_vpc_route_table_info - boto3 migration
* changelog
* Add return value documentation
* catch WaiterError for cleaner error messages

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@dfb20a3
@tremble tremble deleted the boto3/minimums branch November 26, 2021 12:42
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
* Move ec2_vpc_route_table tests into group 4
* ec2_vpc_route_table - Use retries more consistently.
* ec2_vpc_route_table_info - boto3 migration
* changelog
* Add return value documentation
* catch WaiterError for cleaner error messages
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
Cleanup boto3/botocore dependencies - remove tests for unsupported versions

SUMMARY
Testing for boto3/botocore support on specific functions is very inconsistent.  Now that we have minimum supported versions we can drop the tests for previous versions.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/aws_eks_cluster.py
plugins/modules/aws_msk_cluster.py
plugins/modules/aws_msk_config.py
plugins/modules/cloudformation_stack_set.py
plugins/modules/dynamodb_table.py
plugins/modules/dynamodb_ttl.py
plugins/modules/ec2_ami_copy.py
plugins/modules/ec2_asg.py
plugins/modules/ec2_launch_template.py
plugins/modules/ec2_transit_gateway.py
plugins/modules/ec2_transit_gateway_info.py
plugins/modules/ec2_vpc_peer.py
plugins/modules/ecs_ecr.py
plugins/modules/ecs_service.py
plugins/modules/ecs_task.py
plugins/modules/ecs_taskdefinition.py
plugins/modules/efs.py
plugins/modules/efs_info.py
plugins/modules/elb_target_group.py
plugins/modules/iam_role.py
plugins/modules/lambda.py
plugins/modules/rds_instance.py
plugins/modules/sqs_queue.py
ADDITIONAL INFORMATION
Depends-on: ansible-collections#442
Depends-on: ansible-collections#446

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
* Move ec2_vpc_route_table tests into group 4
* ec2_vpc_route_table - Use retries more consistently.
* ec2_vpc_route_table_info - boto3 migration
* changelog
* Add return value documentation
* catch WaiterError for cleaner error messages
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
* Move ec2_vpc_route_table tests into group 4
* ec2_vpc_route_table - Use retries more consistently.
* ec2_vpc_route_table_info - boto3 migration
* changelog
* Add return value documentation
* catch WaiterError for cleaner error messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request integration tests/integration module_utils module_utils module module needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants