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
Nicolas Wavrant
slapos.toolbox
Commits
54399dda
Commit
54399dda
authored
Sep 28, 2016
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytest: webrunner use init-user and init-password to login
parent
05745c1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
slapos/resiliencytest/suites/erp5.py
slapos/resiliencytest/suites/erp5.py
+4
-14
slapos/resiliencytest/suites/slaprunner.py
slapos/resiliencytest/suites/slaprunner.py
+1
-1
No files found.
slapos/resiliencytest/suites/erp5.py
View file @
54399dda
...
@@ -190,22 +190,12 @@ class ERP5TestSuite(SlaprunnerTestSuite):
...
@@ -190,22 +190,12 @@ class ERP5TestSuite(SlaprunnerTestSuite):
Store the main IP of the slaprunner for future use.
Store the main IP of the slaprunner for future use.
"""
"""
self
.
logger
.
debug
(
'Getting the backend URL
and recovery code
...'
)
self
.
logger
.
debug
(
'Getting the backend URL...'
)
parameter_dict
=
self
.
_getPartitionParameterDict
()
parameter_dict
=
self
.
_getPartitionParameterDict
()
self
.
slaprunner_backend_url
=
parameter_dict
[
'backend
_
url'
]
self
.
slaprunner_backend_url
=
parameter_dict
[
'backend
-
url'
]
self
.
logger
.
info
(
'backend_url is %s.'
%
self
.
slaprunner_backend_url
)
self
.
logger
.
info
(
'backend_url is %s.'
%
self
.
slaprunner_backend_url
)
self
.
monitor_url
=
parameter_dict
[
'monitor_backend_url'
]
self
.
slaprunner_user
=
parameter_dict
[
'init-user'
]
slaprunner_recovery_code
=
self
.
_getRcode
()
self
.
slaprunner_password
=
parameter_dict
[
'init-password'
]
self
.
logger
.
debug
(
'Creating the slaprunner account...'
)
self
.
_connectToSlaprunner
(
resource
=
'configAccount'
,
data
=
'name=slapos&username=%s&email=slapos@slapos.org&password=%s&rcode=%s'
%
(
self
.
slaprunner_user
,
self
.
slaprunner_password
,
slaprunner_recovery_code
)
)
self
.
_login
()
self
.
_login
()
time
.
sleep
(
10
)
time
.
sleep
(
10
)
...
...
slapos/resiliencytest/suites/slaprunner.py
View file @
54399dda
...
@@ -214,7 +214,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
...
@@ -214,7 +214,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
Wait for instance to be started.
Wait for instance to be started.
Store the main IP of the slaprunner for future use.
Store the main IP of the slaprunner for future use.
"""
"""
self
.
logger
.
debug
(
'Getting the backend URL
and recovery code
...'
)
self
.
logger
.
debug
(
'Getting the backend URL...'
)
parameter_dict
=
self
.
_getPartitionParameterDict
()
parameter_dict
=
self
.
_getPartitionParameterDict
()
self
.
slaprunner_backend_url
=
parameter_dict
[
'backend-url'
]
self
.
slaprunner_backend_url
=
parameter_dict
[
'backend-url'
]
self
.
logger
.
info
(
'backend_url is %s.'
%
self
.
slaprunner_backend_url
)
self
.
logger
.
info
(
'backend_url is %s.'
%
self
.
slaprunner_backend_url
)
...
...
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