| 1 |
From: Mathias Gibbens <[email protected]> |
| 2 |
Description: Skip tests that need Internet access |
| 3 |
Forwarded: not-needed |
| 4 |
diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go |
| 5 |
index 1046941..6f9707b 100644 |
| 6 |
--- a/pkg/client/client_test.go |
| 7 |
+++ b/pkg/client/client_test.go |
| 8 |
@@ -11,6 +11,7 @@ import ( |
| 9 |
) |
| 10 |
|
| 11 |
func TestDiscover(t *testing.T) { |
| 12 |
+ t.Skip("Skipping test that needs Internet access") |
| 13 |
type wantFields struct { |
| 14 |
UILocalesSupported bool |
| 15 |
} |
| 16 |
diff --git a/pkg/client/rs/resource_server_test.go b/pkg/client/rs/resource_server_test.go |
| 17 |
index 7a5ced9..22861e7 100644 |
| 18 |
--- a/pkg/client/rs/resource_server_test.go |
| 19 |
+++ b/pkg/client/rs/resource_server_test.go |
| 20 |
@@ -27,81 +27,6 @@ func TestNewResourceServer(t *testing.T) { |
| 21 |
wantFields *wantFields |
| 22 |
wantErr bool |
| 23 |
}{ |
| 24 |
- { |
| 25 |
- name: "spotify-full-discovery", |
| 26 |
- args: args{ |
| 27 |
- issuer: "https://accounts.spotify.com", |
| 28 |
- authorizer: nil, |
| 29 |
- options: []Option{}, |
| 30 |
- }, |
| 31 |
- wantFields: &wantFields{ |
| 32 |
- issuer: "https://accounts.spotify.com", |
| 33 |
- tokenURL: "https://accounts.spotify.com/api/token", |
| 34 |
- introspectURL: "", |
| 35 |
- authFn: nil, |
| 36 |
- }, |
| 37 |
- wantErr: false, |
| 38 |
- }, |
| 39 |
- { |
| 40 |
- name: "spotify-with-static-tokenurl", |
| 41 |
- args: args{ |
| 42 |
- issuer: "https://accounts.spotify.com", |
| 43 |
- authorizer: nil, |
| 44 |
- options: []Option{ |
| 45 |
- WithStaticEndpoints( |
| 46 |
- "https://some.host/token-url", |
| 47 |
- "", |
| 48 |
- ), |
| 49 |
- }, |
| 50 |
- }, |
| 51 |
- wantFields: &wantFields{ |
| 52 |
- issuer: "https://accounts.spotify.com", |
| 53 |
- tokenURL: "https://some.host/token-url", |
| 54 |
- introspectURL: "", |
| 55 |
- authFn: nil, |
| 56 |
- }, |
| 57 |
- wantErr: false, |
| 58 |
- }, |
| 59 |
- { |
| 60 |
- name: "spotify-with-static-introspecturl", |
| 61 |
- args: args{ |
| 62 |
- issuer: "https://accounts.spotify.com", |
| 63 |
- authorizer: nil, |
| 64 |
- options: []Option{ |
| 65 |
- WithStaticEndpoints( |
| 66 |
- "", |
| 67 |
- "https://some.host/instrospect-url", |
| 68 |
- ), |
| 69 |
- }, |
| 70 |
- }, |
| 71 |
- wantFields: &wantFields{ |
| 72 |
- issuer: "https://accounts.spotify.com", |
| 73 |
- tokenURL: "https://accounts.spotify.com/api/token", |
| 74 |
- introspectURL: "https://some.host/instrospect-url", |
| 75 |
- authFn: nil, |
| 76 |
- }, |
| 77 |
- wantErr: false, |
| 78 |
- }, |
| 79 |
- { |
| 80 |
- name: "spotify-with-all-static-endpoints", |
| 81 |
- args: args{ |
| 82 |
- issuer: "https://accounts.spotify.com", |
| 83 |
- authorizer: nil, |
| 84 |
- options: []Option{ |
| 85 |
- WithStaticEndpoints( |
| 86 |
- "https://some.host/token-url", |
| 87 |
- "https://some.host/instrospect-url", |
| 88 |
- ), |
| 89 |
- }, |
| 90 |
- }, |
| 91 |
- wantFields: &wantFields{ |
| 92 |
- issuer: "https://accounts.spotify.com", |
| 93 |
- tokenURL: "https://some.host/token-url", |
| 94 |
- introspectURL: "https://some.host/instrospect-url", |
| 95 |
- authFn: nil, |
| 96 |
- }, |
| 97 |
- wantErr: false, |
| 98 |
- }, |
| 99 |
{ |
| 100 |
name: "bad-discovery", |
| 101 |
args: args{ |
| 102 |
@@ -182,6 +107,7 @@ func TestNewResourceServer(t *testing.T) { |
| 103 |
} |
| 104 |
|
| 105 |
func TestIntrospect(t *testing.T) { |
| 106 |
+ t.Skip("Skipping test that needs Internet access") |
| 107 |
type args struct { |
| 108 |
ctx context.Context |
| 109 |
rp ResourceServer |