Commit d0d2dc3a authored by Xavier Thompson's avatar Xavier Thompson

WIP theia resilient: Add basic tests

parent d17935fe
...@@ -241,3 +241,31 @@ class TestTheiaWithSR(SlapOSInstanceTestCase): ...@@ -241,3 +241,31 @@ class TestTheiaWithSR(SlapOSInstanceTestCase):
where={'software_release': self.srurl, 'software_type': self.srtype} where={'software_release': self.srurl, 'software_type': self.srtype}
) )
self.assertEqual(len(requested), 1) self.assertEqual(len(requested), 1)
class TestTheiaResilient(TestTheia):
instance_max_retry = 30
@classmethod
def getInstanceSoftwareType(cls):
return 'theia-resilient'
@classmethod
def setUpClass(cls):
super(TestTheia, cls).setUpClass()
# Patch the computer root path to that of the actual theia instance
cls.computer_partition_root_path = os.path.join(cls.slap._instance_root, "T2")
class TestTheiaResilientWithSR(TestTheiaWithSR):
instance_max_retry = 30
@classmethod
def getInstanceSoftwareType(cls):
return 'theia-resilient'
@classmethod
def setUpClass(cls):
super(TestTheiaWithSR, cls).setUpClass()
# Patch the computer root path to that of the actual theia instance
cls.computer_partition_root_path = os.path.join(cls.slap._instance_root, "T2")
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