summaryrefslogtreecommitdiff
path: root/test/integration/targets/tower_host/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/tower_host/tasks/main.yml')
-rw-r--r--test/integration/targets/tower_host/tasks/main.yml45
1 files changed, 0 insertions, 45 deletions
diff --git a/test/integration/targets/tower_host/tasks/main.yml b/test/integration/targets/tower_host/tasks/main.yml
deleted file mode 100644
index cda418f94f..0000000000
--- a/test/integration/targets/tower_host/tasks/main.yml
+++ /dev/null
@@ -1,45 +0,0 @@
-- name: create a tempdir for hostvars
- shell: mktemp -d
- register: tempdir
-
-- name: write a file w/ hostvars
- lineinfile:
- dest: "{{ tempdir.stdout }}/vars"
- line: '{"foo": "bar"}'
- create: true
-
-- name: Create a Host
- tower_host:
- name: "some-host"
- inventory: "Demo Inventory"
- state: present
- variables: "@{{ tempdir.stdout }}/vars"
- register: result
-
-- assert:
- that:
- - "result is changed"
-
-- name: Delete a Host
- tower_host:
- name: "some-host"
- inventory: "Demo Inventory"
- state: absent
- register: result
-
-- assert:
- that:
- - "result is changed"
-
-- name: Check module fails with correct msg
- tower_host:
- name: test-host
- description: Host Description
- inventory: test-non-existing-inventory
- state: present
- register: result
- ignore_errors: true
-
-- assert:
- that:
- - "result.msg =='Failed to update host, inventory not found: The requested object could not be found.'"