From 19393a861952a1e5f3514bfe1c272290439dac7d Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 21 Oct 2016 17:55:22 -0400 Subject: [PATCH] Add a test for deleting a user with federated login --- test/test_api_usage.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_api_usage.py b/test/test_api_usage.py index 06f350ed9..6790961b6 100644 --- a/test/test_api_usage.py +++ b/test/test_api_usage.py @@ -631,6 +631,16 @@ class TestDeleteNamespace(ApiTestCase): self.assertIsNone(notification_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): def test_signin_unicode(self):