Raise error if we try to controll a non controller server

Fix #451
This commit is contained in:
Julien Duponchelle committed 2016-04-19 10:47:53 +02:00
1 parent 79427b35fa
commit ce5461aee8
3 files changed
+17 -4

No files matched your search

@@ -49,6 +49,12 @@ def test_version_invalid_input(http_controller):
'status': 409}
def test_version_not_controller(http_controller, config):
config.set("Server", "controller", False)
response = http_controller.get('/version')
assert response.status == 403
def test_version_invalid_input_schema(http_controller):
query = {'version': "0.4.2", "bla": "blu"}
response = http_controller.post('/version', query)