Merge pull request #2097 from coreos-inc/prompt-user-test
Add a test for deleting a user with a user prompt
This commit is contained in:
commit
f911c29b4c
2 changed files with 6 additions and 1 deletions
|
@ -783,7 +783,7 @@ def populate_database(minimal=False, with_storage=False):
|
|||
fake_queue = WorkQueue('fakequeue', tf)
|
||||
fake_queue.put(['canonical', 'job', 'name'], '{}')
|
||||
|
||||
model.user.create_user_prompt(new_user_5, 'confirm_username')
|
||||
model.user.create_user_prompt(new_user_4, 'confirm_username')
|
||||
|
||||
while repositoryactioncounter.count_repository_actions():
|
||||
pass
|
||||
|
|
|
@ -719,6 +719,11 @@ class TestDeleteNamespace(ApiTestCase):
|
|||
with check_transitive_deletes():
|
||||
self.deleteResponse(User, expected_code=204)
|
||||
|
||||
def test_delete_prompted_user(self):
|
||||
self.login('randomuser')
|
||||
with check_transitive_deletes():
|
||||
self.deleteResponse(User, expected_code=204)
|
||||
|
||||
|
||||
class TestSignin(ApiTestCase):
|
||||
def test_signin_unicode(self):
|
||||
|
|
Reference in a new issue