summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/nxos_logging
diff options
context:
space:
mode:
authorGanesh Nalawade <ganesh634@gmail.com>2018-01-10 16:58:49 +0100
committerGitHub <noreply@github.com>2018-01-10 16:58:49 +0100
commitc53dcd19820f897d654ba07dd66a679f0e5b7d12 (patch)
tree31e43da83c96dcd65cce817edfd78b593f1a61fa /test/integration/targets/nxos_logging
parentaci_aaa_user_certificate: Add a certificate to an AAA user (#34602) (diff)
downloadansible-c53dcd19820f897d654ba07dd66a679f0e5b7d12.tar.xz
ansible-c53dcd19820f897d654ba07dd66a679f0e5b7d12.zip
Cleanup net integration test case for network modules (#34684)
* Remove platform agnostic net_* test cases. * Add minimal platform agnostic test cases to individual platform-specific test cases
Diffstat (limited to 'test/integration/targets/nxos_logging')
-rw-r--r--test/integration/targets/nxos_logging/tests/common/net_logging.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/integration/targets/nxos_logging/tests/common/net_logging.yaml b/test/integration/targets/nxos_logging/tests/common/net_logging.yaml
new file mode 100644
index 0000000000..5d78f1a8a5
--- /dev/null
+++ b/test/integration/targets/nxos_logging/tests/common/net_logging.yaml
@@ -0,0 +1,36 @@
+---
+- debug: msg="START nxos common/net_logging.yaml on connection={{ ansible_connection }}"
+
+# Add minimal testcase to check args are passed correctly to
+# implementation module and module run is successful.
+
+- name: Delete/disable console logging - setup
+ net_logging:
+ dest: console
+ dest_level: 0
+ state: absent
+ provider: "{{ connection }}"
+ register: result
+
+- name: Set up console logging using platform agnostic module
+ net_logging:
+ dest: console
+ dest_level: 0
+ state: present
+ provider: "{{ connection }}"
+ register: result
+
+- assert:
+ that:
+ - 'result.changed == true'
+ - '"logging console 0" in result.commands'
+
+- name: Delete/disable console logging - teardown
+ net_logging:
+ dest: console
+ dest_level: 0
+ state: absent
+ provider: "{{ connection }}"
+ register: result
+
+- debug: msg="END nxos common/net_logging.yaml on connection={{ ansible_connection }}"