From 37670b09f59c6fd811fbc56000319f86006e8ee1 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Wed, 2 Aug 2017 12:46:15 +0530 Subject: [PATCH] Fix junos_linkagg integration test failure (#27621) Fixes #27574 --- .../junos_linkagg/tests/netconf/basic.yaml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/test/integration/targets/junos_linkagg/tests/netconf/basic.yaml b/test/integration/targets/junos_linkagg/tests/netconf/basic.yaml index 8afb9250272..8c9a9d82378 100644 --- a/test/integration/targets/junos_linkagg/tests/netconf/basic.yaml +++ b/test/integration/targets/junos_linkagg/tests/netconf/basic.yaml @@ -126,17 +126,10 @@ provider: "{{ netconf }}" register: result -- name: Get running configuration - junos_rpc: - rpc: get-configuration - provider: "{{ netconf }}" - register: config - - assert: that: - "result.changed == true" - - "'' in config.xml" - - "'+ disable;' in result.diff.prepared" + - result.diff.prepared | search("\+ *disable") - name: Enable linkagg interface junos_linkagg: @@ -145,16 +138,10 @@ provider: "{{ netconf }}" register: result -- name: Get running configuration - junos_rpc: - rpc: get-configuration - provider: "{{ netconf }}" - register: config - - assert: that: - "result.changed == true" - - "'' not in config.xml" + - result.diff.prepared | search("\- *disable") - name: Deactivate linkagg junos_linkagg: