summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_hostname
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/targets/vyos_hostname')
-rw-r--r--tests/integration/targets/vyos_hostname/tasks/httpapi.yaml2
-rw-r--r--tests/integration/targets/vyos_hostname/tests/httpapi/gathered.yaml4
-rw-r--r--tests/integration/targets/vyos_hostname/tests/httpapi/replaced.yaml4
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/targets/vyos_hostname/tasks/httpapi.yaml b/tests/integration/targets/vyos_hostname/tasks/httpapi.yaml
index 4147e6d..0ed3e42 100644
--- a/tests/integration/targets/vyos_hostname/tasks/httpapi.yaml
+++ b/tests/integration/targets/vyos_hostname/tasks/httpapi.yaml
@@ -9,7 +9,7 @@
- name: Set test_items
ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
+ test_items: "{{ test_cases.files | map(attribute='path') | list | sort }}"
- name: Run test case (connection=httpapi)
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
diff --git a/tests/integration/targets/vyos_hostname/tests/httpapi/gathered.yaml b/tests/integration/targets/vyos_hostname/tests/httpapi/gathered.yaml
index dfc8896..e8e0973 100644
--- a/tests/integration/targets/vyos_hostname/tests/httpapi/gathered.yaml
+++ b/tests/integration/targets/vyos_hostname/tests/httpapi/gathered.yaml
@@ -2,9 +2,9 @@
- debug:
msg: START vyos_hostname gathered integration tests on connection={{ ansible_connection }}
-- include_tasks: _populate_config.yaml
-
- block:
+ - include_tasks: _populate_config.yaml
+
- name: Gather hostname configuration
register: result
vyos.rest.vyos_hostname:
diff --git a/tests/integration/targets/vyos_hostname/tests/httpapi/replaced.yaml b/tests/integration/targets/vyos_hostname/tests/httpapi/replaced.yaml
index b4e318d..0d418e2 100644
--- a/tests/integration/targets/vyos_hostname/tests/httpapi/replaced.yaml
+++ b/tests/integration/targets/vyos_hostname/tests/httpapi/replaced.yaml
@@ -2,9 +2,9 @@
- debug:
msg: START vyos_hostname replaced integration tests on connection={{ ansible_connection }}
-- include_tasks: _populate_config.yaml
-
- block:
+ - include_tasks: _populate_config.yaml
+
- name: Replace hostname configuration
register: result
vyos.rest.vyos_hostname: &id001