From fbe4bb98345727d190cefcfb3ec54ad9075fba9d Mon Sep 17 00:00:00 2001 From: "RamaPrasad Amaranarayana (ra5425)" Date: Wed, 19 Sep 2018 17:40:40 -0400 Subject: Change Management Schedule Optimization Adding Robot Test Scripts for Change Management Schedule Optimization Change-Id: Id5edf9d3fb3c2390791362692c8b25f7607045c6 Issue-ID: OPTFRA-352 Signed-off-by: RamaPrasad Amaranarayana (ra5425) --- cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py (limited to 'cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py') diff --git a/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py b/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py new file mode 100644 index 0000000..e1fd66f --- /dev/null +++ b/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py @@ -0,0 +1,7 @@ + +class RequestsClientCert: + """RequestsClientCert allows adding a client cert to the Requests Robot Library.""" + + def add_client_cert(self, session, cert): + """Add Client Cert takes in a requests session object and a string path to the cert""" + session.cert = cert \ No newline at end of file -- cgit 1.2.3-korg