We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ba78b2 commit abdf9bdCopy full SHA for abdf9bd
1 file changed
api/tests/test_layer.py
@@ -58,6 +58,12 @@ def test_layer(self):
58
self.assertIn('runtime', response.data)
59
self.assertIn('config', response.data)
60
self.assertIn('key', json.loads(response.data['config']))
61
+ # test layer build failure
62
+ url = '/api/formations/{formation_id}/layers'.format(**locals())
63
+ body = {'id': 'autotest-fail', 'flavor': 'autotest-fail',
64
+ 'config': json.dumps({'key': 'value'})}
65
+ response = self.client.post(url, json.dumps(body), content_type='application/json')
66
+ self.assertEqual(response.status_code, 400)
67
url = '/api/formations/{formation_id}/layers'.format(**locals())
68
response = self.client.get(url)
69
self.assertEqual(response.status_code, 200)
0 commit comments