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
57aca877
Commit
57aca877
authored
Sep 28, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
117b48c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
software/end-to-end-testing/buildout.hash.cfg
software/end-to-end-testing/buildout.hash.cfg
+1
-1
software/end-to-end-testing/software.cfg
software/end-to-end-testing/software.cfg
+3
-0
software/end-to-end-testing/test_beremiz.py
software/end-to-end-testing/test_beremiz.py
+13
-11
No files found.
software/end-to-end-testing/buildout.hash.cfg
View file @
57aca877
...
@@ -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 =
912bf9ead34d0aaa144de078eb8bbb6c
md5sum =
184920492fc7e1a812e659d91a95a121
software/end-to-end-testing/software.cfg
View file @
57aca877
...
@@ -41,3 +41,6 @@ eggs =
...
@@ -41,3 +41,6 @@ eggs =
${pygolang:egg}
${pygolang:egg}
slapos.core
slapos.core
opcua
opcua
[versions]
opcua = 0.98.13
software/end-to-end-testing/test_beremiz.py
View file @
57aca877
...
@@ -3,7 +3,7 @@ import json
...
@@ -3,7 +3,7 @@ import json
import
logging
import
logging
import
time
import
time
import
unittest
import
unittest
from
opcua
import
Client
import
slapos.client
import
slapos.client
...
@@ -101,16 +101,6 @@ class BeremizTest(EndToEndTestCase):
...
@@ -101,16 +101,6 @@ class BeremizTest(EndToEndTestCase):
@
classmethod
@
classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
super
().
setUpClass
()
super
().
setUpClass
()
# supply / request beremiz-runtime
instance_name
=
time
.
strftime
(
'e2e-test-beremiz-runtime-%Y-%B-%d-%H:%M:%S'
)
#instance_name = 'e2e-test-beremiz-runtime' # avoid timestamp to reuse instance
release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/beremiz-runtime/software.cfg"
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
(
release
,
instance_name
,
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
)
connection_dict
=
cls
.
getInstanceInfos
(
instance_name
).
connection_dict
# 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'
)
...
@@ -123,5 +113,17 @@ class BeremizTest(EndToEndTestCase):
...
@@ -123,5 +113,17 @@ class BeremizTest(EndToEndTestCase):
cls
.
waitUntilGreen
(
instance_name
)
cls
.
waitUntilGreen
(
instance_name
)
connection_dict
=
cls
.
getInstanceInfos
(
instance_name
).
connection_dict
connection_dict
=
cls
.
getInstanceInfos
(
instance_name
).
connection_dict
# supply / request beremiz-runtime
instance_name
=
time
.
strftime
(
'e2e-test-beremiz-runtime-%Y-%B-%d-%H:%M:%S'
)
#instance_name = 'e2e-test-beremiz-runtime' # avoid timestamp to reuse instance
release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/beremiz-runtime/software.cfg"
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
(
release
,
instance_name
,
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
)
connection_dict
=
cls
.
getInstanceInfos
(
instance_name
).
connection_dict
def
test_fail
(
self
):
def
test_fail
(
self
):
self
.
assertEqual
(
0
,
1
)
self
.
assertEqual
(
0
,
1
)
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