Skip to content

Commit 3c58215

Browse files
committed
tests: Tag Ansible tests
This makes it easier to run subsets using ANSIBLE_RUN_TAGS=...
1 parent f202ba9 commit 3c58215

File tree

115 files changed

+309
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+309
-16
lines changed

tests/ansible/all.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
- include: setup/all.yml
2+
tags: setup
23
- include: regression/all.yml
4+
tags: regression
35
- include: integration/all.yml
4-
6+
tags: integration

tests/ansible/integration/action/copy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,5 @@
8282
- /tmp/copy-large-inline-file.out
8383

8484
# end of cleaning out files (again)
85+
tags:
86+
- copy

tests/ansible/integration/action/fixup_perms2__copy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,5 @@
114114
- /tmp/copy-with-mode.out
115115

116116
# end of cleaning out files
117+
tags:
118+
- fixup_perms2__copy

tests/ansible/integration/action/low_level_execute_command.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@
4141
["root"],
4242
)
4343
fail_msg: raw={{raw}}
44+
tags:
45+
- low_level_execute_command

tests/ansible/integration/action/make_tmp_path.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,5 @@
160160
- out.module_path.startswith(good_temp_path2)
161161
- out.module_tmpdir.startswith(good_temp_path2)
162162
fail_msg: out={{out}}
163+
tags:
164+
- make_tmp_path

tests/ansible/integration/action/make_tmp_path__double.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@
1818
script: |
1919
assert not self._remote_file_exists("{{ out.t1 }}")
2020
assert not self._remote_file_exists("{{ out.t2 }}")
21+
tags:
22+
- make_tmp_path_double

tests/ansible/integration/action/remote_expand_user.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@
110110
- assert:
111111
that: out.result == '$HOME/foo'
112112
fail_msg: out={{out}}
113+
tags:
114+
- remote_expand_user

tests/ansible/integration/action/remote_file_exists.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@
3535
- file:
3636
path: /tmp/does-exist
3737
state: absent
38-
38+
tags:
39+
- remote_file_exists

tests/ansible/integration/action/remove_tmp_path.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@
3737
- file:
3838
path: /tmp/remove_tmp_path_test
3939
state: absent
40+
tags:
41+
- remove_tmp_path

tests/ansible/integration/action/synchronize.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@
7272
# - /tmp/synchronize-action-key
7373
# - /tmp/sync-test
7474
# - /tmp/sync-test.out
75+
tags:
76+
- synchronize

0 commit comments

Comments
 (0)