Skip to content

Commit

Permalink
Integration test dependency cleanup (#784)
Browse files Browse the repository at this point in the history
Integration test dependency cleanup

SUMMARY

remove dependencies on setup_remote_tmp_dir where it's not used (often just copy & paste from another test)
remove setup_ec2 (no main.yml means it's not doing anything)
remove prepare_tests (empty main.yml means it's not doing anything)

ISSUE TYPE

Feature Pull Request

COMPONENT NAME
tests/integration/targets
ADDITIONAL INFORMATION
By cleaning up what we have we reduce the chance of people copying things about "because that's what test XYZ did".

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <[email protected]>
  • Loading branch information
tremble authored Apr 29, 2022
1 parent 331c8ba commit c5a761d
Show file tree
Hide file tree
Showing 39 changed files with 27 additions and 166 deletions.
3 changes: 1 addition & 2 deletions tests/integration/targets/aws_az_info/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dependencies:
- setup_remote_tmp_dir
dependencies: []
1 change: 1 addition & 0 deletions tests/integration/targets/aws_caller_info/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
2 changes: 0 additions & 2 deletions tests/integration/targets/ec2_ami/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dependencies:
- prepare_tests
- setup_ec2
- setup_ec2_facts
4 changes: 1 addition & 3 deletions tests/integration/targets/ec2_group/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
3 changes: 1 addition & 2 deletions tests/integration/targets/ec2_instance/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# this just makes sure they're in the right place
dependencies:
- role: prepare_tests
- role: setup_ec2_facts
- role: setup_botocore_pip
vars:
boto3_version: "1.20.30"
boto3_version: "1.20.30"
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dependencies:
- role: prepare_tests
- role: setup_ec2_facts
- role: setup_botocore_pip
vars:
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/targets/ec2_key/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dependencies:
- prepare_tests
- setup_sshkey
- setup_ec2
- role: setup_botocore_pip
vars:
botocore_version: '1.21.23'
1 change: 0 additions & 1 deletion tests/integration/targets/ec2_metadata_facts/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dependencies:
- prepare_tests
- setup_ec2_facts
- setup_sshkey
4 changes: 1 addition & 3 deletions tests/integration/targets/ec2_tag/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
1 change: 1 addition & 0 deletions tests/integration/targets/ec2_vpc_endpoint/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dependencies:
- setup_remote_tmp_dir
dependencies: []
1 change: 1 addition & 0 deletions tests/integration/targets/ec2_vpc_igw/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
4 changes: 1 addition & 3 deletions tests/integration/targets/ec2_vpc_net/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
2 changes: 0 additions & 2 deletions tests/integration/targets/ec2_vpc_route_table/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dependencies:
- prepare_tests
- setup_ec2
- setup_ec2_facts
2 changes: 0 additions & 2 deletions tests/integration/targets/ec2_vpc_subnet/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dependencies:
- prepare_tests
- setup_ec2
- setup_ec2_facts
2 changes: 0 additions & 2 deletions tests/integration/targets/elb_classic_lb/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dependencies:
- prepare_tests
- setup_ec2
- setup_ec2_facts
1 change: 1 addition & 0 deletions tests/integration/targets/inventory_aws_ec2/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
1 change: 1 addition & 0 deletions tests/integration/targets/inventory_aws_rds/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
1 change: 1 addition & 0 deletions tests/integration/targets/lookup_aws_secret/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
4 changes: 1 addition & 3 deletions tests/integration/targets/module_utils_core/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
collections:
- amazon.aws
4 changes: 1 addition & 3 deletions tests/integration/targets/module_utils_waiter/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dependencies:
- prepare_tests
- setup_ec2
dependencies: []
collections:
- amazon.aws
Empty file.
1 change: 0 additions & 1 deletion tests/integration/targets/s3_bucket/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
dependencies:
- role: prepare_tests
- role: setup_botocore_pip
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dependencies:
- role: prepare_tests
dependencies: []
1 change: 1 addition & 0 deletions tests/integration/targets/setup_botocore_pip/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
2 changes: 0 additions & 2 deletions tests/integration/targets/setup_ec2/defaults/main.yml

This file was deleted.

119 changes: 0 additions & 119 deletions tests/integration/targets/setup_ec2/tasks/common.yml

This file was deleted.

3 changes: 0 additions & 3 deletions tests/integration/targets/setup_ec2/vars/main.yml

This file was deleted.

1 change: 1 addition & 0 deletions tests/integration/targets/setup_ec2_facts/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- name: create temporary directory
tempfile:
path: /var/tmp
state: directory
suffix: .test
register: remote_tmp_dir
Expand Down
1 change: 1 addition & 0 deletions tests/integration/targets/setup_sshkey/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []

0 comments on commit c5a761d

Please sign in to comment.