Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: rohitthakur2590 <[email protected]>
  • Loading branch information
rohitthakur2590 committed Jan 30, 2024
1 parent 011bcf6 commit 847fab4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/targets/junos_netconf/tests/cli/commit_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
msg: START ios_cliconf integration tests on connection={{ ansible_connection }}

- name: Reset
vars:
ansible_connection: 'ansible.netcommon.netconf'
junipernetworks.junos.junos_hostname:
state: deleted

- name: Verify hostname changed immediately
vars:
ansible_connection: 'ansible.netcommon.netconf'
register: get_hostname
junipernetworks.junos.junos_hostname:
state: gathered
Expand All @@ -22,6 +26,8 @@
hostname: testConfirmCommitAppliance

- name: Gather hostname
vars:
ansible_connection: 'ansible.netcommon.netconf'
register: get_hostname
junipernetworks.junos.junos_hostname:
state: gathered
Expand All @@ -37,6 +43,8 @@
delegate_to: localhost

- name: Verify hostname change is persistent even after timeout
vars:
ansible_connection: 'ansible.netcommon.netconf'
register: get_hostname
junipernetworks.junos.junos_hostname:
state: gathered
Expand All @@ -47,5 +55,7 @@
- "{} == get_hostname.gathered"

- name: Clenup
vars:
ansible_connection: 'ansible.netcommon.netconf'
junipernetworks.junos.junos_hostname:
state: deleted

0 comments on commit 847fab4

Please sign in to comment.