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

test updated to check status 400 for create user without role #74

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

nikhilsinhaparseable
Copy link
Contributor

No description provided.

AssertUserRole(t, NewGlob.QueryClient, "dummyuser", "dummyrole", dummyRole)
RegenPassword(t, NewGlob.QueryClient, "dummyuser")
DeleteUser(t, NewGlob.QueryClient, "dummyuser")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing all this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreateUser will fail without the role, hence AssignRolesToUser will not work.
There are two more tests -

  1. TestSmoke_NewUserNoRole - that should give 400 status
  2. TestSmokeRbacBasic - that creates user with role which should give 200 status

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can't we add the role in the CreateUser call?

@nitisht nitisht merged commit 3e08497 into parseablehq:main Sep 4, 2024
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants