summaryrefslogtreecommitdiff
path: root/test/integration/targets/exos_config/tests/common/sysname.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/exos_config/tests/common/sysname.yaml')
-rw-r--r--test/integration/targets/exos_config/tests/common/sysname.yaml35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/integration/targets/exos_config/tests/common/sysname.yaml b/test/integration/targets/exos_config/tests/common/sysname.yaml
deleted file mode 100644
index 26ef19ee51..0000000000
--- a/test/integration/targets/exos_config/tests/common/sysname.yaml
+++ /dev/null
@@ -1,35 +0,0 @@
----
-- debug: msg="START common/sysname.yaml"
-
-- name: Get intial SysName
- exos_command:
- commands: show switch | grep SysName
- register: sysname_init
-
-- name: configure SNMP system name
- exos_config:
- lines: configure snmp sysName "{{ inventory_hostname }}"
- register: result
-- assert:
- that:
- - "result.commands[0] is search('configure')"
- - "result.changed == True"
-
-- name: Idempotency of SNMP system name configuration
- exos_config:
- lines: configure snmp sysName "{{ inventory_hostname }}"
- register: result
-- assert:
- that:
- - "result.changed == False"
-- set_fact: old_sysname='{{ sysname_init.stdout[0] | regex_search('([^\s]+$)') }}'
-
-- name: Restore inital sysName
- exos_config:
- lines: 'configure snmp sysName {{ old_sysname }}'
-
-- name: Save the configuration to startup
- exos_config:
- save_when: modified
-
-- debug: msg="END common/sysname.yaml"