Skip to content

Commit

Permalink
DO NOT MERGE: pretend vendor update of library-go dep
Browse files Browse the repository at this point in the history
This commit brings in the changes done in openshift/library-go#1531
  • Loading branch information
liouk committed Jun 1, 2023
1 parent 603c3af commit f6df017
Show file tree
Hide file tree
Showing 6 changed files with 1,448 additions and 39 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/login/loginoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (o *LoginOptions) gatherAuthInfo() error {
clientConfig.CertFile = o.CertFile
clientConfig.KeyFile = o.KeyFile

token, err := tokenrequest.RequestToken(o.Config, o.getAuthChallengeHandler())
token, err := tokenrequest.RequestTokenWithChallengeHandlers(o.Config, o.getAuthChallengeHandler())
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/helpers/authchallengers/negotiator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ func TestSetDefaultOsinConfig(t *testing.T) {
ClientConfig: &restclient.Config{Host: tc.hostWrapper(s.URL)},
TokenFlow: tc.tokenFlow,
}
if err := opts.SetDefaultOsinConfig(); err != nil {
if err := opts.SetDefaultOsinConfig("openshift-challenging-client", nil); err != nil {
t.Errorf("%s: unexpected SetDefaultOsinConfig error: %v", tc.name, err)
continue
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f6df017

Please sign in to comment.