Skip to content

Commit

Permalink
Enable all sanity tests (ansible-collections#129)
Browse files Browse the repository at this point in the history
* Enable all sanity tests.

* Update ignore.txt.

Co-authored-by: Jill R <[email protected]>
  • Loading branch information
felixfontein and jillr authored Jul 8, 2020
1 parent 3fd595d commit f0e7d33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 119 deletions.
111 changes: 6 additions & 105 deletions tests/sanity/ignore-2.9.txt
Original file line number Diff line number Diff line change
@@ -1,109 +1,6 @@
plugins/modules/cloudformation_stack_set.py validate-modules:doc-elements-mismatch
plugins/modules/cloudformation_stack_set.py validate-modules:parameter-list-no-elements
plugins/modules/cloudfront_distribution.py validate-modules:doc-elements-mismatch
plugins/modules/cloudfront_distribution.py validate-modules:parameter-list-no-elements
plugins/modules/cloudfront_invalidation.py validate-modules:doc-elements-mismatch
plugins/modules/cloudfront_invalidation.py validate-modules:parameter-list-no-elements
plugins/modules/cloudwatchevent_rule.py validate-modules:doc-elements-mismatch
plugins/modules/cloudwatchevent_rule.py validate-modules:parameter-list-no-elements
plugins/modules/data_pipeline.py validate-modules:doc-elements-mismatch
plugins/modules/data_pipeline.py validate-modules:parameter-list-no-elements
plugins/modules/dynamodb_table.py validate-modules:doc-elements-mismatch
plugins/modules/dynamodb_table.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_asg.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_asg.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_customer_gateway_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_customer_gateway_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_elb.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_elb_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_instance.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_instance_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_launch_template.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_launch_template.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_lc.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_lc.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_lc_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_lc_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_metric_alarm.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_metric_alarm.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_placement_group_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_placement_group_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_transit_gateway_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_endpoint.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_endpoint.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_endpoint_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_endpoint_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_igw_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_igw_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_nacl.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_nacl_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_nat_gateway_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_nat_gateway_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_peering_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_peering_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_route_table.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_route_table.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_vgw_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_vgw_info.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_vpn.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_vpn.py validate-modules:parameter-list-no-elements
plugins/modules/ec2_vpc_vpn_info.py validate-modules:doc-elements-mismatch
plugins/modules/ec2_vpc_vpn_info.py validate-modules:parameter-list-no-elements
plugins/modules/ecs_attribute.py validate-modules:doc-elements-mismatch
plugins/modules/ecs_attribute.py validate-modules:parameter-list-no-elements
plugins/modules/ecs_service_info.py validate-modules:doc-elements-mismatch
plugins/modules/ecs_service_info.py validate-modules:parameter-list-no-elements
plugins/modules/ecs_task.py validate-modules:doc-elements-mismatch
plugins/modules/ecs_task.py validate-modules:parameter-list-no-elements
plugins/modules/ecs_taskdefinition.py validate-modules:doc-elements-mismatch
plugins/modules/ecs_taskdefinition.py validate-modules:parameter-list-no-elements
plugins/modules/efs.py validate-modules:doc-elements-mismatch
plugins/modules/efs.py validate-modules:parameter-list-no-elements
plugins/modules/efs_info.py validate-modules:doc-elements-mismatch
plugins/modules/efs_info.py validate-modules:parameter-list-no-elements
plugins/modules/elasticache.py validate-modules:doc-elements-mismatch
plugins/modules/elasticache.py validate-modules:parameter-list-no-elements
plugins/modules/elasticache_subnet_group.py validate-modules:doc-elements-mismatch
plugins/modules/elasticache_subnet_group.py validate-modules:parameter-list-no-elements
plugins/modules/elb_application_lb.py validate-modules:doc-elements-mismatch
plugins/modules/elb_application_lb.py validate-modules:parameter-list-no-elements
plugins/modules/elb_application_lb_info.py validate-modules:parameter-list-no-elements
plugins/modules/elb_classic_lb.py validate-modules:parameter-list-no-elements
plugins/modules/elb_classic_lb_info.py validate-modules:parameter-list-no-elements
plugins/modules/elb_instance.py validate-modules:parameter-list-no-elements
plugins/modules/elb_network_lb.py validate-modules:doc-elements-mismatch
plugins/modules/elb_network_lb.py validate-modules:parameter-list-no-elements
plugins/modules/elb_target_group.py validate-modules:parameter-list-no-elements
plugins/modules/elb_target_group_info.py validate-modules:parameter-list-no-elements
plugins/modules/iam.py validate-modules:parameter-list-no-elements
plugins/modules/iam_group.py validate-modules:doc-elements-mismatch
plugins/modules/iam_group.py validate-modules:parameter-list-no-elements
plugins/modules/iam_role.py validate-modules:parameter-list-no-elements
plugins/modules/iam_user.py validate-modules:parameter-list-no-elements
plugins/modules/lambda.py validate-modules:doc-elements-mismatch
plugins/modules/lambda.py validate-modules:parameter-list-no-elements
plugins/modules/rds.py validate-modules:doc-elements-mismatch
plugins/modules/rds.py validate-modules:parameter-list-no-elements
plugins/modules/rds_instance.py validate-modules:parameter-list-no-elements
plugins/modules/rds_subnet_group.py validate-modules:parameter-list-no-elements
plugins/modules/redshift.py validate-modules:doc-elements-mismatch
plugins/modules/redshift.py validate-modules:parameter-list-no-elements
plugins/modules/redshift_subnet_group.py validate-modules:doc-elements-mismatch
plugins/modules/redshift_subnet_group.py validate-modules:parameter-list-no-elements
plugins/modules/route53.py validate-modules:parameter-list-no-elements
plugins/modules/route53.py validate-modules:parameter-state-invalid-choice
plugins/modules/route53_info.py validate-modules:doc-elements-mismatch
plugins/modules/route53_info.py validate-modules:parameter-list-no-elements
plugins/modules/s3_bucket_notification.py validate-modules:doc-elements-mismatch
plugins/modules/s3_bucket_notification.py validate-modules:parameter-list-no-elements
plugins/modules/s3_lifecycle.py validate-modules:parameter-list-no-elements
plugins/modules/sns_topic.py validate-modules:doc-elements-mismatch
plugins/modules/sns_topic.py validate-modules:parameter-list-no-elements
tests/utils/shippable/check_matrix.py replace-urlopen
tests/utils/shippable/timing.py shebang
plugins/modules/aws_acm_info.py pylint:ansible-deprecated-no-version
plugins/modules/aws_kms_info.py pylint:ansible-deprecated-no-version
plugins/modules/aws_kms.py pylint:ansible-deprecated-no-version
plugins/modules/aws_kms_info.py pylint:ansible-deprecated-no-version
plugins/modules/aws_region_info.py pylint:ansible-deprecated-no-version
plugins/modules/aws_s3_bucket_info.py pylint:ansible-deprecated-no-version
plugins/modules/aws_sgw_info.py pylint:ansible-deprecated-no-version
Expand Down Expand Up @@ -137,10 +34,14 @@ plugins/modules/elb_target_group_info.py pylint:ansible-deprecated-no-version
plugins/modules/elb_target_info.py pylint:ansible-deprecated-no-version
plugins/modules/iam_mfa_device_info.py pylint:ansible-deprecated-no-version
plugins/modules/iam_policy.py pylint:ansible-deprecated-no-version
plugins/modules/iam_role_info.py pylint:ansible-deprecated-no-version
plugins/modules/iam_role.py pylint:ansible-deprecated-no-version
plugins/modules/iam_role_info.py pylint:ansible-deprecated-no-version
plugins/modules/iam_server_certificate_info.py pylint:ansible-deprecated-no-version
plugins/modules/lambda_facts.py validate-modules:deprecation-mismatch
plugins/modules/lambda_facts.py validate-modules:invalid-documentation
plugins/modules/rds_instance_info.py pylint:ansible-deprecated-no-version
plugins/modules/rds_snapshot_info.py pylint:ansible-deprecated-no-version
plugins/modules/redshift_info.py pylint:ansible-deprecated-no-version
plugins/modules/route53_info.py pylint:ansible-deprecated-no-version
tests/utils/shippable/check_matrix.py replace-urlopen
tests/utils/shippable/timing.py shebang
15 changes: 1 addition & 14 deletions tests/utils/shippable/sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,13 @@

set -o pipefail -eux

declare -a args
IFS='/:' read -ra args <<< "$1"

group="${args[1]}"

if [ "${BASE_BRANCH:-}" ]; then
base_branch="origin/${BASE_BRANCH}"
else
base_branch=""
fi

case "${group}" in
1) options=(--skip-test pylint --skip-test ansible-doc --skip-test validate-modules) ;;
2) options=( --test ansible-doc) ;;
3) options=(--test pylint --exclude test/units/ --exclude lib/ansible/module_utils/) ;;
4) options=(--test pylint test/units/ lib/ansible/module_utils/) ;;
5) options=( --test validate-modules) ;;
esac

# shellcheck disable=SC2086
ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
--docker --base-branch "${base_branch}" \
"${options[@]}" --allow-disabled
--allow-disabled

0 comments on commit f0e7d33

Please sign in to comment.