Commit 57aca877 authored by Ivan Tyagov's avatar Ivan Tyagov

WIP

parent 117b48c2
......@@ -12,4 +12,4 @@ md5sum = cbaa8e36097f36caf1a377fa71341a09
[test_beremiz.py]
filename = test_beremiz.py
md5sum = 912bf9ead34d0aaa144de078eb8bbb6c
md5sum =184920492fc7e1a812e659d91a95a121
......@@ -41,3 +41,6 @@ eggs =
${pygolang:egg}
slapos.core
opcua
[versions]
opcua = 0.98.13
......@@ -3,7 +3,7 @@ import json
import logging
import time
import unittest
from opcua import Client
import slapos.client
......@@ -101,16 +101,6 @@ class BeremizTest(EndToEndTestCase):
@classmethod
def setUpClass(cls):
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
instance_name = time.strftime('e2e-test-coupler-%Y-%B-%d-%H:%M:%S')
......@@ -123,5 +113,17 @@ class BeremizTest(EndToEndTestCase):
cls.waitUntilGreen(instance_name)
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):
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