Commit 7399017d authored by Jérome Perrin's avatar Jérome Perrin

wip

parent 994f3d30
...@@ -36,17 +36,19 @@ from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass ...@@ -36,17 +36,19 @@ from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass
setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass( setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass(
os.path.abspath( os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', 'software.cfg'))) os.path.join(os.path.dirname(__file__), '..', '..', 'seleniumrunner', 'software.cfg')))
class TestGitlab(SlapOSInstanceTestCase): class TestGitlab(SlapOSInstanceTestCase):
__partition_reference__ = 'G' # solve path too long for postgresql and unicorn __partition_reference__ = 'G' # solve path too long for postgresql and unicorn
instance_max_retry = 20
@classmethod @classmethod
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return 'gitlab-test' return 'gitlab-test'
def setUp(self): def setUp(self):
import pdb; pdb.set_trace()
self.backend_url = self.computer_partition.getConnectionParameterDict( self.backend_url = self.computer_partition.getConnectionParameterDict(
)['backend_url'] )['backend_url']
...@@ -54,3 +56,4 @@ class TestGitlab(SlapOSInstanceTestCase): ...@@ -54,3 +56,4 @@ class TestGitlab(SlapOSInstanceTestCase):
resp = requests.get(self.backend_url, verify=False) resp = requests.get(self.backend_url, verify=False)
self.assertTrue( self.assertTrue(
resp.status_code in [requests.codes.ok, requests.codes.found]) resp.status_code in [requests.codes.ok, requests.codes.found])
import pdb; pdb.set_trace()
\ No newline at end of file
...@@ -81,6 +81,7 @@ class TestTheia(SlapOSInstanceTestCase): ...@@ -81,6 +81,7 @@ class TestTheia(SlapOSInstanceTestCase):
self.assertTrue(resp.raw) self.assertTrue(resp.raw)
def test_theia_slapos(self): def test_theia_slapos(self):
import pdb; pdb.set_trace()
# Make sure we can use the shell and the integrated slapos command # Make sure we can use the shell and the integrated slapos command
process = pexpect.spawnu( process = pexpect.spawnu(
'{}/bin/theia-shell'.format(self.computer_partition_root_path), '{}/bin/theia-shell'.format(self.computer_partition_root_path),
......
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