Organizing karaf suites
[integration/test.git] / test / csit / suites / karaf-compatible / 020__MD_SAL_NSF_OF13 / 020__restconf_statistics.txt
diff --git a/test/csit/suites/karaf-compatible/020__MD_SAL_NSF_OF13/020__restconf_statistics.txt b/test/csit/suites/karaf-compatible/020__MD_SAL_NSF_OF13/020__restconf_statistics.txt
new file mode 100644 (file)
index 0000000..63f2886
--- /dev/null
@@ -0,0 +1,33 @@
+*** Settings ***
+Documentation     Test suite for RESTCONF statistics
+Suite Setup       Create Session   session   http://${CONTROLLER}:${RESTCONFPORT}   auth=${AUTH}   headers=${HEADERS_XML}
+Suite Teardown    Delete All Sessions
+Library           Collections
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+
+*** Variables ***
+${REST_CONTEXT}    /restconf/operational/opendaylight-inventory:nodes
+
+*** Test Cases ***     
+Get Stats for node 1
+    [Documentation]    Get the stats for a node
+        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1
+        Should Be Equal As Strings   ${resp.status_code}    200
+        Should Contain     ${resp.content}      flow-capable-node-connector-statistics
+        Should Contain     ${resp.content}      flow-table-statistics
+
+Get Stats for node 2
+    [Documentation]    Get the stats for a node
+        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
+        Should Be Equal As Strings   ${resp.status_code}    200
+        Should Contain     ${resp.content}      flow-capable-node-connector-statistics
+        Should Contain     ${resp.content}      flow-table-statistics
+
+Get Stats for node 3
+    [Documentation]    Get the stats for a node
+       ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:3
+       Should Be Equal As Strings   ${resp.status_code}    200
+       Should Contain     ${resp.content}      flow-capable-node-connector-statistics  
+       Should Contain     ${resp.content}      flow-table-statistics