Add a test for deleting a user with federated login
This commit is contained in:
parent
13b4f10a34
commit
19393a8619
1 changed files with 10 additions and 0 deletions
|
@ -631,6 +631,16 @@ class TestDeleteNamespace(ApiTestCase):
|
||||||
self.assertIsNone(notification_queue.get())
|
self.assertIsNone(notification_queue.get())
|
||||||
self.assertIsNone(dockerfile_build_queue.get())
|
self.assertIsNone(dockerfile_build_queue.get())
|
||||||
|
|
||||||
|
def test_delete_federateduser(self):
|
||||||
|
self.login(PUBLIC_USER)
|
||||||
|
|
||||||
|
# Add some federated logins.
|
||||||
|
user = model.user.get_user(PUBLIC_USER)
|
||||||
|
model.user.attach_federated_login(user, 'github', 'something', {})
|
||||||
|
|
||||||
|
with check_transitive_deletes():
|
||||||
|
self.deleteResponse(User, expected_code=204)
|
||||||
|
|
||||||
|
|
||||||
class TestSignin(ApiTestCase):
|
class TestSignin(ApiTestCase):
|
||||||
def test_signin_unicode(self):
|
def test_signin_unicode(self):
|
||||||
|
|
Reference in a new issue