Browse Source

Fix linting issues.

Signed-off-by: Daniel Haus <dhaus@redhat.com>
pull/2342/head
Daniel Haus 4 years ago
parent
commit
6256b863b0
No known key found for this signature in database
GPG Key ID: 262B7643F39EB8A9
  1. 6
      connector/openshift/openshift.go
  2. 4
      connector/openshift/openshift_test.go

6
connector/openshift/openshift.go

@ -37,8 +37,10 @@ type Config struct {
RootCA string `json:"rootCA"`
}
var _ connector.CallbackConnector = (*openshiftConnector)(nil)
var _ connector.RefreshConnector = (*openshiftConnector)(nil)
var (
_ connector.CallbackConnector = (*openshiftConnector)(nil)
_ connector.RefreshConnector = (*openshiftConnector)(nil)
)
type openshiftConnector struct {
apiURL string

4
connector/openshift/openshift_test.go

@ -203,7 +203,7 @@ func TestRefreshIdentity(t *testing.T) {
oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{
Endpoint: oauth2.Endpoint{
AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL),
AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL),
TokenURL: fmt.Sprintf("%s/oauth/token", s.URL),
},
}}
@ -242,7 +242,7 @@ func TestRefreshIdentityFailure(t *testing.T) {
oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{
Endpoint: oauth2.Endpoint{
AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL),
AuthURL: fmt.Sprintf("%s/oauth/authorize", s.URL),
TokenURL: fmt.Sprintf("%s/oauth/token", s.URL),
},
}}

Loading…
Cancel
Save