mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
a130549ead
* add nxos_aaa_server IT * add nxos_aaa_server_host ITs * Add nxos_gir IT * Add nxos_gir_profile_management IT * add newly added tests to nxos.yaml * fix nxos.yaml indentation * fix indentation again * skip nxos_git_profile_management IT for titanium * change idempotency to non-idempotency check
103 lines
2.3 KiB
YAML
103 lines
2.3 KiB
YAML
#---
|
|
#- debug: msg="START TRANSPORT:{{ connection.transport }} nxos_gir sanity test"
|
|
#
|
|
#- name: "Setup"
|
|
# nxos_gir: &setup
|
|
# system_mode_maintenance: false
|
|
# provider: "{{ connection }}"
|
|
# ignore_errors: yes
|
|
#
|
|
#- block:
|
|
# - name: "Put system in maintenance mode"
|
|
# nxos_gir: &configure_system_mode_maintenance
|
|
# system_mode_maintenance: true
|
|
# provider: "{{ connection }}"
|
|
# register: result
|
|
#
|
|
# - assert: &true
|
|
# that:
|
|
# - "result.changed == true"
|
|
#
|
|
# - name: "Check Idempotence"
|
|
# nxos_gir: *configure_system_mode_maintenance
|
|
# register: result
|
|
#
|
|
# - assert: &false
|
|
# that:
|
|
# - "result.changed == false"
|
|
#
|
|
# - name: "Put system back in normal mode"
|
|
# nxos_gir: *setup
|
|
# register: result
|
|
#
|
|
# - assert: *true
|
|
#
|
|
# - name: "Check Idempotence"
|
|
# nxos_gir: *setup
|
|
# register: result
|
|
#
|
|
# - assert: *false
|
|
#
|
|
# - name: "Put system in maintenance mode with reload reset reason"
|
|
# nxos_gir:
|
|
# system_mode_maintenance: true
|
|
# system_mode_maintenance_on_reload_reset_reason: manual_reload
|
|
# register: result
|
|
#
|
|
# - assert: *true
|
|
#
|
|
# - name: "Remove reload reason"
|
|
# nxos_gir: &remove_reason
|
|
# system_mode_maintenance_on_reload_reset_reason: manual_reload
|
|
# state: absent
|
|
# provider: "{{ connection }}"
|
|
# register: result
|
|
#
|
|
# - assert: *true
|
|
#
|
|
# - name: "Check Idempotence"
|
|
# nxos_gir: *remove_reason
|
|
# register: result
|
|
#
|
|
# - assert: *false
|
|
#
|
|
# - name: "Put system in maintenance mode with timeout"
|
|
# nxos_gir:
|
|
# system_mode_maintenance: true
|
|
# system_mode_maintenance_timeout: 30
|
|
# register: result
|
|
#
|
|
# - assert: *true
|
|
#
|
|
# - name: "Remove maintenance mode timeout"
|
|
# nxos_gir: &remove_timeout
|
|
# system_mode_maintenance_timeout: 30
|
|
# state: absent
|
|
# provider: "{{ connection }}"
|
|
# register: result
|
|
#
|
|
# - assert: *true
|
|
#
|
|
# - name: "Check Idempotence"
|
|
# nxos_gir: *remove_timeout
|
|
# register: result
|
|
#
|
|
# - assert: *false
|
|
#
|
|
# - name: "Put system back in normal mode"
|
|
# nxos_gir: *setup
|
|
# register: result
|
|
#
|
|
# - assert: *true
|
|
#
|
|
# rescue:
|
|
#
|
|
# - debug: msg="TRANSPORT:{{ connection.transport }} nxos_gir failure detected"
|
|
#
|
|
# always:
|
|
#
|
|
# - name: "Put system back in normal mode"
|
|
# nxos_gir: *setup
|
|
# register: result
|
|
#
|
|
# - debug: msg="END TRANSPORT:{{ connection.transport }} nxos_gir sanity test"
|