X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=csit%2Flibraries%2FNicKeywords.robot;h=bea1085fc998826d730044314ceff16df14f5004;hb=8040291076dc9f63bdb87ee727a5cf97abe87fce;hp=f2c90a52da02f5e7d46d2de71349b8ad7fe39e42;hpb=5fbd3bce206b2b7b4d1b85f9a5aeb2e6aaee13e8;p=integration%2Ftest.git diff --git a/csit/libraries/NicKeywords.robot b/csit/libraries/NicKeywords.robot index f2c90a52da..bea1085fc9 100644 --- a/csit/libraries/NicKeywords.robot +++ b/csit/libraries/NicKeywords.robot @@ -6,8 +6,8 @@ Library Collections Library json Library RequestsLibrary Variables ../variables/Variables.py -Resource ./Utils.robot -Resource Scalability.robot +Resource Utils.robot +Resource MininetKeywords.robot *** Variables *** ${switches} 2 @@ -34,35 +34,35 @@ Start NIC VTN Rest Test Suite Stop NIC VTN Rest Test Suite [Documentation] Stop Nic VTN Renderer Test Suite - Stop Mininet ${mininet_conn_id} + Stop Mininet And Exit ${mininet_conn_id} Fetch Intent List [Documentation] Check if VTN Renderer feature is installed. - ${resp}= RequestsLibrary.Get session ${INTENTS} + ${resp}= RequestsLibrary.Get Request session ${INTENTS} Should Be Equal As Strings ${resp.status_code} 200 Add Intent Using RestConf [Arguments] ${intent_id} ${intent_data} [Documentation] Create a intent with specified parameters. - ${resp}= RequestsLibrary.put session ${REST_CONTEXT_INTENT}/${intent_id} data=${intent_data} + ${resp}= RequestsLibrary.put Request session ${REST_CONTEXT_INTENT}/${intent_id} data=${intent_data} Should Be Equal As Strings ${resp.status_code} 200 Verify Intent Using RestConf [Arguments] ${intent_id} [Documentation] Verify If intent is created. - ${resp}= RequestsLibrary.Get session ${REST_CONTEXT_INTENT}/${intent_id} + ${resp}= RequestsLibrary.Get Request session ${REST_CONTEXT_INTENT}/${intent_id} Should Be Equal As Strings ${resp.status_code} 200 Update Intent Using RestConf [Arguments] ${intent_id} ${intent_data} [Documentation] Update a intent with specified parameters. - ${resp}= RequestsLibrary.put session ${REST_CONTEXT_INTENT}/${intent_id} data=${intent_data} + ${resp}= RequestsLibrary.put Request session ${REST_CONTEXT_INTENT}/${intent_id} data=${intent_data} Should Be Equal As Strings ${resp.status_code} 200 Delete Intent Using RestConf [Arguments] ${intent_id} [Documentation] Delete a intent with specified parameters. - ${resp}= RequestsLibrary.Delete session ${REST_CONTEXT_INTENT}/${intent_id} + ${resp}= RequestsLibrary.Delete Request session ${REST_CONTEXT_INTENT}/${intent_id} Should Be Equal As Strings ${resp.status_code} 200 Add Intent From Karaf Console @@ -80,8 +80,9 @@ Remove Intent From Karaf Console [Documentation] Removes an intent from the controller via the provided intent id. ${output}= Issue Command On Karaf Console intent:remove ${id} Should Contain ${output} Intent successfully removed - ${output}= Issue Command On Karaf Console log:display |grep "Removed VTN configuration associated with the deleted Intent: " - Should Contain ${output} Removed VTN configuration associated with the deleted Intent ${id} + ${output}= Issue Command On Karaf Console log:display | grep "Removed VTN configuration associated with the deleted Intent: " + #The below log statements has changed an info to trace mode in Beryllium, and in future release will roll back in same. + #Should Contain ${output} Removed VTN configuration associated with the deleted Intent ${id} Mininet Ping Should Succeed [Arguments] ${host1} ${host2} @@ -93,6 +94,6 @@ Mininet Ping Should Succeed Mininet Ping Should Not Succeed [Arguments] ${host1} ${host2} [Timeout] 2 minute - Write ${host1} ping -c 10 ${host2} + Write ${host1} ping -c 3 ${host2} ${result} Read Until mininet> Should Not Contain ${result} 64 bytes