Fix PcepOperations requests 87/111087/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Mar 2024 00:54:21 +0000 (01:54 +0100)
committerSangwook Ha <sangwook.ha@verizon.com>
Wed, 27 Mar 2024 17:57:08 +0000 (10:57 -0700)
commitfa78d655ff6121f2b34e36ccec67a6c70dec7b76
tree98274cd99ae30bd41f716c7076f0b764c93f3992
parentdd4942bf1fc9e5fd15cb3a26e26155967e2e22c4
Fix PcepOperations requests

When 'url' for RequestsLibrary.Post_On_Session starts with a word that
complies with the pattern of URL scheme followed by a colon, e.g.
'network-topology-pcep:add-lsp', then it becomes the entire URL and
the base URL for the session is ignored by 'urljoin':

https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urljoin
https://datatracker.ietf.org/doc/html/rfc3986.html#section-3.1

To avoid this issue remove the common URL base path '/rests/operations'
from the session base URL and add it Post_on_Session.

Change-Id: I88c990788c41ff2772577f0302217e30f55c9fc6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
csit/libraries/PcepOperations.robot