Fix broken registry test

Flask now returns a 404 error, rather than redirecting like it used to do
This commit is contained in:
Joseph Schorr 2017-12-20 11:43:55 -05:00
parent f9bd7ef42b
commit 3ce9d68a3e

View file

@ -1366,11 +1366,11 @@ class V1RegistryTests(V1RegistryPullMixin, V1RegistryPushMixin, RegistryTestsMix
def test_users(self): def test_users(self):
# Not logged in, should 404. # Not logged in, should 404.
self.conduct('GET', '/v1/users', expected_code=404) self.conduct('GET', '/v1/users/', expected_code=404)
# Try some logins. # Try some logins.
self.conduct('POST', '/v1/users', json_data={'username': 'freshuser'}, expected_code=400) self.conduct('POST', '/v1/users/', json_data={'username': 'freshuser'}, expected_code=400)
resp = self.conduct('POST', '/v1/users', resp = self.conduct('POST', '/v1/users/',
json_data={'username': 'devtable', 'password': 'password'}, json_data={'username': 'devtable', 'password': 'password'},
expected_code=400) expected_code=400)