diff options
author | Ansible Core Team <info@ansible.com> | 2020-03-09 09:40:36 +0000 |
---|---|---|
committer | Ansible Core Team <info@ansible.com> | 2020-03-09 09:40:36 +0000 |
commit | 774498628b2c2ce1fc1e02a94f141f1e17e94cd1 (patch) | |
tree | e3620cde1c5f6cc7a735b87f82c6977d5a7a7e6a /test/integration/targets/hcloud_route | |
parent | 6ea22818476eb22d761a958b27e01ee2dc1b9a55 (diff) | |
download | ansible-774498628b2c2ce1fc1e02a94f141f1e17e94cd1.tar.gz |
Migrated to hetzner.hcloud
Diffstat (limited to 'test/integration/targets/hcloud_route')
-rw-r--r-- | test/integration/targets/hcloud_route/aliases | 2 | ||||
-rw-r--r-- | test/integration/targets/hcloud_route/defaults/main.yml | 5 | ||||
-rw-r--r-- | test/integration/targets/hcloud_route/tasks/main.yml | 99 |
3 files changed, 0 insertions, 106 deletions
diff --git a/test/integration/targets/hcloud_route/aliases b/test/integration/targets/hcloud_route/aliases deleted file mode 100644 index 18dc30b6c3..0000000000 --- a/test/integration/targets/hcloud_route/aliases +++ /dev/null @@ -1,2 +0,0 @@ -cloud/hcloud -shippable/hcloud/group1 diff --git a/test/integration/targets/hcloud_route/defaults/main.yml b/test/integration/targets/hcloud_route/defaults/main.yml deleted file mode 100644 index 62156272ad..0000000000 --- a/test/integration/targets/hcloud_route/defaults/main.yml +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright: (c) 2019, Hetzner Cloud GmbH <info@hetzner-cloud.de> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ---- -hcloud_prefix: "tests" -hcloud_network_name: "{{hcloud_prefix}}-routes" diff --git a/test/integration/targets/hcloud_route/tasks/main.yml b/test/integration/targets/hcloud_route/tasks/main.yml deleted file mode 100644 index 1894d677f3..0000000000 --- a/test/integration/targets/hcloud_route/tasks/main.yml +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright: (c) 2019, Hetzner Cloud GmbH <info@hetzner-cloud.de> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ---- -- name: setup - hcloud_network: - name: "{{ hcloud_network_name }}" - ip_range: "10.0.0.0/8" - state: present - register: network -- name: verify setup - assert: - that: - - network is success - -- name: test missing required parameters on create route - hcloud_route: - state: present - register: result - ignore_errors: yes -- name: verify fail test missing required parameters on create route - assert: - that: - - result is failed - - 'result.msg == "missing required arguments: network, destination, gateway"' - -- name: test create route with checkmode - hcloud_route: - network: "{{ hcloud_network_name }}" - destination: "10.100.1.0/24" - gateway: "10.0.1.1" - state: present - register: result - check_mode: yes -- name: verify test create route with checkmode - assert: - that: - - result is changed - -- name: test create route - hcloud_route: - network: "{{ hcloud_network_name }}" - destination: "10.100.1.0/24" - gateway: "10.0.1.1" - state: present - register: route -- name: verify create route - assert: - that: - - route is changed - - route.hcloud_route.network == "{{ hcloud_network_name }}" - - route.hcloud_route.destination == "10.100.1.0/24" - - route.hcloud_route.gateway == "10.0.1.1" - -- name: test create route idempotency - hcloud_route: - network: "{{ hcloud_network_name }}" - destination: "10.100.1.0/24" - gateway: "10.0.1.1" - state: present - register: result -- name: verify create route idempotency - assert: - that: - - result is not changed - -- name: test fail create route with wrong gateway - hcloud_route: - network: "{{ hcloud_network_name }}" - destination: "10.100.1.0/24" - gateway: "10.0.1.2" - state: present - register: route - ignore_errors: yes -- name: verfiy fail create route with wrong gateway - assert: - that: - - route is failed - -- name: test absent route - hcloud_route: - network: "{{ hcloud_network_name }}" - destination: "10.100.1.0/24" - gateway: "10.0.1.1" - state: absent - register: result -- name: verify test absent route - assert: - that: - - result is changed - -- name: cleanup - hcloud_network: - name: "{{hcloud_network_name}}" - state: absent - register: result -- name: verify cleanup - assert: - that: - - result is success |