Fix PcepOperations typos 60/110960/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 11:21:24 +0000 (12:21 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Thu, 21 Mar 2024 14:49:43 +0000 (14:49 +0000)
We have two typos from previous patch, fix them up.

Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Change-Id: I522aa65d0141ba2f8d07cab7a214cd6eb2f7e14a

csit/libraries/PcepOperations.robot

index 2becc1c17062cab315ab9613c72e96a7b4adb916..13c4ebe8bb7f9c1623a1654a2528a071b057c2b8 100644 (file)
@@ -25,7 +25,7 @@ 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
+    ...    alias=pcep_session
     ...    url=http://${ODL_SYSTEM_IP}:${RESTCONFPORT}/rests/operations/
     ...    headers=${HEADERS_XML}
     ...    auth=${AUTH}
@@ -59,7 +59,7 @@ Remove_Xml_Lsp_Return_Json
 Operate_Xml_Lsp_Return_Json
     [Documentation]    Post XML data to given pcep-operations URI, check status_code is 200 and return response text (JSON).
     [Arguments]    ${uri_part}    ${xml_data}
-    ${response}=    RequestsLibrary.POST On Session    pcep_session    uri=${uri_part}    data=${xml_data}    expect_status=any
+    ${response}=    RequestsLibrary.POST On Session    alias=pcep_session    url=${uri_part}    data=${xml_data}    expected_status=any
     Log    ${xml_data}
     Should Contain    ${ALLOWED_STATUS_CODES}    ${response.status_code}
     RETURN    ${response.text}