From 847fab49839710dc855396211baf83cc4f6a354a Mon Sep 17 00:00:00 2001 From: rohitthakur2590 Date: Tue, 30 Jan 2024 15:24:55 +0530 Subject: [PATCH] update tests Signed-off-by: rohitthakur2590 --- .../targets/junos_netconf/tests/cli/commit_conf.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/targets/junos_netconf/tests/cli/commit_conf.yaml b/tests/integration/targets/junos_netconf/tests/cli/commit_conf.yaml index a9f854b7..388ed003 100644 --- a/tests/integration/targets/junos_netconf/tests/cli/commit_conf.yaml +++ b/tests/integration/targets/junos_netconf/tests/cli/commit_conf.yaml @@ -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 @@ -22,6 +26,8 @@ hostname: testConfirmCommitAppliance - name: Gather hostname + vars: + ansible_connection: 'ansible.netcommon.netconf' register: get_hostname junipernetworks.junos.junos_hostname: state: gathered @@ -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 @@ -47,5 +55,7 @@ - "{} == get_hostname.gathered" - name: Clenup + vars: + ansible_connection: 'ansible.netcommon.netconf' junipernetworks.junos.junos_hostname: state: deleted