We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ad1fc0 commit a4eb89eCopy full SHA for a4eb89e
1 file changed
controller/api/tests/test_app.py
@@ -100,6 +100,10 @@ def test_app_errors(self):
100
body = {'cluster': cluster_id, 'id': 'camelCase'}
101
response = self.client.post(url, json.dumps(body), content_type='application/json')
102
self.assertContains(response, 'App IDs can only contain [a-z0-9-]', status_code=400)
103
+ url = '/api/apps'
104
+ body = {'cluster': cluster_id, 'id': 'deis'}
105
+ response = self.client.post(url, json.dumps(body), content_type='application/json')
106
+ self.assertContains(response, "App IDs cannot be 'deis'", status_code=400)
107
body = {'cluster': cluster_id, 'id': app_id}
108
109
self.assertEqual(response.status_code, 201)
0 commit comments