Commit 49a7b794 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner.tests: _getRcode function adapted to the new login form of the monitoring stack

parent 67b1abe3
...@@ -200,9 +200,10 @@ class SlaprunnerTestSuite(ResiliencyTestSuite): ...@@ -200,9 +200,10 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
def _getRcode(self): def _getRcode(self):
#XXX-Nicolas: hardcoded url. Best way right now to automate the tests... #XXX-Nicolas: hardcoded url. Best way right now to automate the tests...
monitoring_password = "passwordtochange"
monitor_url = self.monitor_url + "?script=zero-knowledge%2Fsettings.cgi" monitor_url = self.monitor_url + "?script=zero-knowledge%2Fsettings.cgi"
result = self._opener_director.open(monitor_url, result = self._opener_director.open(monitor_url,
"password=passwordtochange") "password=" + monitoring_password + ";password_2=" + monitoring_password)
if result.getcode() is not 200: if result.getcode() is not 200:
raise NotHttpOkException(result.getcode()) raise NotHttpOkException(result.getcode())
......
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