Skip to content

Commit 7f6ee00

Browse files
feature(#22): this commit update endpoint tests to include 'master' prefix in url requests
1 parent 57135a8 commit 7f6ee00

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Applications/Backend/Tests/Integration/Endpoints/WellKnownEndpointTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public async Task WhenGetOpenIdConfiguration_ShouldReturnConfiguration()
1010
var httpClient = factory.HttpClient;
1111

1212
/* act: send GET request to open id configuration endpoint */
13-
var response = await httpClient.GetAsync(".well-known/openid-configuration");
13+
var response = await httpClient.GetAsync("master/.well-known/openid-configuration");
1414
var configuration = await response.Content.ReadFromJsonAsync<OpenIDConfigurationScheme>();
1515

1616
/* assert: response should be 200 OK */
@@ -33,7 +33,7 @@ public async Task WhenGetOpenIdConfiguration_ShouldIncludeSupportedResponseTypes
3333
var httpClient = factory.HttpClient;
3434

3535
/* act: send GET request to OpenID configuration endpoint */
36-
var response = await httpClient.GetAsync(".well-known/openid-configuration");
36+
var response = await httpClient.GetAsync("master/.well-known/openid-configuration");
3737
var configuration = await response.Content.ReadFromJsonAsync<OpenIDConfigurationScheme>();
3838

3939
/* assert: response should be 200 OK */
@@ -52,7 +52,7 @@ public async Task WhenGetOpenIdConfiguration_ShouldIncludeSubjectTypes()
5252
var httpClient = factory.HttpClient;
5353

5454
/* act: send GET request to OpenID configuration endpoint */
55-
var response = await httpClient.GetAsync(".well-known/openid-configuration");
55+
var response = await httpClient.GetAsync("master/.well-known/openid-configuration");
5656
var configuration = await response.Content.ReadFromJsonAsync<OpenIDConfigurationScheme>();
5757

5858
/* assert: response should be 200 OK */
@@ -71,7 +71,7 @@ public async Task WhenGetOpenIdConfiguration_ShouldIncludeSigningAlgorithms()
7171
var httpClient = factory.HttpClient;
7272

7373
/* act: send GET request to OpenID configuration endpoint */
74-
var response = await httpClient.GetAsync(".well-known/openid-configuration");
74+
var response = await httpClient.GetAsync("master/.well-known/openid-configuration");
7575
var configuration = await response.Content.ReadFromJsonAsync<OpenIDConfigurationScheme>();
7676

7777
/* assert: response should be 200 OK */
@@ -91,7 +91,7 @@ public async Task WhenGetJsonWebKeys_ShouldReturnJwks()
9191
var httpClient = factory.HttpClient;
9292

9393
/* act: send GET request to JWKS endpoint */
94-
var response = await httpClient.GetAsync(".well-known/jwks.json");
94+
var response = await httpClient.GetAsync("master/.well-known/jwks.json");
9595
var jwks = await response.Content.ReadFromJsonAsync<JsonWebKeySetScheme>();
9696

9797
/* assert: response should be 200 OK */
@@ -109,7 +109,7 @@ public async Task WhenGetJsonWebKeys_ShouldReturnKeysWithRequiredProperties()
109109
var httpClient = factory.HttpClient;
110110

111111
/* act: send GET request to JWKS endpoint */
112-
var response = await httpClient.GetAsync(".well-known/jwks.json");
112+
var response = await httpClient.GetAsync("master/.well-known/jwks.json");
113113
var jwks = await response.Content.ReadFromJsonAsync<JsonWebKeySetScheme>();
114114

115115
/* assert: response should be 200 OK */
@@ -143,10 +143,10 @@ public async Task WhenGetJsonWebKeysMultipleTimes_ShouldReturnConsistentKeys()
143143
var httpClient = factory.HttpClient;
144144

145145
/* act: send GET request twice to JWKS endpoint */
146-
var firstResponse = await httpClient.GetAsync(".well-known/jwks.json");
146+
var firstResponse = await httpClient.GetAsync("master/.well-known/jwks.json");
147147
var firstJwks = await firstResponse.Content.ReadFromJsonAsync<JsonWebKeySetScheme>();
148148

149-
var secondResponse = await httpClient.GetAsync(".well-known/jwks.json");
149+
var secondResponse = await httpClient.GetAsync("master/.well-known/jwks.json");
150150
var secondJwks = await secondResponse.Content.ReadFromJsonAsync<JsonWebKeySetScheme>();
151151

152152
/* assert: both responses should be 200 OK */
@@ -168,7 +168,7 @@ public async Task WhenGetOpenIdConfiguration_ShouldHaveMatchingJwksUri()
168168
var httpClient = factory.HttpClient;
169169

170170
/* act: send GET request to OpenID configuration endpoint */
171-
var response = await httpClient.GetAsync(".well-known/openid-configuration");
171+
var response = await httpClient.GetAsync("master/.well-known/openid-configuration");
172172
var configuration = await response.Content.ReadFromJsonAsync<OpenIDConfigurationScheme>();
173173

174174
/* assert: response should be 200 OK */
@@ -192,7 +192,7 @@ public async Task WhenGetOpenIdConfiguration_ShouldHaveValidEndpointUrls()
192192
var httpClient = factory.HttpClient;
193193

194194
/* act: send GET request to OpenID configuration endpoint */
195-
var response = await httpClient.GetAsync(".well-known/openid-configuration");
195+
var response = await httpClient.GetAsync("master/.well-known/openid-configuration");
196196
var configuration = await response.Content.ReadFromJsonAsync<OpenIDConfigurationScheme>();
197197

198198
/* assert: response should be 200 OK */

0 commit comments

Comments
 (0)