Commit 47b5bc1d authored by Nicolas Wavrant's avatar Nicolas Wavrant

test

parent 52794d79
......@@ -383,7 +383,10 @@ class TestSlapProxyIntegration(SlaprunnerTestCase):
"""
# 1: Request 2 Software Releases, and do build&run
result = self._call('supplySoftwareRelease', method="POST", data={"path": "workspace/slapos/software/slaprunner/test/software_v1/"})
self.assertEqual(json.loads(result.text)['code'], 1)
try:
self.assertEqual(json.loads(result.text)['code'], 1)
except ValueError:
raise ValueError('supplySoftwareRelease returns code ', result.status_code)
result = self._call('supplySoftwareRelease', method="POST", data={"path": "workspace/slapos/software/slaprunner/test/software_v2/"})
self.assertEqual(json.loads(result.text)['code'], 1)
self._buildAndRun()
......
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