Closed as not planned
Closed as not planned
Description
Checklist
- This is a bug report, not a question. Ask questions on discuss.ipfs.io.
- I have searched on the issue tracker for my bug.
- I am running the latest kubo version or have an issue updating.
Installation method
ipfs-update or dist.ipfs.tech
Version
Kubo version: 0.18.1
Repo version: 13
System version: arm64/darwin
Golang version: go1.19.1
Config
No response
Description
In sharness t0118 it seems that the test is misusing the invert option in grep:
kubo/test/sharness/t0118-gateway-car.sh
Lines 93 to 96 in ed4d6b7
The comment says that we should NOT return a Content-Length
, but we do:
› cat curl_output | grep Content-Length ☹
< Access-Control-Expose-Headers: Content-Length
< Content-Length: 127
(tested with Kubo and a car gateway from go-libipfs)
Changing the test to : ! grep "< Content-Length:" curl_output
reveals the error.
I found a few other cases where we use grep -v
and that might have a similar issue:
> ack 'grep.*-v' ./ - | pbcopy
t0119-prometheus.sh
t0250-files-api.sh
t0140-swarm.sh
t0060-daemon.sh
t0080-repo.sh
t0230-channel-streaming-http-content-type.sh
t0141-addfilter.sh
t0046-id-hash.sh
Activity