diff options
author | saichint <saichint@cisco.com> | 2018-06-13 20:47:33 -0700 |
---|---|---|
committer | Trishna Guha <trishnaguha17@gmail.com> | 2018-06-14 09:17:33 +0530 |
commit | 79dd206b3e94c60f2e1dfad47bdfbf2073fbeb97 (patch) | |
tree | b7baf918725bef38323d863162016ebcdbabf55d /test/integration/targets/nxos_rpm | |
parent | 32c191ee9c886fe727780bf94eaa8c64a588bc26 (diff) | |
download | ansible-79dd206b3e94c60f2e1dfad47bdfbf2073fbeb97.tar.gz |
fix reload smu issue (#41270)
* fix reload smu issue
* review comments
Diffstat (limited to 'test/integration/targets/nxos_rpm')
-rw-r--r-- | test/integration/targets/nxos_rpm/tests/common/sanity.yaml | 62 |
1 files changed, 60 insertions, 2 deletions
diff --git a/test/integration/targets/nxos_rpm/tests/common/sanity.yaml b/test/integration/targets/nxos_rpm/tests/common/sanity.yaml index d570249f5b..700ebbba4a 100644 --- a/test/integration/targets/nxos_rpm/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_rpm/tests/common/sanity.yaml @@ -22,7 +22,7 @@ - block: - name: Install smu RPM nxos_rpm: &tsmurpm - pkg: "nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm" + pkg: "nxos.sample-n9k_ALL-1.0.0-7.0.3.I6.1.lib32_n9000.rpm" register: result - assert: &true1 @@ -39,7 +39,7 @@ - name: Remove smu RPM nxos_rpm: &rsmurpm - pkg: "nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm" + pkg: "nxos.sample-n9k_ALL-1.0.0-7.0.3.I6.1.lib32_n9000.rpm" state: absent register: result @@ -92,4 +92,62 @@ when: sdk_run +- block: + - name: Install reload smu RPM + nxos_rpm: &trsmurpm + pkg: "nxos.CSCve91311-n9k_ALL-1.0.0-7.0.3.I6.1.lib32_n9000.rpm" + register: result + + - assert: *true1 + + - name: Wait for device to come back up + wait_for: + port: 22 + state: started + timeout: 600 + delay: 60 + host: "{{ inventory_hostname_short }}" + + - name: Continue with install reload smu RPM + nxos_rpm: *trsmurpm + register: result + + - assert: *true1 + + - name: Check Idempotence + nxos_rpm: *trsmurpm + register: result + + - assert: *false1 + + - name: Remove reload smu RPM + nxos_rpm: &rrsmurpm + pkg: "nxos.CSCve91311-n9k_ALL-1.0.0-7.0.3.I6.1.lib32_n9000.rpm" + state: absent + register: result + + - assert: *true1 + + - name: Wait for device to come back up + wait_for: + port: 22 + state: started + timeout: 600 + delay: 60 + host: "{{ inventory_hostname_short }}" + + - name: Continue with remove reload smu RPM + nxos_rpm: *rrsmurpm + register: result + + - assert: *true1 + + - name: Check Idempotence + nxos_rpm: *rrsmurpm + register: result + + - assert: *false1 + + when: smu_run + - debug: msg="END connection={{ ansible_connection }} nxos_rpm sanity test" |