Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
amrani
erp5
Commits
88f5ab4e
Commit
88f5ab4e
authored
Jun 12, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up
parent
9d28651f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+2
-1
erp5/util/testnode/SlapOSControler.py
erp5/util/testnode/SlapOSControler.py
+6
-3
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
88f5ab4e
...
...
@@ -55,7 +55,8 @@ class ScalabilityTestRunner():
# Create the slapos account configuration file and dir
key
=
self
.
testnode
.
test_suite_portal
.
getSlaposAccountKey
()
certificate
=
self
.
testnode
.
test_suite_portal
.
getSlaposAccountCertificate
()
SlapOSControler
.
createSlaposConfigurationFileAccount
(
key
,
certificate
)
self
.
slapos_controler
.
createSlaposConfigurationFileAccount
(
key
,
certificate
,
self
.
testnode
.
config
,
self
.
testnode
.
log
)
# {'COMPX' : ['soft_path1.cfg', 'soft_path2.cfg'],
# 'COMPY' : ['soft_path1.cfg'], ... }
...
...
erp5/util/testnode/SlapOSControler.py
View file @
88f5ab4e
...
...
@@ -68,9 +68,9 @@ class SlapOSControler(object):
self
.
log
=
log
self
.
proxy_database
=
os
.
path
.
join
(
working_directory
,
'proxy.db'
)
def
createSlaposConfigurationFileAccount
(
key
,
certificate
):
def
createSlaposConfigurationFileAccount
(
self
,
key
,
certificate
,
config
,
log
):
# Create "slapos_account" directory in the "slapos_directory"
slapos_account_directory
=
os
.
path
.
join
(
self
.
config
[
'slapos_directory'
],
"slapos_account"
)
slapos_account_directory
=
os
.
path
.
join
(
config
[
'slapos_directory'
],
"slapos_account"
)
SlapOSControler
.
createFolder
(
slapos_account_directory
)
# Create slapos-account files
slapos_account_key_path
=
os
.
path
.
join
(
slapos_account_directory
,
"key"
)
...
...
@@ -78,12 +78,15 @@ class SlapOSControler(object):
configuration_file_path
=
os
.
path
.
join
(
slapos_account_directory
,
"slapos.cfg"
)
configuration_file_value
=
"[slapos]
\
n
master_url = %s
\
n
\
[slapconsole]
\
n
cert_file = %s
\
n
key_file = %s"
%
(
self
.
config
[
'server_url'
],
config
[
'server_url'
],
slapos_account_certificate_path
,
slapos_account_key_path
)
SlapOSControler
.
createFile
(
slapos_account_key_path
,
"w"
,
key
)
log
(
"% created."
,
slapos_account_key_path
)
SlapOSControler
.
createFile
(
slapos_account_certificate_path
,
"w"
,
certificate
)
log
(
"% created."
,
slapos_account_certificate_path
)
SlapOSControler
.
createFile
(
configuration_file_path
,
"w"
,
configuration_file_value
)
log
(
"% created."
,
configuration_file_path
)
self
.
configuration_file_path
=
configuration_file_path
def
supply
(
self
,
software_url
,
computer_id
,
remove
=
False
):
...
...
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