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
alecs_myu
erp5
Commits
59989cb5
Commit
59989cb5
authored
Jun 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up
parent
d5fc9b4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
57 deletions
+59
-57
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+59
-57
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
59989cb5
...
@@ -70,9 +70,9 @@ class ScalabilityTestRunner():
...
@@ -70,9 +70,9 @@ class ScalabilityTestRunner():
"""
"""
A proxy to supply : Install a software on a specific node
A proxy to supply : Install a software on a specific node
"""
"""
self
.
testnode
.
log
(
"
TESTNODE SUPPLY
: %s %s"
,
software_path
,
computer_guid
)
self
.
testnode
.
log
(
"
testnode, supply
: %s %s"
,
software_path
,
computer_guid
)
if
self
.
authorize_supply
:
if
self
.
authorize_supply
:
if
not
(
computer_guid
in
self
.
remaining_software_installation_grid
)
:
if
not
computer_guid
in
self
.
remaining_software_installation_grid
:
# Add computer_guid to the grid if it isn't
# Add computer_guid to the grid if it isn't
self
.
remaining_software_installation_grid
[
computer_guid
]
=
[]
self
.
remaining_software_installation_grid
[
computer_guid
]
=
[]
self
.
remaining_software_installation_grid
[
computer_guid
].
append
(
software_path
)
self
.
remaining_software_installation_grid
[
computer_guid
].
append
(
software_path
)
...
@@ -96,9 +96,7 @@ class ScalabilityTestRunner():
...
@@ -96,9 +96,7 @@ class ScalabilityTestRunner():
def
isSoftwareReleaseReady
(
self
,
software_url
,
computer_guid
):
def
isSoftwareReleaseReady
(
self
,
software_url
,
computer_guid
):
# TODO : implement this method
# TODO : implement this method
# -> communication with SlapOS master
# -> communication with SlapOS master
# todo : simulate slapOS Master answer
# todo : simulate slapOS Master answer
return
False
return
False
def
remainSoftwareToInstall
(
self
):
def
remainSoftwareToInstall
(
self
):
...
@@ -106,6 +104,9 @@ class ScalabilityTestRunner():
...
@@ -106,6 +104,9 @@ class ScalabilityTestRunner():
Return True if all softwares are installed, otherwise return False
Return True if all softwares are installed, otherwise return False
"""
"""
# Remove from grid installed software entries
# Remove from grid installed software entries
print
"self.remaining_software_installation_grid:"
print
self
.
remaining_software_installation_grid
for
computer_guid
,
v
in
self
.
remaining_software_installation_grid
:
for
computer_guid
,
v
in
self
.
remaining_software_installation_grid
:
for
software_url
in
v
:
for
software_url
in
v
:
if
isSoftwareReleaseReady
(
software_url
,
computer_guid
):
if
isSoftwareReleaseReady
(
software_url
,
computer_guid
):
...
@@ -127,9 +128,10 @@ class ScalabilityTestRunner():
...
@@ -127,9 +128,10 @@ class ScalabilityTestRunner():
self
.
testnode
.
config
[
'test_node_title'
]):
self
.
testnode
.
config
[
'test_node_title'
]):
# Get from ERP5 Master the configuration of the cluster for the test
# Get from ERP5 Master the configuration of the cluster for the test
test_configuration
=
testnodeUtils
.
deunicodeData
(
test_configuration
=
testnodeUtils
.
deunicodeData
(
json
.
loads
(
json
.
loads
(
self
.
testnode
.
test_suite_portal
.
generateConfiguration
(
self
.
testnode
.
test_suite_portal
.
generateConfiguration
(
node_test_suite
.
test_suite_title
)
node_test_suite
.
test_suite_title
)))
)
)
self
.
involved_nodes_computer_guid
=
test_configuration
[
'involved_nodes_computer_guid'
]
self
.
involved_nodes_computer_guid
=
test_configuration
[
'involved_nodes_computer_guid'
]
self
.
launchable
=
test_configuration
[
'launchable'
]
self
.
launchable
=
test_configuration
[
'launchable'
]
self
.
error_message
=
test_configuration
[
'error_message'
]
self
.
error_message
=
test_configuration
[
'error_message'
]
...
...
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