Skip to content

Commit 0940530

Browse files
committed
Fix mappings to allow for variability between windows and other OSes
1 parent 3768528 commit 0940530

10 files changed

+14
-60
lines changed

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-10-10-2.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-12-12.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"4f508593b64df214fee8f6ab42df633c\""
9+
"matches": "^(W/)?\"4f508593b64df214fee8f6ab42df633c\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-13-13.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"4f508593b64df214fee8f6ab42df633c\""
9+
"matches": "^(W/)?\"4f508593b64df214fee8f6ab42df633c\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-14-14.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"4f508593b64df214fee8f6ab42df633c\""
9+
"matches": "^(W/)?\"4f508593b64df214fee8f6ab42df633c\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-16-16.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"31f73a7ecc35bbecec125851ce166af4\""
9+
"matches": "^(W/)?\"31f73a7ecc35bbecec125851ce166af4\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-17-17.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"31f73a7ecc35bbecec125851ce166af4\""
9+
"matches": "^(W/)?\"31f73a7ecc35bbecec125851ce166af4\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-4-4.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"name": "repos_hub4j-test-org_github-api",
44
"request": {
55
"url": "/repos/hub4j-test-org/github-api",
6-
"method": "GET"
6+
"method": "GET",
7+
"headers": {
8+
"If-None-Match": {
9+
"absent" : true
10+
}
11+
}
712
},
813
"response": {
914
"status": 200,

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-6-6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"295ae3430c604f3d10b6eb145fe511b5\""
9+
"matches": "^(W/)?\"295ae3430c604f3d10b6eb145fe511b5\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-7-7.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"295ae3430c604f3d10b6eb145fe511b5\""
9+
"matches": "^(W/)?\"295ae3430c604f3d10b6eb145fe511b5\"$"
1010
}
1111
}
1212
},

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-8-8.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"method": "GET",
77
"headers": {
88
"If-None-Match": {
9-
"equalTo": "\"295ae3430c604f3d10b6eb145fe511b5\""
9+
"matches": "^(W/)?\"295ae3430c604f3d10b6eb145fe511b5\"$"
1010
}
1111
}
1212
},

0 commit comments

Comments
 (0)