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
ddb4b4e2
Commit
ddb4b4e2
authored
Sep 28, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
003f9041
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
software/end-to-end-testing/buildout.hash.cfg
software/end-to-end-testing/buildout.hash.cfg
+2
-2
software/end-to-end-testing/instance.cfg.in
software/end-to-end-testing/instance.cfg.in
+0
-2
software/end-to-end-testing/test_beremiz.py
software/end-to-end-testing/test_beremiz.py
+17
-8
No files found.
software/end-to-end-testing/buildout.hash.cfg
View file @
ddb4b4e2
[instance.cfg]
[instance.cfg]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
01be9026bd66bc96992d97d74fa485aa
md5sum =
fc3ffcabf7b3ff64d434d60d739a114c
[test_test.py]
[test_test.py]
filename = test_test.py
filename = test_test.py
...
@@ -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 =
e975cedbd12504dc5588d8d5723c8e78
md5sum =
4e77e52b53efb08665082f779fa3856f
software/end-to-end-testing/instance.cfg.in
View file @
ddb4b4e2
...
@@ -71,8 +71,6 @@ recipe = slapos.recipe.template:jinja2
...
@@ -71,8 +71,6 @@ recipe = slapos.recipe.template:jinja2
output = $${runTestSuite:workdir}/.nxdtest
output = $${runTestSuite:workdir}/.nxdtest
python_for_test = ${python_for_test:executable}
python_for_test = ${python_for_test:executable}
tests =
tests =
$${test_test.py:output}
$${test_kvm.py:output}
$${test_beremiz.py:output}
$${test_beremiz.py:output}
context =
context =
key tests :tests
key tests :tests
...
...
software/end-to-end-testing/test_beremiz.py
View file @
ddb4b4e2
...
@@ -96,13 +96,22 @@ class EndToEndTestCase(unittest.TestCase):
...
@@ -96,13 +96,22 @@ class EndToEndTestCase(unittest.TestCase):
time
.
sleep
(
60
)
time
.
sleep
(
60
)
class
KvmTest
(
EndToEndTestCase
):
class
BeremizTest
(
EndToEndTestCase
):
def
test
(
self
):
@
classmethod
def
setUpClass
(
cls
):
super
().
setUpClass
()
# 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'
)
instance_name
=
'e2e-test-beremiz-runtime'
# avoid timestamp to reuse instance
#
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"
release
=
"https://lab.nexedi.com/nexedi/slapos/raw/master/software/beremiz-runtime/software.cfg"
self
.
request
(
release
,
instance_name
)
parameter_dict
=
{
"runtime_plc_url"
:
"https://lab.nexedi.com/nexedi/osie/raw/master/Beremiz/beremiz_test_opc_ua/bin/beremiz_test_opc_ua.tgz"
}
self
.
waitUntilGreen
(
instance_name
)
json_in_xml_parameters
=
{
'_'
:
json
.
dumps
(
parameter_dict
)}
connection_dict
=
self
.
request
(
release
,
instance_name
)
cls
.
request
(
release
,
self
.
assertIn
(
'url'
,
connection_dict
)
instance_name
,
partition_parameter_kw
=
parameter_dict
)
cls
.
waitUntilGreen
(
instance_name
)
connection_dict
=
cls
.
getInstanceInfos
(
instance_name
).
connection_dict
def
test_fail
(
self
):
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