Fix broken registry test
Flask now returns a 404 error, rather than redirecting like it used to do
This commit is contained in:
parent
f9bd7ef42b
commit
3ce9d68a3e
1 changed files with 3 additions and 3 deletions
|
@ -1366,11 +1366,11 @@ class V1RegistryTests(V1RegistryPullMixin, V1RegistryPushMixin, RegistryTestsMix
|
|||
|
||||
def test_users(self):
|
||||
# Not logged in, should 404.
|
||||
self.conduct('GET', '/v1/users', expected_code=404)
|
||||
self.conduct('GET', '/v1/users/', expected_code=404)
|
||||
|
||||
# Try some logins.
|
||||
self.conduct('POST', '/v1/users', json_data={'username': 'freshuser'}, expected_code=400)
|
||||
resp = self.conduct('POST', '/v1/users',
|
||||
self.conduct('POST', '/v1/users/', json_data={'username': 'freshuser'}, expected_code=400)
|
||||
resp = self.conduct('POST', '/v1/users/',
|
||||
json_data={'username': 'devtable', 'password': 'password'},
|
||||
expected_code=400)
|
||||
|
||||
|
|
Reference in a new issue