Skip to content

Commit bd380f9

Browse files
Add Content-type header to Wiremock scenarios
1 parent c6be86c commit bd380f9

File tree

8 files changed

+27
-3
lines changed

8 files changed

+27
-3
lines changed

test/data/wiremock/mappings/auth/oauth/authorization_code/external_idp_custom_urls.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
},
6262
"response": {
6363
"status": 200,
64+
"headers": {
65+
"Content-Type": "application/json"
66+
},
6467
"jsonBody": {
6568
"access_token": "access-token-123",
6669
"refresh_token": "123",

test/data/wiremock/mappings/auth/oauth/authorization_code/new_tokens_after_failed_refresh.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
},
2121
"response": {
2222
"status": 200,
23+
"headers": {
24+
"Content-Type": "application/json"
25+
},
2326
"jsonBody": {
2427
"access_token": "access-token-123",
2528
"refresh_token": "refresh-token-123",

test/data/wiremock/mappings/auth/oauth/authorization_code/successful_flow.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
},
6262
"response": {
6363
"status": 200,
64+
"headers": {
65+
"Content-Type": "application/json"
66+
},
6467
"jsonBody": {
6568
"access_token": "access-token-123",
6669
"refresh_token": "123",

test/data/wiremock/mappings/auth/oauth/client_credentials/successful_auth_after_failed_refresh.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
},
2222
"response": {
2323
"status": 200,
24+
"headers": {
25+
"Content-Type": "application/json"
26+
},
2427
"jsonBody": {
2528
"access_token": "access-token-123",
2629
"refresh_token": "refresh-token-123",

test/data/wiremock/mappings/auth/oauth/client_credentials/successful_flow.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
},
2424
"response": {
2525
"status": 200,
26+
"headers": {
27+
"Content-Type": "application/json"
28+
},
2629
"jsonBody": {
2730
"access_token": "access-token-123",
2831
"refresh_token": "123",

test/data/wiremock/mappings/auth/oauth/refresh_token/refresh_successful.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
},
2121
"response": {
2222
"status": 200,
23+
"headers": {
24+
"Content-Type": "application/json"
25+
},
2326
"jsonBody": {
2427
"access_token": "access-token-123",
2528
"token_type": "Bearer",

test/data/wiremock/mappings/generic/snowflake_login_failed.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"request": {
88
"urlPathPattern": "/session/v1/login-request",
99
"method": "POST",
10-
"queryParameters": {
11-
"request_id": {
10+
"queryParameters": {
11+
"request_id": {
1212
"matches": ".*"
13-
},
13+
},
1414
"roleName": {
1515
"equalTo": "ANALYST"
1616
}
@@ -31,6 +31,9 @@
3131
},
3232
"response": {
3333
"status": 200,
34+
"headers": {
35+
"Content-Type": "application/json"
36+
},
3437
"jsonBody": {
3538
"data": {
3639
"nextAction": "RETRY_LOGIN",

test/data/wiremock/mappings/generic/snowflake_login_successful.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"response": {
3030
"status": 200,
3131
"fixedDelayMilliseconds": "1000",
32+
"headers": {
33+
"Content-Type": "application/json"
34+
},
3235
"jsonBody": {
3336
"data": {
3437
"masterToken": "token-m1",

0 commit comments

Comments
 (0)