summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_user
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/vyos_user')
-rw-r--r--test/integration/targets/vyos_user/tasks/cli.yaml11
-rw-r--r--test/integration/targets/vyos_user/tests/cli/basic.yaml2
2 files changed, 11 insertions, 2 deletions
diff --git a/test/integration/targets/vyos_user/tasks/cli.yaml b/test/integration/targets/vyos_user/tasks/cli.yaml
index d675462dd0..890d3acf3e 100644
--- a/test/integration/targets/vyos_user/tasks/cli.yaml
+++ b/test/integration/targets/vyos_user/tasks/cli.yaml
@@ -4,12 +4,19 @@
paths: "{{ role_path }}/tests/cli"
patterns: "{{ testcase }}.yaml"
register: test_cases
+ delegate_to: localhost
- name: set test_items
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
-- name: run test case
- include: "{{ test_case_to_run }}"
+- name: run test case (connection=network_cli)
+ include: "{{ test_case_to_run }} ansible_connection=network_cli"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
+
+- name: run test case (connection=local)
+ include: "{{ test_case_to_run }} ansible_connection=local"
+ with_first_found: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
diff --git a/test/integration/targets/vyos_user/tests/cli/basic.yaml b/test/integration/targets/vyos_user/tests/cli/basic.yaml
index dbd78ee117..346ecda33a 100644
--- a/test/integration/targets/vyos_user/tests/cli/basic.yaml
+++ b/test/integration/targets/vyos_user/tests/cli/basic.yaml
@@ -1,4 +1,6 @@
---
+- debug: msg="START cli/basic.yaml on connection={{ ansible_connection }}"
+
- name: Setup
vyos_config:
lines: