Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
58d02eb6
Commit
58d02eb6
authored
Dec 20, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Extend base class so that it can request SRs and
See merge request
!589
parents
de93cf62
a893b3cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
slapos/testing/e2e.py
slapos/testing/e2e.py
+12
-0
No files found.
slapos/testing/e2e.py
View file @
58d02eb6
...
@@ -30,6 +30,7 @@ class EndToEndTestCase(unittest.TestCase):
...
@@ -30,6 +30,7 @@ class EndToEndTestCase(unittest.TestCase):
cls
.
_request
=
staticmethod
(
local
[
'request'
])
cls
.
_request
=
staticmethod
(
local
[
'request'
])
cls
.
product
=
staticmethod
(
local
[
'product'
])
cls
.
product
=
staticmethod
(
local
[
'product'
])
cls
.
_requested
=
{}
cls
.
_requested
=
{}
cls
.
_supplied
=
{}
@
classmethod
@
classmethod
def
createLogger
(
cls
):
def
createLogger
(
cls
):
...
@@ -51,6 +52,12 @@ class EndToEndTestCase(unittest.TestCase):
...
@@ -51,6 +52,12 @@ class EndToEndTestCase(unittest.TestCase):
kw
[
'state'
]
=
'destroyed'
kw
[
'state'
]
=
'destroyed'
cls
.
_request
(
*
args
,
**
kw
)
cls
.
_request
(
*
args
,
**
kw
)
# remove software releases
for
k
,
v
in
cls
.
_supplied
.
items
():
print
(
"Remove %s from %s"
%
(
k
,
v
))
cls
.
_supply
(
k
,
v
,
'destroyed'
)
@
classmethod
@
classmethod
def
request
(
cls
,
*
args
,
**
kw
):
def
request
(
cls
,
*
args
,
**
kw
):
instance_name
=
args
[
1
]
instance_name
=
args
[
1
]
...
@@ -58,6 +65,11 @@ class EndToEndTestCase(unittest.TestCase):
...
@@ -58,6 +65,11 @@ class EndToEndTestCase(unittest.TestCase):
partition
=
cls
.
_request
(
*
args
,
**
kw
)
partition
=
cls
.
_request
(
*
args
,
**
kw
)
return
cls
.
unwrapConnectionDict
(
partition
.
getConnectionParameterDict
())
return
cls
.
unwrapConnectionDict
(
partition
.
getConnectionParameterDict
())
@
classmethod
def
supply
(
cls
,
software_release
,
computer_id
,
state
):
cls
.
_supplied
[
software_release
]
=
computer_id
cls
.
_supply
(
software_release
,
computer_id
,
state
)
@
staticmethod
@
staticmethod
def
unwrapConnectionDict
(
connection_dict
):
def
unwrapConnectionDict
(
connection_dict
):
try
:
try
:
...
...
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