Fix linting issues.
Signed-off-by: Daniel Haus <dhaus@redhat.com>
This commit is contained in:
parent
6d55fe1c80
commit
6256b863b0
@ -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
|
||||||
|
@ -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),
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user