*** Settings ***
Documentation Robot keyword library (Resource) for performing PCEP operations via restconf calls.
-...
+...
... Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
-...
+...
... This program and the accompanying materials are made available under the
... terms of the Eclipse Public License v1.0 which accompanies this distribution,
... and is available at http://www.eclipse.org/legal/epl-v10.html
-...
+...
... TODO: Remove all old keywords, update pcepuser.robot accordingly
... TODO: Add new KWs, update all pcep tests to use them.
Library RequestsLibrary
Setup_Pcep_Operations
[Documentation] Creates Requests session to be used by subsequent keywords.
# Do not append slash at the end uf URL, Requests would add another, resulting in error.
- Create_Session pcep_session http://${ODL_SYSTEM_IP}:${RESTCONFPORT}/restconf/operations headers=${HEADERS_XML} auth=${AUTH}
+ Create_Session pcep_session http://${ODL_SYSTEM_IP}:${RESTCONFPORT}/rests/operations headers=${HEADERS_XML} auth=${AUTH}
Teardown_Pcep_Operations
[Documentation] Teardown to pair with Setup (otherwise no-op).
Pcep_Json_Is_Refused
[Arguments] ${actual_raw}
[Documentation] Given text should be equal to json response when device refuses tunnel removal.
- ${expected_raw}= BuiltIn.Set_Variable {"output":{"error":[{"error-object":{"ignore":false,"processing-rule":false,"type":19,"value":9}}],"failure":"failed"}}
+ ${expected_raw}= BuiltIn.Set_Variable {"network-topology-pcep:output":{"error":[{"error-object":{"ignore":false,"processing-rule":false,"type":19,"value":9}}],"failure":"failed"}}
# TODO: Is that JSON worth referencing pcepuser variables from this library?
${expected_normalized}= norm_json.normalize_json_text ${expected_raw}
${actual_normalized}= norm_json.normalize_json_text ${actual_raw}