Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete system user test case from SL demo #7

Open
pgracio opened this issue Jun 18, 2016 · 1 comment
Open

Delete system user test case from SL demo #7

pgracio opened this issue Jun 18, 2016 · 1 comment

Comments

@pgracio
Copy link
Collaborator

pgracio commented Jun 18, 2016

@jason-p-pickering

A fuller description is here

https://lists.launchpad.net/dhis2-devs/msg45471.html

which describes deletion of user through the UI.

The "system" user in the SL demo has a range of objects which are associated with the user. Using the "admin" or other super user, the test should attempt to delete the "system" user from the SL database. Expected result would be successful deletion, but currently, it seems this operation is successful to some extent. The user is deleted, but an HTTP 500 error is returned to the browser, and it appears that in fact the user is not deleted.

The more generic test would be to add dependent objects which are associated with the "userinfo" object. There are a wide range of them and the deletion handler will need to clean them all up to successfully delete a user.

@pgracio
Copy link
Collaborator Author

pgracio commented Aug 26, 2016

https://github.com/dhis2/api-tests/blob/master/modules/users/user.js#L121

@jason-p-pickering I think this test case already covers this scenario. What should be the expected response, 200?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant