File: 000-skip-network-test.patch

package info (click to toggle)
golang-github-zitadel-oidc 3.44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,520 kB
  • sloc: makefile: 5
file content (109 lines) | stat: -rw-r--r-- 2,981 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
From: Mathias Gibbens <gibmat@debian.org>
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