Skip to content

Commit 319d2d1

Browse files
committed
Update cache test Date and Limit values
1 parent 37de3a4 commit 319d2d1

27 files changed

Lines changed: 29 additions & 29 deletions

File tree

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/DefaultConnector/__files/rate_limit-56a45440-7250-4615-9e39-f32ed5f24d40.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"rate": {
2525
"limit": 5000,
2626
"remaining": 4717,
27-
"reset": 1569866107
27+
"reset": {{now offset='1 hours' format='unix'}}
2828
}
2929
}

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/__files/rate_limit-36588a64-cb68-4ea5-8995-c2cdced6b84a.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"rate": {
2525
"limit": 5000,
2626
"remaining": 4970,
27-
"reset": 1569875630
27+
"reset": {{now offset='1 hours' format='unix'}}
2828
}
2929
}

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/orgs_github-api-test-org-3-ec2931.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"status": 200,
1010
"bodyFileName": "orgs_github-api-test-org-ec2931f3-a8cd-4482-a866-aca52276d270.json",
1111
"headers": {
12-
"Date": "{{now}}",
12+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1313
"Content-Type": "application/json; charset=utf-8",
1414
"Server": "GitHub.com",
1515
"Status": "200 OK",

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/rate_limit-2-36588a.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"status": 200,
1010
"bodyFileName": "rate_limit-36588a64-cb68-4ea5-8995-c2cdced6b84a.json",
1111
"headers": {
12-
"Date": "{{now}}",
12+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1313
"Content-Type": "application/json; charset=utf-8",
1414
"Server": "GitHub.com",
1515
"Status": "200 OK",

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_github-api-test-org_github-api-10-10-5432b2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"status": 200,
1010
"bodyFileName": "repos_github-api-test-org_github-api-5432b23c-70f2-4ecf-a380-a232afeef015.json",
1111
"headers": {
12-
"Date": "{{now}}",
12+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1313
"Content-Type": "application/json; charset=utf-8",
1414
"Server": "GitHub.com",
1515
"Status": "200 OK",

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_github-api-test-org_github-api-11-11-2e2a6e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"response": {
1414
"status": 304,
1515
"headers": {
16-
"Date": "{{now}}",
16+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1717
"Server": "GitHub.com",
1818
"Status": "304 Not Modified",
1919
"X-RateLimit-Limit": "5000",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"response": {
1414
"status": 304,
1515
"headers": {
16-
"Date": "{{now}}",
16+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1717
"Server": "GitHub.com",
1818
"Status": "304 Not Modified",
1919
"X-RateLimit-Limit": "5000",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"response": {
1414
"status": 304,
1515
"headers": {
16-
"Date": "{{now}}",
16+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1717
"Server": "GitHub.com",
1818
"Status": "304 Not Modified",
1919
"X-RateLimit-Limit": "5000",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"status": 200,
1515
"bodyFileName": "repos_github-api-test-org_github-api-7e396e4c-c5eb-4bc0-a5cd-3d9f75fac0f0.json",
1616
"headers": {
17-
"Date": "{{now}}",
17+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1818
"Content-Type": "application/json; charset=utf-8",
1919
"Server": "GitHub.com",
2020
"Status": "200 OK",

src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_github-api-test-org_github-api-15-15-bc8d8b.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"response": {
1414
"status": 304,
1515
"headers": {
16-
"Date": "{{now}}",
16+
"Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}",
1717
"Server": "GitHub.com",
1818
"Status": "304 Not Modified",
1919
"X-RateLimit-Limit": "5000",

0 commit comments

Comments
 (0)