Commit ddb4b4e2 authored by Ivan Tyagov's avatar Ivan Tyagov

WIP

parent 003f9041
[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
...@@ -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
......
...@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment