Restconf change event notification subscription basic test
[integration/test.git] / csit / libraries / TopoprocessingKeywords.robot
index 476a5fa08e909a65a89b6a9e7aa47719cf7885bf..710c76a4f3553bd6db6b28a53115baf1278848c3 100644 (file)
@@ -39,7 +39,7 @@ Setup Environment
     ${features}    Get Installed Features
     ${lines}    Get Lines Containing String    ${features}    odl-topoprocessing-framework
     ${length}    Get Length    ${lines}
-    Install a Feature    odl-openflowplugin-nsf-model-li odl-topoprocessing-framework odl-topoprocessing-network-topology odl-topoprocessing-inventory odl-bgpcep-pcep-all    timeout=100
+    Install a Feature    odl-openflowplugin-nsf-model-li odl-topoprocessing-framework odl-topoprocessing-network-topology odl-topoprocessing-inventory odl-mdsal-models odl-ovsdb-southbound-impl    timeout=120
     Run Keyword If    ${length} == 0    Wait For Karaf Log    Registering Topology Request Listener    60
     Prepare New Feature Installation
     Insert Underlay topologies
@@ -126,3 +126,12 @@ Get Installed Features
     Log    Installed features:
     Log    ${features}
     [Return]    ${features}
+
+Insert Scripting into Request
+    [Arguments]    ${request}    ${language}    ${script}
+    [Documentation]    Insert Scripting into Request under aggregation node
+    ${request}    Add Element    ${request}    ${SCRIPTING}    xpath=.//correlation/aggregation
+    ${request}    Set Element Text    ${request}    ${script}    xpath=.//correlation/aggregation/scripting/script
+    ${request}    Set Element Text    ${request}    ${language}    xpath=.//correlation/aggregation/scripting/language
+    ${request}    Element to String    ${request}
+    [Return]    ${request}