-
Notifications
You must be signed in to change notification settings - Fork 319
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
add 'reset_password' arg to user resource #127
Conversation
Can we have "null" as default? so that it would be true on user creation. |
Sorry, but don't know what you mean with that. |
I would like that by default we do not change that option |
Please show me an example how/what to do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess @roidelapluie meant not to use a default since it's an optional parameter and let Gitlab handle it. In go-gitlab lib, it's an omitempty field (https://github.com/xanzy/go-gitlab/blob/master/users.go#L149).
Could you please add this parameter in the tests file so it's tested as well?
I can remove default value. But wouldn't be a bit inconsistent at the end, if you look at |
I removed default value, so after upgrading the provider there won't be state change. Regarding tests, this field is somehow special, edge case. You can only set it on create, you can't update it, and you don't get it in response. So don't know what to test. |
@roidelapluie this cannot be tested |
Can we still add two tests: creating a user with and without that attribute ? thanks |
even if we do not check the result because we can't |
I was going to create an issue requesting this feature but I found this. Can I ask what the status is here? This feature would be really helpful. As of right now the only way we can get a new user into out Gitlab is to create a random password when creating the user, they then get an email, but they have to go through the forgotten password flow to login. |
we just need an acc test |
@UrosSimovic is it possible to add the 2 tests that @roidelapluie requested so this can get merged? Just a creating a user with and without that attribute? |
Will this be ok? I added the test with |
No description provided.