Commit 45d124de authored by Nicolas Wavrant's avatar Nicolas Wavrant

resiliencytest: basic auth added for tests on slaprunner

parent ef27fd3f
......@@ -28,6 +28,7 @@
from .resiliencytestsuite import ResiliencyTestSuite
import base64
import cookielib
import random
import string
......@@ -63,6 +64,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
300
)
def _connectToSlaprunner(self, resource, data=None):
"""
Utility.
......@@ -192,6 +194,9 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
)
)
b64string = base64.encodestring('%s:%s' % (self.slaprunner_user, self.slaprunner_password))[:-1]
self._opener_director.addheaders = [('Authorization', 'Basic %s'%b64string)]
self._login()
self._gitClone()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment