From 4594b5abe249bc274abcf97ceb791a936cbdd994 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Mih=C3=A1lek?= Date: Tue, 2 Aug 2016 13:12:16 +0200 Subject: [PATCH] Added check to verify that configuration of SXP was pushed into into ODL. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ie4df14964310a4cfd4a69c2d9528c4f5541f0ebf Signed-off-by: Martin Mihálek --- csit/libraries/SxpLib.robot | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/csit/libraries/SxpLib.robot b/csit/libraries/SxpLib.robot index bcfb096062..1462c51685 100644 --- a/csit/libraries/SxpLib.robot +++ b/csit/libraries/SxpLib.robot @@ -226,10 +226,16 @@ Setup Topology Complex Add Binding 10 10.10.0.0/16 127.0.0.1 Add Binding 10 10.0.0.0/8 127.0.0.1 +Verify Snapshot Was Pushed + [Arguments] ${snapshot_string}=22-sxp-controller-one-node.xml + [Documentation] Will succeed if the ${snapshot_string} is found in the karaf logs + ${output} Run Command On Controller ${ODL_SYSTEM_IP} cat ${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log* | grep -c 'Successfully pushed configuration snapshot.*${snapshot_string}' + Should Not Be Equal As Strings ${output} 0 + Setup SXP Session [Documentation] Create session to Controller Verify Feature Is Installed odl-sxp-controller - Wait Until Keyword Succeeds 20 10 Check Karaf Log Has Messages Successfully pushed configuration snapshot 22-sxp-controller-one-node.xml + Wait Until Keyword Succeeds 20 10 Verify Snapshot Was Pushed Create Session session url=http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} ${resp} RequestsLibrary.Get Request session ${MODULES_API} Should Be Equal As Strings ${resp.status_code} 200 -- 2.36.6