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

resiliencytest: basic auth added for tests on slaprunner

parent ef27fd3f
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
from .resiliencytestsuite import ResiliencyTestSuite from .resiliencytestsuite import ResiliencyTestSuite
import base64
import cookielib import cookielib
import random import random
import string import string
...@@ -63,6 +64,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite): ...@@ -63,6 +64,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
300 300
) )
def _connectToSlaprunner(self, resource, data=None): def _connectToSlaprunner(self, resource, data=None):
""" """
Utility. Utility.
...@@ -192,6 +194,9 @@ class SlaprunnerTestSuite(ResiliencyTestSuite): ...@@ -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._login()
self._gitClone() 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