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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
0f337070
Commit
0f337070
authored
Jun 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
7ae4559e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+2
-2
erp5/util/testnode/SlapOSControler.py
erp5/util/testnode/SlapOSControler.py
+5
-5
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
0f337070
...
@@ -57,7 +57,7 @@ class ScalabilityTestRunner():
...
@@ -57,7 +57,7 @@ class ScalabilityTestRunner():
key
=
self
.
testnode
.
test_suite_portal
.
getSlaposAccountKey
()
key
=
self
.
testnode
.
test_suite_portal
.
getSlaposAccountKey
()
certificate
=
self
.
testnode
.
test_suite_portal
.
getSlaposAccountCertificate
()
certificate
=
self
.
testnode
.
test_suite_portal
.
getSlaposAccountCertificate
()
self
.
slapos_controler
.
createSlaposConfigurationFileAccount
(
key
,
certificate
,
self
.
slapos_controler
.
createSlaposConfigurationFileAccount
(
key
,
certificate
,
self
.
testnode
.
config
,
self
.
testnode
.
log
)
self
.
testnode
.
config
)
self
.
remaining_software_installation_grid
=
{}
self
.
remaining_software_installation_grid
=
{}
# Protection to prevent installation of softwares after checking
# Protection to prevent installation of softwares after checking
self
.
authorize_supply
=
True
self
.
authorize_supply
=
True
...
@@ -176,7 +176,7 @@ class ScalabilityTestRunner():
...
@@ -176,7 +176,7 @@ class ScalabilityTestRunner():
while
(
self
.
remainSoftwareToInstall
()
while
(
self
.
remainSoftwareToInstall
()
and
(
max_time
>
(
time
.
time
()
-
start_time
))):
and
(
max_time
>
(
time
.
time
()
-
start_time
))):
self
.
testnode
.
log
(
"Master testnode is waiting
\
self
.
testnode
.
log
(
"Master testnode is waiting
\
for the end of all software installation (for %ss)."
,
for the end of all software installation (for %ss)."
,
str
(
int
(
time
.
time
()
-
start_time
)))
str
(
int
(
time
.
time
()
-
start_time
)))
time
.
sleep
(
interval_time
)
time
.
sleep
(
interval_time
)
# We were wainting for too long time, that's a failure.
# We were wainting for too long time, that's a failure.
...
...
erp5/util/testnode/SlapOSControler.py
View file @
0f337070
...
@@ -70,7 +70,7 @@ class SlapOSControler(object):
...
@@ -70,7 +70,7 @@ class SlapOSControler(object):
self
.
log
=
log
self
.
log
=
log
self
.
proxy_database
=
os
.
path
.
join
(
working_directory
,
'proxy.db'
)
self
.
proxy_database
=
os
.
path
.
join
(
working_directory
,
'proxy.db'
)
def
createSlaposConfigurationFileAccount
(
self
,
key
,
certificate
,
config
,
log
):
def
createSlaposConfigurationFileAccount
(
self
,
key
,
certificate
,
config
):
# Create "slapos_account" directory in the "slapos_directory"
# Create "slapos_account" directory in the "slapos_directory"
slapos_account_directory
=
os
.
path
.
join
(
config
[
'slapos_directory'
],
"slapos_account"
)
slapos_account_directory
=
os
.
path
.
join
(
config
[
'slapos_directory'
],
"slapos_account"
)
createFolder
(
slapos_account_directory
)
createFolder
(
slapos_account_directory
)
...
@@ -84,11 +84,11 @@ class SlapOSControler(object):
...
@@ -84,11 +84,11 @@ class SlapOSControler(object):
slapos_account_certificate_path
,
slapos_account_certificate_path
,
slapos_account_key_path
)
slapos_account_key_path
)
createFile
(
slapos_account_key_path
,
"w"
,
key
)
createFile
(
slapos_account_key_path
,
"w"
,
key
)
log
(
"%s created."
%
(
str
(
slapos_account_key_path
)))
self
.
log
(
"%s created."
%
(
str
(
slapos_account_key_path
)))
createFile
(
slapos_account_certificate_path
,
"w"
,
certificate
)
createFile
(
slapos_account_certificate_path
,
"w"
,
certificate
)
log
(
"%s created."
%
(
str
(
slapos_account_certificate_path
)))
self
.
log
(
"%s created."
%
(
str
(
slapos_account_certificate_path
)))
createFile
(
configuration_file_path
,
"w"
,
configuration_file_value
)
createFile
(
configuration_file_path
,
"w"
,
configuration_file_value
)
log
(
"%s created."
%
(
str
(
configuration_file_path
)))
self
.
log
(
"%s created."
%
(
str
(
configuration_file_path
)))
self
.
configuration_file_path
=
configuration_file_path
self
.
configuration_file_path
=
configuration_file_path
def
supply
(
self
,
software_url
,
computer_id
,
state
=
"available"
):
def
supply
(
self
,
software_url
,
computer_id
,
state
=
"available"
):
...
@@ -97,8 +97,8 @@ class SlapOSControler(object):
...
@@ -97,8 +97,8 @@ class SlapOSControler(object):
Ex :
Ex :
my_controler.supply('kvm.cfg', 'COMP-726')
my_controler.supply('kvm.cfg', 'COMP-726')
"""
"""
return
self
.
log
(
'SlapOSControler : supply'
)
self
.
log
(
'SlapOSControler : supply'
)
return
parser
=
argparse
.
ArgumentParser
()
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"configuration_file"
)
parser
.
add_argument
(
"configuration_file"
)
parser
.
add_argument
(
"software_url"
)
parser
.
add_argument
(
"software_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