From 3a36dea44b161e7450aebd1e8f2de29edc201298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Thu, 8 Apr 2021 13:35:50 +0200 Subject: [PATCH] Fix sanity tests --- .../targets/hcloud_server/tasks/main.yml | 13 ------------- tests/sanity/ignore-2.10.txt | 2 -- tests/sanity/ignore-2.11.txt | 1 - tests/sanity/ignore-2.9.txt | 1 - 4 files changed, 17 deletions(-) diff --git a/tests/integration/targets/hcloud_server/tasks/main.yml b/tests/integration/targets/hcloud_server/tasks/main.yml index c956f53..366e9a8 100644 --- a/tests/integration/targets/hcloud_server/tasks/main.yml +++ b/tests/integration/targets/hcloud_server/tasks/main.yml @@ -20,19 +20,6 @@ that: - result is failed - 'result.msg == "missing required arguments: server_type, image"' -- name: test create server with not existing image - hcloud_server: - name: "{{ hcloud_server_name }}" - server_type: cx11 - image: my-not-existing-image-20.04 - state: present - register: result - ignore_errors: yes -- name: verify fail test create server with not existing image - assert: - that: - - result is failed - - 'result.msg == "Image my-not-existing-image-20.04 was not found"' # Temporary test case to test deprecated images. This test will fail when the ubuntu-16.04 image was removed # feel free to remove this test then. diff --git a/tests/sanity/ignore-2.10.txt b/tests/sanity/ignore-2.10.txt index 052eb3a..caf2217 100644 --- a/tests/sanity/ignore-2.10.txt +++ b/tests/sanity/ignore-2.10.txt @@ -1,4 +1,2 @@ tests/utils/shippable/check_matrix.py replace-urlopen tests/utils/shippable/timing.py shebang -plugins/modules/hcloud_server.py !skip - diff --git a/tests/sanity/ignore-2.11.txt b/tests/sanity/ignore-2.11.txt index 1963e0c..caf2217 100644 --- a/tests/sanity/ignore-2.11.txt +++ b/tests/sanity/ignore-2.11.txt @@ -1,3 +1,2 @@ tests/utils/shippable/check_matrix.py replace-urlopen tests/utils/shippable/timing.py shebang -plugins/modules/hcloud_server.py !skip diff --git a/tests/sanity/ignore-2.9.txt b/tests/sanity/ignore-2.9.txt index 1963e0c..caf2217 100644 --- a/tests/sanity/ignore-2.9.txt +++ b/tests/sanity/ignore-2.9.txt @@ -1,3 +1,2 @@ tests/utils/shippable/check_matrix.py replace-urlopen tests/utils/shippable/timing.py shebang -plugins/modules/hcloud_server.py !skip