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
e1702f76
Commit
e1702f76
authored
Oct 03, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read OPC UA server address from SlapOs master.
parent
e3264250
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
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
+4
-2
No files found.
software/end-to-end-testing/buildout.hash.cfg
View file @
e1702f76
...
...
@@ -12,4 +12,4 @@ md5sum = cbaa8e36097f36caf1a377fa71341a09
[test_beremiz.py]
filename = test_beremiz.py
md5sum =
24e8c47c3b8cb869619e2f89992fef23
md5sum =
4dd4c5439aea98979f97caf27307c999
software/end-to-end-testing/test_beremiz.py
View file @
e1702f76
...
...
@@ -111,6 +111,8 @@ class BeremizTest(EndToEndTestCase):
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
)
connection_dict
=
cls
.
getInstanceInfos
(
instance_name
).
connection_dict
print
(
connection_dict
)
cls
.
coupler_url_ipv6
=
connection_dict
.
get
(
"url-ipv6"
)
# supply / request beremiz-runtime
instance_name
=
time
.
strftime
(
'e2e-test-beremiz-runtime-%Y-%B-%d-%H:%M:%S'
)
...
...
@@ -124,7 +126,7 @@ class BeremizTest(EndToEndTestCase):
print
(
connection_dict
)
def
test_plc_increment_run
(
self
):
NUMBER_OF_CHECKS
=
10
0
NUMBER_OF_CHECKS
=
10
TIMEOUT
=
2
OPC_UA_ADDRESS
=
"opc.tcp://0.0.0.0:4840/"
OPC_UA_IDENTIFIER
=
"ns=1;s=i2c0.relay0"
...
...
@@ -133,7 +135,7 @@ class BeremizTest(EndToEndTestCase):
time
.
sleep
(
30
)
# connect to a session at OPC-UA server
client
=
Client
(
OPC_UA_ADDRESS
)
client
=
Client
(
self
.
coupler_url_ipv6
)
# for now this is the only test thus we start it without a wrapper
test_count
=
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