diff options
Diffstat (limited to 'test/integration/targets/tower_receive/tasks/main.yml')
-rw-r--r-- | test/integration/targets/tower_receive/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/targets/tower_receive/tasks/main.yml b/test/integration/targets/tower_receive/tasks/main.yml new file mode 100644 index 0000000000..9c22e6f7a7 --- /dev/null +++ b/test/integration/targets/tower_receive/tasks/main.yml @@ -0,0 +1,17 @@ +- name: Export all Tower assets + tower_receive: + all: True + register: result + +- assert: + that: + - "result is successful" + +- name: Extract names from output + set_fact: + object_names: "{{ result.assets | map(attribute='name') | list }}" + +- assert: + that: + - "result is successful" + - "'Default' in object_names" |