Browse code

Fix and reenable hcloud_network_info tests

Lukas Kämmerling authored on 2019/09/27 15:06:17
Showing 2 changed files
... ...
@@ -1,3 +1,2 @@
1 1
 cloud/hcloud
2 2
 shippable/hcloud/group1
3
-disabled # See: https://github.com/ansible/ansible/issues/62606
... ...
@@ -53,8 +53,7 @@
53 53
   assert:
54 54
     that:
55 55
       - hcloud_network.hcloud_network_info | selectattr('name','equalto','{{ hcloud_network_name }}') | list | count >= 1
56
-      - hcloud_network.hcloud_network_info[0].subnetworks | list | count >= 1
57
-      - hcloud_network.hcloud_network_info[0].routes | list | count >= 1
56
+
58 57
 
59 58
 - name: test gather hcloud network info with correct label selector
60 59
   hcloud_network_info:
... ...
@@ -82,6 +81,8 @@
82 82
   assert:
83 83
     that:
84 84
       - hcloud_network.hcloud_network_info | selectattr('name','equalto','{{ hcloud_network_name }}') | list | count == 1
85
+      - hcloud_network.hcloud_network_info[0].subnetworks | list | count >= 1
86
+      - hcloud_network.hcloud_network_info[0].routes | list | count >= 1
85 87
 
86 88
 - name: test gather hcloud network info with wrong name
87 89
   hcloud_network_info:
... ...
@@ -113,4 +114,4 @@
113 113
 - name: cleanup
114 114
   hcloud_network:
115 115
     name: "{{ hcloud_network_name }}"
116
-    state: absent
116
+    state: absent
117 117
\ No newline at end of file