Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Ivan Tyagov
slapos
Commits
888e2c98
Commit
888e2c98
authored
Oct 10, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep supplied SRs in a dict so we can tear them down.
parent
c3416add
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
software/end-to-end-testing/buildout.hash.cfg
software/end-to-end-testing/buildout.hash.cfg
+1
-1
software/end-to-end-testing/test_beremiz.py
software/end-to-end-testing/test_beremiz.py
+7
-1
No files found.
software/end-to-end-testing/buildout.hash.cfg
View file @
888e2c98
...
...
@@ -12,4 +12,4 @@ md5sum = cbaa8e36097f36caf1a377fa71341a09
[test_beremiz.py]
filename = test_beremiz.py
md5sum =
b926baa2a7f733bc7301cf14e5017689
md5sum =
dc824be1076b5eee1e551f19103acac3
software/end-to-end-testing/test_beremiz.py
View file @
888e2c98
...
...
@@ -15,10 +15,11 @@ class EndToEndTestCase(unittest.TestCase):
conf
=
slapos
.
client
.
ClientConfig
(
args
,
configp
)
local
=
slapos
.
client
.
init
(
conf
,
logging
.
getLogger
(
__name__
))
cls
.
slap
=
local
[
'slap'
]
cls
.
supply
=
staticmethod
(
local
[
'supply'
])
cls
.
_
supply
=
staticmethod
(
local
[
'supply'
])
cls
.
_request
=
staticmethod
(
local
[
'request'
])
cls
.
product
=
staticmethod
(
local
[
'product'
])
cls
.
_requested
=
{}
cls
.
_supplied
=
{}
@
classmethod
def
tearDownClass
(
cls
):
...
...
@@ -33,6 +34,11 @@ class EndToEndTestCase(unittest.TestCase):
partition
=
cls
.
_request
(
*
args
,
**
kw
)
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
def
unwrapConnectionDict
(
connection_dict
):
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