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
c3416add
Commit
c3416add
authored
Oct 10, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code refactor.
parent
186d27ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
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
+9
-8
No files found.
software/end-to-end-testing/buildout.hash.cfg
View file @
c3416add
...
...
@@ -12,4 +12,4 @@ md5sum = cbaa8e36097f36caf1a377fa71341a09
[test_beremiz.py]
filename = test_beremiz.py
md5sum =
348ea49d561c84dd42f24ff4830b45c2
md5sum =
b926baa2a7f733bc7301cf14e5017689
software/end-to-end-testing/test_beremiz.py
View file @
c3416add
...
...
@@ -97,23 +97,24 @@ class EndToEndTestCase(unittest.TestCase):
class
BeremizTest
(
EndToEndTestCase
):
# XXX: move outside runner at Test Suite ?
computer_id
=
"COMP-3523"
coupler_release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/osie-coupler/software-dev.cfg"
runtime_release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/beremiz-runtime/software.cfg"
@
classmethod
def
setUpClass
(
cls
):
super
().
setUpClass
()
# supply needed software releases
coupler_release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/osie-coupler/software-dev.cfg"
runtime_release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/beremiz-runtime/software.cfg"
# wait for release? where to keep computer _id ?
cls
.
supply
(
coupler_release
,
"COMP-3523"
,
state
=
"available"
)
cls
.
supply
(
runtime_release
,
"COMP-3523"
,
state
=
"available"
)
cls
.
supply
(
self
.
coupler_release
,
self
.
computer_id
,
state
=
"available"
)
cls
.
supply
(
self
.
runtime_release
,
self
.
computer_id
,
state
=
"available"
)
# supply / request coupler
instance_name
=
time
.
strftime
(
'e2e-test-coupler-%Y-%B-%d-%H:%M:%S'
)
parameter_dict
=
{
"mode"
:
1
,
"network_interface"
:
"192.168.0.0"
}
cls
.
request
(
coupler_release
,
cls
.
request
(
self
.
coupler_release
,
instance_name
,
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
,
180
)
...
...
@@ -124,7 +125,7 @@ class BeremizTest(EndToEndTestCase):
# supply / request beremiz-runtime
instance_name
=
time
.
strftime
(
'e2e-test-beremiz-runtime-%Y-%B-%d-%H:%M:%S'
)
parameter_dict
=
{
"runtime_plc_url"
:
"https://lab.nexedi.com/nexedi/osie/raw/master/Beremiz/beremiz_test_opc_ua/bin/beremiz_test_opc_ua.tgz"
}
cls
.
request
(
runtime_release
,
cls
.
request
(
self
.
runtime_release
,
instance_name
,
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
,
180
)
...
...
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