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
Łukasz Nowak
slapos.toolbox
Commits
07198d87
Commit
07198d87
authored
Nov 28, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliency-test: Dirty hack to force instanciation of test instance,
if bang does not properly works
parent
307cf70b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
slapos/resiliencytest/suites/resiliencytestsuite.py
slapos/resiliencytest/suites/resiliencytestsuite.py
+10
-0
No files found.
slapos/resiliencytest/suites/resiliencytestsuite.py
View file @
07198d87
...
@@ -32,6 +32,7 @@ import slapos.slap
...
@@ -32,6 +32,7 @@ import slapos.slap
import
logging
import
logging
import
time
import
time
import
os
class
ResiliencyTestSuite
(
object
):
class
ResiliencyTestSuite
(
object
):
"""
"""
...
@@ -104,6 +105,14 @@ class ResiliencyTestSuite(object):
...
@@ -104,6 +105,14 @@ class ResiliencyTestSuite(object):
"""
"""
raise
NotImplementedError
(
'Overload me, I am an abstract method.'
)
raise
NotImplementedError
(
'Overload me, I am an abstract method.'
)
def
deleteTimestamp
():
"""
XXX-Nicolas delete .timestamp in test partition to force the full processing
by slapgrid, to force the good parameters to be passed to the instances of the tree
"""
home
=
os
.
getenv
(
'HOME'
)
timestamp
=
os
.
path
.
join
(
home
,
'.timestamp'
)
os
.
remove
(
timestamp
)
def
_getPartitionParameterDict
(
self
):
def
_getPartitionParameterDict
(
self
):
"""
"""
...
@@ -115,6 +124,7 @@ class ResiliencyTestSuite(object):
...
@@ -115,6 +124,7 @@ class ResiliencyTestSuite(object):
software_type
=
'resilient'
,
software_type
=
'resilient'
,
partition_reference
=
self
.
root_instance_name
partition_reference
=
self
.
root_instance_name
).
getConnectionParameterDict
()
).
getConnectionParameterDict
()
self
.
deleteTimestamp
()
def
_returnNewInstanceParameter
(
self
,
parameter_key
,
old_parameter_value
):
def
_returnNewInstanceParameter
(
self
,
parameter_key
,
old_parameter_value
):
"""
"""
...
...
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