Library scope: | GLOBAL |
---|
Library hiding details of restconf authentication.
Suitable for performance tests against different restconf authentication methods. Type of authentication is currently determined by "scope" value.
This library does not rely on RobotFramework libraries, so it is suitable for running from wide range of VMs. Requirements: Basic Python installation, which should include "json" and "requests" Python modules.
*_Using_Session keywords take the same kwargs as requests.Session.request, but instead of method and URL, they take "session" created by Init_Session keyword and URI (without "/rests/").
Due to performance of TCP on some systems, two session strategies are available. reuse=True reuses the same requests.Session, which possibly means the library tries to re-use the same source TCP port. This conserves resources (TCP ports available), but it may lead to a significant performance hit (as in 10 times slower). reuse=False closes every requests.Session object, presumably causing the new session to take another TCP port. This has good performance, but may perhaps lead to port starvation in some cases.
TODO: Put "RESTCONF" to more places, as URIs not starting with /rests/ are not supported yet.
Robot keyword, perform DELETE operation using given opaque session object.
Robot keyword, perform GET operation using given opaque session object.
Robot keyword, return opaque session object, which handles authentication automatically.
Robot keyword, perform POST operation using given opaque session object.
Robot keyword, perform PUT operation using given opaque session object.