From 91c762c1cbd1457177288dc10e5dfc1edf71107a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 29 Jun 2020 09:04:55 +0200 Subject: [PATCH] Start of hcloud_load_balancer_service --- .../tasks/main.yml | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/tests/integration/targets/hcloud_load_balancer_service/tasks/main.yml b/tests/integration/targets/hcloud_load_balancer_service/tasks/main.yml index 17b907f..5c75721 100644 --- a/tests/integration/targets/hcloud_load_balancer_service/tasks/main.yml +++ b/tests/integration/targets/hcloud_load_balancer_service/tasks/main.yml @@ -17,6 +17,7 @@ hcloud_load_balancer_service: load_balancer: "{{hcloud_load_balancer_name}}" protocol: "http" + listen_port: 80 state: present register: result check_mode: yes @@ -29,6 +30,7 @@ hcloud_load_balancer_service: load_balancer: "{{hcloud_load_balancer_name}}" protocol: "http" + listen_port: 80 state: present register: load_balancer_service - name: verify create load_balancer service @@ -42,9 +44,9 @@ - name: test create load_balancer service idempotency hcloud_load_balancer_service: - type: "server" load_balancer: "{{hcloud_load_balancer_name}}" - server: "{{hcloud_server_name}}" + protocol: "http" + listen_port: 80 state: present register: load_balancer_service - name: verify create load_balancer service idempotency @@ -54,9 +56,9 @@ - name: test absent load_balancer service hcloud_load_balancer_service: - type: "server" load_balancer: "{{hcloud_load_balancer_name}}" - server: "{{hcloud_server_name}}" + protocol: "http" + listen_port: 80 state: absent register: result - name: verify test absent load_balancer service @@ -73,13 +75,3 @@ assert: that: - result is success - -- name: cleanup - hcloud_server: - name: "{{hcloud_server_name}}" - state: absent - register: result -- name: verify cleanup - assert: - that: - - result is success