Skip to content

Commit a4eb89e

Browse files
author
Matthew Fisher
committed
test(controller): check for appname = deis
1 parent 5ad1fc0 commit a4eb89e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

controller/api/tests/test_app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def test_app_errors(self):
100100
body = {'cluster': cluster_id, 'id': 'camelCase'}
101101
response = self.client.post(url, json.dumps(body), content_type='application/json')
102102
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)
103107
body = {'cluster': cluster_id, 'id': app_id}
104108
response = self.client.post(url, json.dumps(body), content_type='application/json')
105109
self.assertEqual(response.status_code, 201)

0 commit comments

Comments
 (0)