Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
slapos.toolbox
Commits
3c03f12b
Commit
3c03f12b
authored
Nov 15, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytest: slaprunner: test passes basic auth even for clone
parent
c5a822b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
slapos/resiliencytest/suites/slaprunner.py
slapos/resiliencytest/suites/slaprunner.py
+2
-9
No files found.
slapos/resiliencytest/suites/slaprunner.py
View file @
3c03f12b
...
@@ -83,10 +83,8 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
...
@@ -83,10 +83,8 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
def
_login
(
self
):
def
_login
(
self
):
self
.
logger
.
debug
(
'Logging in...'
)
self
.
logger
.
debug
(
'Logging in...'
)
self
.
_connectToSlaprunner
(
'doLogin'
,
data
=
'clogin=%s&cpwd=%s'
%
(
b64string
=
base64
.
encodestring
(
'%s:%s'
%
(
self
.
slaprunner_user
,
self
.
slaprunner_password
))[:
-
1
]
self
.
slaprunner_user
,
self
.
_opener_director
.
addheaders
=
[(
'Authorization'
,
'Basic %s'
%
b64string
)]
self
.
slaprunner_password
)
)
def
_retrieveInstanceLogFile
(
self
):
def
_retrieveInstanceLogFile
(
self
):
"""
"""
...
@@ -181,8 +179,6 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
...
@@ -181,8 +179,6 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
self
.
logger
.
debug
(
'Getting the backend URL and recovery code...'
)
self
.
logger
.
debug
(
'Getting the backend URL and recovery code...'
)
parameter_dict
=
self
.
_getPartitionParameterDict
()
parameter_dict
=
self
.
_getPartitionParameterDict
()
self
.
slaprunner_backend_url
=
parameter_dict
[
'backend_url'
]
self
.
slaprunner_backend_url
=
parameter_dict
[
'backend_url'
]
#XXX dirty but is used to delete /login from published backend_url
self
.
slaprunner_backend_url
=
self
.
slaprunner_backend_url
[:
-
5
]
self
.
logger
.
info
(
'backend_url is %s.'
%
self
.
slaprunner_backend_url
)
self
.
logger
.
info
(
'backend_url is %s.'
%
self
.
slaprunner_backend_url
)
slaprunner_recovery_code
=
parameter_dict
[
'password_recovery_code'
]
slaprunner_recovery_code
=
parameter_dict
[
'password_recovery_code'
]
...
@@ -196,9 +192,6 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
...
@@ -196,9 +192,6 @@ 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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment