Find us on GitHub

HEAD for /ipfs/ with only-if-cached succeeds when in local datastore

Metadata

Conformance Version:main
Implementation Version:main (123fd08cb32e762c208745ed3e032ea6830d09e7)
Results Generated At:2023-09-15T09:58:46Z
Job URL:https://github.com/singulargarden/bifrost-gateway/actions/runs/6196631481

Results

Implementationbifrost-gateway
Conformance Versionmain
Total1
Status code1

Logs - Job URL

TestGatewayCache/HEAD_for_%2Fipfs%2F_with_only-if-cached_succeeds_when_in_local_datastore

=== RUN   TestGatewayCache/HEAD_for_%2Fipfs%2F_with_only-if-cached_succeeds_when_in_local_datastore
--- FAIL: TestGatewayCache/HEAD_for_%2Fipfs%2F_with_only-if-cached_succeeds_when_in_local_datastore (0.00s)

TestGatewayCache/HEAD_for_%2Fipfs%2F_with_only-if-cached_succeeds_when_in_local_datastore/Status_code

=== RUN   TestGatewayCache/HEAD_for_%2Fipfs%2F_with_only-if-cached_succeeds_when_in_local_datastore/Status_code
    run.go:53: 
        Name: HEAD for /ipfs/ with only-if-cached succeeds when in local datastore
        Hint: 
        
        Error: Status code is not 200. It is 412
        
        Expected Request:
        {
          "method": "HEAD",
          "path": "/ipfs/bafybeib3ffl2teiqdncv3mkz4r23b5ctrwkzrrhctdbne6iboayxuxk5ui/root2/root3/root4/?format=json",
          "headers": {
            "Cache-Control": "only-if-cached"
          }
        }
        
        Actual Request:
        HEAD /ipfs/bafybeib3ffl2teiqdncv3mkz4r23b5ctrwkzrrhctdbne6iboayxuxk5ui/root2/root3/root4/?format=json HTTP/1.1
        Host: 127.0.0.1:8081
        User-Agent: Go-http-client/1.1
        Cache-Control: only-if-cached
        
        
        
        Expected Response:
        {
          "statusCode": 200
        }
        
        Actual Response:
        HTTP/1.1 412 Precondition Failed
        Connection: close
        Date: Fri, 15 Sep 2023 10:03:09 GMT
        
        
        
--- FAIL: TestGatewayCache/HEAD_for_%2Fipfs%2F_with_only-if-cached_succeeds_when_in_local_datastore/Status_code (0.00s)