diff --git a/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-4-4.json b/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-4-4.json index b0144c28df..fcd44fc134 100644 --- a/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-4-4.json +++ b/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-4-4.json @@ -3,7 +3,12 @@ "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", - "method": "GET" + "method": "GET", + "headers": { + "If-None-Match": { + "absent" : true + } + } }, "response": { "status": 200, diff --git a/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-6-6-2.json b/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-6-6-2.json new file mode 100644 index 0000000000..d6d17d2395 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/OkHttpConnector_Cache_MaxAgeDefault_Zero/mappings/repos_hub4j-test-org_github-api-6-6-2.json @@ -0,0 +1,46 @@ +{ + "id": "e20958bf-185d-4f64-a524-f7aa7efdd528", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "If-None-Match": { + "equalTo": "W/\"295ae3430c604f3d10b6eb145fe511b5\"" + } + } + }, + "response": { + "status": 304, + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Server": "GitHub.com", + "Status": "304 Not Modified", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4968", + "X-RateLimit-Reset": "{{now offset='1 hours' format='unix'}}", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"295ae3430c604f3d10b6eb145fe511b5\"", + "Last-Modified": "{{now offset='-2 seconds' timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FBD4:8499:15E0D75:19F3E2B:5D9258A6" + } + }, + "uuid": "e20958bf-185d-4f64-a524-f7aa7efdd528", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-1", + "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-2", + "insertionIndex": 6 +} \ No newline at end of file