Add a userlink
[Documentation] Add a userlink, list to validate the result.
[Tags] add
- ${body} Create Dictionary name ${name} status Success srcNodeConnector
- ... OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector OF|1@OF|00:00:00:00:00:00:00:03
- ${headers} Create Dictionary Content-Type application/json
+ ${body} Create Dictionary name=${name} status=Success
+ ... srcNodeConnector=OF|1@OF|00:00:00:00:00:00:00:02
+ ... dstNodeConnector=OF|1@OF|00:00:00:00:00:00:00:03
+ ${headers} Create Dictionary Content-Type=application/json
Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth}
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201 Response status code error
Remove a userlink
[Documentation] Remove a userlink, list to validate the result.
[Tags] remove
- ${body} Create Dictionary name ${name} status Success srcNodeConnector
- ... OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector OF|1@OF|00:00:00:00:00:00:00:03
- ${headers} Create Dictionary Content-Type application/json
+ ${body} Create Dictionary name=${name} status=Success
+ ... srcNodeConnector=OF|1@OF|00:00:00:00:00:00:00:02
+ ... dstNodeConnector=OF|1@OF|00:00:00:00:00:00:00:03
+ ${headers} Create Dictionary Content-Type=application/json
Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth}
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204 Response status code error