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
d08d2eec
Commit
d08d2eec
authored
Oct 10, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
888e2c98
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
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
+5
-5
No files found.
software/end-to-end-testing/buildout.hash.cfg
View file @
d08d2eec
...
@@ -12,4 +12,4 @@ md5sum = cbaa8e36097f36caf1a377fa71341a09
...
@@ -12,4 +12,4 @@ md5sum = cbaa8e36097f36caf1a377fa71341a09
[test_beremiz.py]
[test_beremiz.py]
filename = test_beremiz.py
filename = test_beremiz.py
md5sum =
dc824be1076b5eee1e551f19103acac3
md5sum =
81ea8c6b16832154e86cc8077e2fd29b
software/end-to-end-testing/test_beremiz.py
View file @
d08d2eec
...
@@ -113,14 +113,14 @@ class BeremizTest(EndToEndTestCase):
...
@@ -113,14 +113,14 @@ class BeremizTest(EndToEndTestCase):
super
().
setUpClass
()
super
().
setUpClass
()
# supply needed software releases
# supply needed software releases
cls
.
supply
(
self
.
coupler_release
,
self
.
computer_id
,
state
=
"available"
)
cls
.
supply
(
cls
.
coupler_release
,
cls
.
computer_id
,
state
=
"available"
)
cls
.
supply
(
self
.
runtime_release
,
self
.
computer_id
,
state
=
"available"
)
cls
.
supply
(
cls
.
runtime_release
,
cls
.
computer_id
,
state
=
"available"
)
# supply / request coupler
# supply / request coupler
instance_name
=
time
.
strftime
(
'e2e-test-coupler-%Y-%B-%d-%H:%M:%S'
)
instance_name
=
time
.
strftime
(
'e2e-test-coupler-%Y-%B-%d-%H:%M:%S'
)
parameter_dict
=
{
"mode"
:
1
,
parameter_dict
=
{
"mode"
:
1
,
"network_interface"
:
"192.168.0.0"
}
"network_interface"
:
"192.168.0.0"
}
cls
.
request
(
self
.
coupler_release
,
cls
.
request
(
cls
.
coupler_release
,
instance_name
,
instance_name
,
partition_parameter_kw
=
parameter_dict
)
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
,
180
)
cls
.
waitUntilGreen
(
instance_name
,
180
)
...
@@ -131,7 +131,7 @@ class BeremizTest(EndToEndTestCase):
...
@@ -131,7 +131,7 @@ class BeremizTest(EndToEndTestCase):
# supply / request beremiz-runtime
# supply / request beremiz-runtime
instance_name
=
time
.
strftime
(
'e2e-test-beremiz-runtime-%Y-%B-%d-%H:%M:%S'
)
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"
}
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
(
self
.
runtime_release
,
cls
.
request
(
cls
.
runtime_release
,
instance_name
,
instance_name
,
partition_parameter_kw
=
parameter_dict
)
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
,
180
)
cls
.
waitUntilGreen
(
instance_name
,
180
)
...
@@ -140,7 +140,7 @@ class BeremizTest(EndToEndTestCase):
...
@@ -140,7 +140,7 @@ class BeremizTest(EndToEndTestCase):
def
test_plc_increment_run
(
self
):
def
test_plc_increment_run
(
self
):
NUMBER_OF_CHECKS
=
100
NUMBER_OF_CHECKS
=
100
TIMEOUT
=
1
TIMEOUT
=
2
OPC_UA_IDENTIFIER
=
"ns=1;s=i2c0.relay0"
OPC_UA_IDENTIFIER
=
"ns=1;s=i2c0.relay0"
# give it some time for services(runtime & coupler) to warm up, connect and run
# give it some time for services(runtime & coupler) to warm up, connect and run
...
...
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