summaryrefslogtreecommitdiff
path: root/tests/integration/targets
diff options
context:
space:
mode:
authorGaige B Paulsen <gaige@cluetrust.com>2025-02-12 17:48:57 -0500
committerGitHub <noreply@github.com>2025-02-12 22:48:57 +0000
commit6e3fdd41056aa104a49b172de16d0d770afe556c (patch)
treecda0a964d2ffbce116f8667291cf5489b36e4519 /tests/integration/targets
parent7a276a73b554a8b107944c6f2a593d49fc9e4389 (diff)
downloadvyos.vyos-6e3fdd41056aa104a49b172de16d0d770afe556c.tar.gz
vyos.vyos-6e3fdd41056aa104a49b172de16d0d770afe556c.zip
T7153: remove logging module (#393)
Diffstat (limited to 'tests/integration/targets')
-rw-r--r--tests/integration/targets/vyos_logging/aliases1
-rw-r--r--tests/integration/targets/vyos_logging/defaults/main.yaml3
-rw-r--r--tests/integration/targets/vyos_logging/tasks/cli.yaml21
-rw-r--r--tests/integration/targets/vyos_logging/tasks/main.yaml3
-rw-r--r--tests/integration/targets/vyos_logging/tests/cli/basic.yaml152
5 files changed, 0 insertions, 180 deletions
diff --git a/tests/integration/targets/vyos_logging/aliases b/tests/integration/targets/vyos_logging/aliases
deleted file mode 100644
index 8071e1f..0000000
--- a/tests/integration/targets/vyos_logging/aliases
+++ /dev/null
@@ -1 +0,0 @@
-shippable/vyos/group1
diff --git a/tests/integration/targets/vyos_logging/defaults/main.yaml b/tests/integration/targets/vyos_logging/defaults/main.yaml
deleted file mode 100644
index 9ef5ba5..0000000
--- a/tests/integration/targets/vyos_logging/defaults/main.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-testcase: "*"
-test_items: []
diff --git a/tests/integration/targets/vyos_logging/tasks/cli.yaml b/tests/integration/targets/vyos_logging/tasks/cli.yaml
deleted file mode 100644
index 35c2376..0000000
--- a/tests/integration/targets/vyos_logging/tasks/cli.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
----
-- name: Collect all cli test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/cli"
- patterns: "{{ testcase }}.yaml"
- register: test_cases
- delegate_to: localhost
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test case (connection=ansible.netcommon.network_cli)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- vars:
- ansible_connection: ansible.netcommon.network_cli
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- tags:
- - network_cli
diff --git a/tests/integration/targets/vyos_logging/tasks/main.yaml b/tests/integration/targets/vyos_logging/tasks/main.yaml
deleted file mode 100644
index 9201bd6..0000000
--- a/tests/integration/targets/vyos_logging/tasks/main.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- name: Run CLI tests
- ansible.builtin.include_tasks: cli.yaml
diff --git a/tests/integration/targets/vyos_logging/tests/cli/basic.yaml b/tests/integration/targets/vyos_logging/tests/cli/basic.yaml
deleted file mode 100644
index 708623e..0000000
--- a/tests/integration/targets/vyos_logging/tests/cli/basic.yaml
+++ /dev/null
@@ -1,152 +0,0 @@
----
-- debug: msg="START cli/basic.yaml on connection={{ ansible_connection }}"
-
-- name: set-up logging
- register: result
- vyos.vyos.vyos_logging:
- dest: console
- facility: all
- level: info
- state: present
-
-- assert:
- that:
- - result.changed == true
- - '"set system syslog console facility all level info" in result.commands'
-
-- name: set-up logging again (idempotent)
- register: result
- vyos.vyos.vyos_logging:
- dest: console
- facility: all
- level: info
- state: present
-
-- assert:
- that:
- - result.changed == false
-
-- name: file logging
- register: result
- vyos.vyos.vyos_logging:
- dest: file
- name: test
- facility: all
- level: notice
- state: present
-
-- assert:
- that:
- - result.changed == true
- - '"set system syslog file test facility all level notice" in result.commands'
-
-- name: file logging again (idempotent)
- register: result
- vyos.vyos.vyos_logging:
- dest: file
- name: test
- facility: all
- level: notice
- state: present
-
-- assert:
- that:
- - result.changed == false
-
-- name: delete logging
- register: result
- vyos.vyos.vyos_logging:
- dest: file
- name: test
- facility: all
- level: notice
- state: absent
-
-- assert:
- that:
- - result.changed == true
- - '"delete system syslog file test facility all level notice" in result.commands'
-
-- name: delete logging again (idempotent)
- register: result
- vyos.vyos.vyos_logging:
- dest: file
- name: test
- facility: all
- level: notice
- state: absent
-
-- assert:
- that:
- - result.changed == false
-
-- name: Add logging collections
- register: result
- vyos.vyos.vyos_logging:
- aggregate:
- - dest: file
- name: test1
- facility: all
- level: info
-
- - dest: file
- name: test2
- facility: news
- level: debug
- state: present
-
-- assert:
- that:
- - result.changed == true
- - '"set system syslog file test1 facility all level info" in result.commands'
- - '"set system syslog file test2 facility news level debug" in result.commands'
-
-- name: Add and remove logging collections with overrides
- register: result
- vyos.vyos.vyos_logging:
- aggregate:
- - dest: console
- facility: all
- level: info
-
- - dest: file
- name: test1
- facility: all
- level: info
- state: absent
-
- - dest: console
- facility: daemon
- level: warning
- state: present
-
-- assert:
- that:
- - result.changed == true
- - '"delete system syslog file test1 facility all level info" in result.commands'
- - '"set system syslog console facility daemon level warning" in result.commands'
-
-- name: Remove logging collections
- register: result
- vyos.vyos.vyos_logging:
- aggregate:
- - dest: console
- facility: all
- level: info
-
- - dest: console
- facility: daemon
- level: warning
-
- - dest: file
- name: test2
- facility: news
- level: debug
- state: absent
-
-- assert:
- that:
- - result.changed == true
- - '"delete system syslog console facility all level info" in result.commands'
- - '"delete system syslog console facility daemon level warning" in result.commands'
- - '"delete system syslog file test2 facility news level debug" in result.commands'