Now 'mapping' for the *_As_*_Templated keywords should be
a dictionary and the value of the 'mapping' dictionary is
percent-encoded with an expectation that the value will replace
the value placeholder of the RFC8040 list segment.
Update OpenFlow plugin test cases using the keywords to provide
a dictionary. Also, replace the Bierman02 URL still used in the URL
templates, and change the placeholder to the value of the node list,
instead of just switch ID.
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
Change-Id: I0de33bd5670fdd8f11f464dfdd67b72b792688db
[Documentation] Add ${ITER} groups type 1 & 2 and flows in every switch.
${session} = Resolve_Http_Session_For_Member member_index=${member_index}
FOR ${switch} IN RANGE 1 ${switches+1}
[Documentation] Add ${ITER} groups type 1 & 2 and flows in every switch.
${session} = Resolve_Http_Session_For_Member member_index=${member_index}
FOR ${switch} IN RANGE 1 ${switches+1}
- TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-1 mapping={"SWITCH":"${switch}"} session=${session} iterations=${iter}
- TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-2 mapping={"SWITCH":"${switch}"} session=${session} iterations=${iter}
- TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-flow mapping={"SWITCH":"${switch}"} session=${session} iterations=${iter}
+ &{mapping} BuiltIn.Create_Dictionary NODE=openflow:${switch}
+ TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-1 mapping=${mapping} session=${session} iterations=${iter}
+ TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-2 mapping=${mapping} session=${session} iterations=${iter}
+ TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-flow mapping=${mapping} session=${session} iterations=${iter}
END
Add Single Group And Flow On Member
END
Add Single Group And Flow On Member
Add Group 1 In Every Switch
[Documentation] Add ${ITER} groups of type 1 in every switch.
FOR ${switch} IN RANGE 1 ${switches+1}
Add Group 1 In Every Switch
[Documentation] Add ${ITER} groups of type 1 in every switch.
FOR ${switch} IN RANGE 1 ${switches+1}
- TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-1 mapping={"SWITCH":"${switch}"} session=session iterations=${iter}
+ &{mapping} BuiltIn.Create_Dictionary NODE=openflow:${switch}
+ TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-1 mapping=${mapping} session=session iterations=${iter}
END
Add Group 2 In Every Switch
[Documentation] Add ${ITER} groups of type 2 in every switch.
FOR ${switch} IN RANGE 1 ${switches+1}
END
Add Group 2 In Every Switch
[Documentation] Add ${ITER} groups of type 2 in every switch.
FOR ${switch} IN RANGE 1 ${switches+1}
- TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-2 mapping={"SWITCH":"${switch}"} session=session iterations=${iter}
+ &{mapping} BuiltIn.Create_Dictionary NODE=openflow:${switch}
+ TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-group-2 mapping=${mapping} session=session iterations=${iter}
END
Add Flow to Group 2 In Every Switch
[Documentation] Add ${ITER} flows to group type 2 in every switch.
FOR ${switch} IN RANGE 1 ${switches+1}
END
Add Flow to Group 2 In Every Switch
[Documentation] Add ${ITER} flows to group type 2 in every switch.
FOR ${switch} IN RANGE 1 ${switches+1}
- TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-flow mapping={"SWITCH":"${switch}"} session=session iterations=${ITER}
+ &{mapping} BuiltIn.Create_Dictionary NODE=openflow:${switch}
+ TemplatedRequests.Post As Json Templated folder=${VAR_DIR}/add-flow mapping=${mapping} session=session iterations=${ITER}
-/restconf/config/opendaylight-inventory:nodes/node/openflow:$SWITCH/table/0
+/rests/data/opendaylight-inventory:nodes/node=$NODE/table=0
-/restconf/config/opendaylight-inventory:nodes/node/openflow:$SWITCH
+/rests/data/opendaylight-inventory:nodes/node=$NODE
-/restconf/config/opendaylight-inventory:nodes/node/openflow:$SWITCH
+/rests/data/opendaylight-inventory:nodes/node=$NODE