Skip to content

Commit

Permalink
Serverless: switch to _reset-internal-credentials. (#4202)
Browse files Browse the repository at this point in the history
The previous _reset-credentials endpoint will soon return a less
privileged user. The internal variant returns one with operator
privileges to allow inspect cluster health for testing purposes.
  • Loading branch information
cmacknz authored Feb 9, 2024
1 parent d8f5134 commit 110741e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testing/ess/serverless.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (srv *ServerlessClient) WaitForKibana(ctx context.Context) error {

// ResetCredentials resets the credentials for the given ESS instance
func (srv *ServerlessClient) ResetCredentials(ctx context.Context) (CredResetResponse, error) {
resetURL := fmt.Sprintf("%s/api/v1/serverless/projects/%s/%s/_reset-credentials", serverlessURL, srv.projectType, srv.proj.ID)
resetURL := fmt.Sprintf("%s/api/v1/serverless/projects/%s/%s/_reset-internal-credentials", serverlessURL, srv.projectType, srv.proj.ID)

resetHandler, err := http.NewRequestWithContext(ctx, "POST", resetURL, nil)
if err != nil {
Expand Down

0 comments on commit 110741e

Please sign in to comment.