OCPPLUGIN made some fixes in API, so test suites should also modify input data to... 75/40575/1
authorjason <jason.cw.yuan@foxconn.com>
Tue, 21 Jun 2016 03:22:39 +0000 (11:22 +0800)
committerjason <jason.cw.yuan@foxconn.com>
Tue, 21 Jun 2016 03:22:39 +0000 (11:22 +0800)
OCPPLUGIN patch: https://git.opendaylight.org/gerrit/#/c/40422/

Change-Id: Ia4a171d4252ad4aef8b3e16352c75f70d2c73317
Signed-off-by: jason <jason.cw.yuan@foxconn.com>
csit/suites/ocpplugin/basic/010__ocp_get.robot
csit/suites/ocpplugin/scalability/010__ocp_scalability.robot

index 69a91e62703f1154438028efbb6c98924f89cbd5..443d1503171c4b0f7159c3acafffdbd8c47c13cb 100755 (executable)
@@ -26,6 +26,6 @@ Check if node exist
 Get param from emulator
     [Documentation]    OCPPLUGIN get param
     [Tags]    OCPPLUGIN get
-    ${resp}    Post Request    session    ${REST_GET_PARAM}    data={"input":{"nodeId":"ocp:TST-100","obj":[{"id":"ALL","param":[{"name":"ALL"}]}]}}
+    ${resp}    Post Request    session    ${REST_GET_PARAM}    data={"input":{"nodeId":"ocp:TST-100","objId":"ALL","paramName":"ALL"}}
     Should Be Equal As Strings    ${resp.status_code}    200
     Stop Emulator And Exit    ${mininet_conn_id}
index 8cec48648fb12857d78ff415c7af628b5cc2ad88..140864957c6e63da5631c676b886399b2cd1d878 100755 (executable)
@@ -33,6 +33,6 @@ Get param from emulators
     [Tags]    OCPPLUGIN get
     ${NODE_AMOUNT}=    Convert To Integer    ${NODE_AMOUNT}
     : FOR    ${NODE_NUM}    IN RANGE    1    ${NODE_AMOUNT+1}
-    \    ${resp}    Post Request    session    ${REST_GET_PARAM}    data={"input":{"nodeId":"ocp:TST-${NODE_NUM}","obj":[{"id":"ALL","param":[{"name":"ALL"}]}]}}
+    \    ${resp}    Post Request    session    ${REST_GET_PARAM}    data={"input":{"nodeId":"ocp:TST-${NODE_NUM}","objId":"ALL","paramName":"ALL"}}
     \    Should Be Equal As Strings    ${resp.status_code}    200
     Stop Emulator And Exit    ${mininet_conn_id}
\ No newline at end of file