Fix linting issues.

Signed-off-by: Daniel Haus <dhaus@redhat.com>
This commit is contained in:
Daniel Haus 2021-12-06 13:28:09 +01:00
parent 6d55fe1c80
commit 6256b863b0
No known key found for this signature in database
GPG Key ID: 262B7643F39EB8A9
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -203,7 +203,7 @@ func TestRefreshIdentity(t *testing.T) {
oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{ oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{
Endpoint: oauth2.Endpoint{ 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), 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{ oc := openshiftConnector{apiURL: s.URL, httpClient: h, oauth2Config: &oauth2.Config{
Endpoint: oauth2.Endpoint{ 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), TokenURL: fmt.Sprintf("%s/oauth/token", s.URL),
}, },
}} }}