Skip to content

Remove deprecated upsert password endpoint#15855

Merged
strideynet merged 8 commits into
masterfrom
strideynet/remove-upsert-password-endpoint
Aug 30, 2022
Merged

Remove deprecated upsert password endpoint#15855
strideynet merged 8 commits into
masterfrom
strideynet/remove-upsert-password-endpoint

Conversation

@strideynet
Copy link
Copy Markdown
Contributor

This endpoint is replaced by the ChangePassword endpoint.

Comment thread lib/auth/tls_test.go
require.Error(t, err)

err = clt.UpsertPassword("user1", pass)
err = tt.server.Auth().UpsertPassword("user1", pass)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How come clt.UpsertPassword was replaced with tt.server.Auth().UpsertPassword instead of clt.ChangePassword?

Copy link
Copy Markdown
Contributor Author

@strideynet strideynet Aug 26, 2022

Choose a reason for hiding this comment

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

So this test is relying on some ✨ additional and unexpected behaviour ✨ of the UpsertPassword method on the auth server which means if you upsert the password for a user that does not exist, the user is created.

@strideynet strideynet enabled auto-merge (squash) August 30, 2022 08:09
@strideynet strideynet merged commit 26d199d into master Aug 30, 2022
@github-actions
Copy link
Copy Markdown
Contributor

@strideynet See the table below for backport results.

Branch Result
branch/v10 Failed
branch/v9 Failed

@strideynet strideynet deleted the strideynet/remove-upsert-password-endpoint branch August 30, 2022 10:10
strideynet added a commit that referenced this pull request Aug 30, 2022
* remove UpsertPassword endpoint from Auth HTTP API server

* fix merge

* Fix TestUsersCRUD
strideynet added a commit that referenced this pull request Aug 30, 2022
* remove UpsertPassword endpoint from Auth HTTP API server

* fix merge

* Fix TestUsersCRUD
strideynet added a commit that referenced this pull request Aug 31, 2022
* Remove deprecated upsert password endpoint (#15855)

* remove UpsertPassword endpoint from Auth HTTP API server

* fix merge

* Fix TestUsersCRUD

* Correct merge mistake
strideynet added a commit that referenced this pull request Sep 1, 2022
Remove deprecated upsert password endpoint (#15855)

* remove UpsertPassword endpoint from Auth HTTP API server

* fix merge

* Fix TestUsersCRUD
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

Successfully merging this pull request may close these issues.

4 participants