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

NAS-129925 / 24.10 / Fix test cleanup after creating temporary admin user #13982

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

anodos325
Copy link
Contributor

This fixes a test failure due to recent bugfix to prevent deletion of immutable users. The test in question manually edits the account.bsdusers table to allow testing logic related to case when root account is disabled, but then uses user.delete to remove the temporary admin account. The fix is to use datastore plugin to directly delete the new admin user.

This fixes a test failure due to recent bugfix to prevent deletion
of immutable users. The test in question manually edits the
account.bsdusers table to allow testing logic related to case when
root account is disabled, but then uses user.delete to remove the
temporary admin account. The fix is to use datastore plugin to
directly delete the new admin user.
@anodos325 anodos325 requested a review from a team July 5, 2024 11:33
@anodos325 anodos325 added the jira label Jul 5, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Jul 5, 2024

@bugclerk bugclerk changed the title Fix test cleanup after creating temporary admin user NAS-129925 / 24.10 / Fix test cleanup after creating temporary admin user Jul 5, 2024
@anodos325 anodos325 merged commit d1530a2 into master Jul 5, 2024
2 of 3 checks passed
@anodos325 anodos325 deleted the fix-admin-delete-test branch July 5, 2024 11:43
@bugclerk
Copy link
Contributor

bugclerk commented Jul 5, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants