Skip to content

Commit 898a287

Browse files
Manuelvaasrubenhoenle
authored andcommitted
fixed well-known test
1 parent 3701d9d commit 898a287

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

internal/pkg/auth/utils_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ func TestParseWellKnownConfig(t *testing.T) {
133133
{
134134
name: "success",
135135
getFails: false,
136-
getResponse: `{"issuer":"issuer","authorization_endpoint":"auth","token_endpoint":"token"}`,
136+
getResponse: `{"issuer":"https://issuer.stackit.cloud/endpoint","authorization_endpoint":"https://auth.stackit.cloud/enpoint","token_endpoint":"https://token.stackit.cloud/endpoint"}`,
137137
isValid: true,
138138
expected: &wellKnownConfig{
139-
Issuer: "issuer",
140-
AuthorizationEndpoint: "auth",
141-
TokenEndpoint: "token",
139+
Issuer: "https://issuer.stackit.cloud/endpoint",
140+
AuthorizationEndpoint: "https://auth.stackit.cloud/enpoint",
141+
TokenEndpoint: "https://token.stackit.cloud/endpoint",
142142
},
143143
},
144144
{
@@ -158,21 +158,21 @@ func TestParseWellKnownConfig(t *testing.T) {
158158
{
159159
name: "missing_issuer",
160160
getFails: true,
161-
getResponse: `{"authorization_endpoint":"auth","token_endpoint":"token"}`,
161+
getResponse: `{"authorization_endpoint":"https://auth.stackit.cloud/enpoint","token_endpoint":"https://token.stackit.cloud/endpoint"}`,
162162
isValid: false,
163163
expected: nil,
164164
},
165165
{
166166
name: "missing_authorization",
167167
getFails: true,
168-
getResponse: `{"issuer":"issuer","token_endpoint":"token"}`,
168+
getResponse: `{"issuer":"https://issuer.stackit.cloud/endpoint","token_endpoint":"https://token.stackit.cloud/endpoint"}`,
169169
isValid: false,
170170
expected: nil,
171171
},
172172
{
173173
name: "missing_token",
174174
getFails: true,
175-
getResponse: `{"issuer":"issuer","authorization_endpoint":"auth"}`,
175+
getResponse: `{"issuer":"https://issuer.stackit.cloud/endpoint","authorization_endpoint":"https://auth.stackit.cloud/enpoint"}`,
176176
isValid: false,
177177
expected: nil,
178178
},

0 commit comments

Comments
 (0)