From: Mathias Gibbens Description: Skip tests that need Internet access Forwarded: not-needed diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 1046941..6f9707b 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -11,6 +11,7 @@ import ( ) func TestDiscover(t *testing.T) { + t.Skip("Skipping test that needs Internet access") type wantFields struct { UILocalesSupported bool } diff --git a/pkg/client/rs/resource_server_test.go b/pkg/client/rs/resource_server_test.go index 7a5ced9..22861e7 100644 --- a/pkg/client/rs/resource_server_test.go +++ b/pkg/client/rs/resource_server_test.go @@ -27,81 +27,6 @@ func TestNewResourceServer(t *testing.T) { wantFields *wantFields wantErr bool }{ - { - name: "spotify-full-discovery", - args: args{ - issuer: "https://accounts.spotify.com", - authorizer: nil, - options: []Option{}, - }, - wantFields: &wantFields{ - issuer: "https://accounts.spotify.com", - tokenURL: "https://accounts.spotify.com/api/token", - introspectURL: "", - authFn: nil, - }, - wantErr: false, - }, - { - name: "spotify-with-static-tokenurl", - args: args{ - issuer: "https://accounts.spotify.com", - authorizer: nil, - options: []Option{ - WithStaticEndpoints( - "https://some.host/token-url", - "", - ), - }, - }, - wantFields: &wantFields{ - issuer: "https://accounts.spotify.com", - tokenURL: "https://some.host/token-url", - introspectURL: "", - authFn: nil, - }, - wantErr: false, - }, - { - name: "spotify-with-static-introspecturl", - args: args{ - issuer: "https://accounts.spotify.com", - authorizer: nil, - options: []Option{ - WithStaticEndpoints( - "", - "https://some.host/instrospect-url", - ), - }, - }, - wantFields: &wantFields{ - issuer: "https://accounts.spotify.com", - tokenURL: "https://accounts.spotify.com/api/token", - introspectURL: "https://some.host/instrospect-url", - authFn: nil, - }, - wantErr: false, - }, - { - name: "spotify-with-all-static-endpoints", - args: args{ - issuer: "https://accounts.spotify.com", - authorizer: nil, - options: []Option{ - WithStaticEndpoints( - "https://some.host/token-url", - "https://some.host/instrospect-url", - ), - }, - }, - wantFields: &wantFields{ - issuer: "https://accounts.spotify.com", - tokenURL: "https://some.host/token-url", - introspectURL: "https://some.host/instrospect-url", - authFn: nil, - }, - wantErr: false, - }, { name: "bad-discovery", args: args{ @@ -182,6 +107,7 @@ func TestNewResourceServer(t *testing.T) { } func TestIntrospect(t *testing.T) { + t.Skip("Skipping test that needs Internet access") type args struct { ctx context.Context rp ResourceServer