Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add t0123 & t0113 - gateway - json - cbor - symlinks #25

Merged
merged 23 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1ffd308
fix: remove t0440 - kubo specific
laurentsenta Mar 27, 2023
6c0e6e0
fix: style
laurentsenta Mar 27, 2023
90c3427
feat: add NOT and sprintf in header
laurentsenta Mar 27, 2023
42248a4
feat: t0123 - dag pb conversion tests
laurentsenta Mar 27, 2023
942a53a
feat: test plain code (broken)
laurentsenta Mar 27, 2023
10783f6
wip: load json
laurentsenta Mar 27, 2023
da7c7d1
chore: move to boxo
laurentsenta Mar 28, 2023
7123544
feat: add json check + 123 fixtures plain
laurentsenta Mar 28, 2023
4afb1e2
feat: add body bytes check + exists + more t0123
laurentsenta Mar 29, 2023
a837376
fix: 123 - load cids from fixtures
laurentsenta Mar 29, 2023
8a10499
feat: test panic instead of exit
laurentsenta Mar 29, 2023
0cae6c2
feat: t0123 - compare decoded dags
laurentsenta Mar 29, 2023
d0fb055
fix: t0123 - update notes
laurentsenta Mar 29, 2023
ae81ddf
refactor: unify check API to simplif code
laurentsenta Mar 30, 2023
e88990e
feat: t0113 - implement missing listing
laurentsenta Mar 30, 2023
e065f29
feat: 123 - loads raw fixtures + checkers
laurentsenta Mar 31, 2023
6c7592b
feat: 123 - missing decoding functions
laurentsenta Mar 31, 2023
de19552
refactor: start cleaning the API usage
laurentsenta Mar 31, 2023
85f7943
refactor: continue simlif usage - drop raw block
laurentsenta Mar 31, 2023
3b1e717
refactor: done cleaning the API usage in 123
laurentsenta Mar 31, 2023
fbd32ec
fix: remove dead code
laurentsenta Mar 31, 2023
5955bd7
fix: t0123 - query usage
laurentsenta Apr 3, 2023
db7ee9c
fix: t0123 - remove init
laurentsenta Apr 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added fixtures/t0123/dag-cbor-traversal.car
Binary file not shown.
Binary file added fixtures/t0123/dag-json-traversal.car
Binary file not shown.
Binary file added fixtures/t0123/dag-pb.car
Binary file not shown.
23 changes: 23 additions & 0 deletions fixtures/t0123/dag-pb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Data": {
"/": {
"bytes": "CAE"
}
},
"Links": [
{
"Hash": {
"/": "bafybeidryarwh34ygbtyypbu7qjkl4euiwxby6cql6uvosonohkq2kwnkm"
},
"Name": "foo",
"Tsize": 69
},
{
"Hash": {
"/": "bafkreic3ondyhizrzeoufvoodehinugpj3ecruwokaygl7elezhn2khqfa"
},
"Name": "foo.txt",
"Tsize": 13
}
]
}
Binary file added fixtures/t0123/plain-that-can-be-dag.cbor.car
Binary file not shown.
Binary file added fixtures/t0123/plain-that-can-be-dag.json.car
Binary file not shown.
Binary file added fixtures/t0123/plain.cbor.car
Binary file not shown.
Binary file added fixtures/t0123/plain.json.car
Binary file not shown.
61 changes: 17 additions & 44 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,21 @@ module github.com/ipfs/gateway-conformance
go 1.19

require (
github.com/ipfs/go-cid v0.3.2
github.com/ipld/go-car/v2 v2.7.0
github.com/ipfs/boxo v0.8.0-rc1
github.com/ipfs/go-cid v0.4.0
github.com/ipld/go-car/v2 v2.9.1-0.20230325062757-fff0e4397a3d
github.com/urfave/cli/v2 v2.25.0
)

require (
github.com/ajg/form v1.5.1 // indirect
github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a // indirect
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/gavv/httpexpect/v2 v2.13.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/ipfs/go-unixfsnode v1.5.2 // indirect
github.com/ipfs/go-ipfs-files v0.3.0 // indirect
github.com/ipld/go-codec-dagpb v1.6.0 // indirect
github.com/ipld/go-ipld-prime v0.20.0 // indirect
github.com/klauspost/compress v1.15.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sanity-io/litter v1.5.5 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/stretchr/testify v1.8.1 // indirect
github.com/urfave/cli/v2 v2.25.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.34.0 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/yudai/gojsondiff v1.0.0 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sync v0.1.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
moul.io/http2curl/v2 v2.3.0 // indirect
)

require (
Expand All @@ -53,50 +28,48 @@ require (
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/ipfs/bbloom v0.0.4 // indirect
github.com/ipfs/go-bitfield v1.1.0 // indirect
github.com/ipfs/go-block-format v0.1.1 // indirect
github.com/ipfs/go-block-format v0.1.2 // indirect
github.com/ipfs/go-blockservice v0.5.0
github.com/ipfs/go-datastore v0.6.0 // indirect
github.com/ipfs/go-ipfs-blockstore v1.2.0 // indirect
github.com/ipfs/go-ipfs-blockstore v1.3.0 // indirect
github.com/ipfs/go-ipfs-ds-help v1.1.0 // indirect
github.com/ipfs/go-ipfs-exchange-interface v0.2.0 // indirect
github.com/ipfs/go-ipfs-util v0.0.2 // indirect
github.com/ipfs/go-ipld-cbor v0.0.6 // indirect
github.com/ipfs/go-ipld-format v0.4.0
github.com/ipfs/go-ipld-legacy v0.1.1 // indirect
github.com/ipfs/go-libipfs v0.4.0 // indirect
github.com/ipfs/go-log v1.0.5 // indirect
github.com/ipfs/go-libipfs v0.6.0 // indirect
github.com/ipfs/go-log v1.0.5
github.com/ipfs/go-log/v2 v2.5.1 // indirect
github.com/ipfs/go-merkledag v0.9.0
github.com/ipfs/go-merkledag v0.10.0 // indirect
github.com/ipfs/go-metrics-interface v0.0.1 // indirect
github.com/ipfs/go-unixfs v0.4.3
github.com/ipfs/go-unixfs v0.4.5
github.com/ipfs/go-verifcid v0.0.2 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
github.com/libp2p/go-msgio v0.3.0 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/minio/sha256-simd v1.0.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base32 v0.1.0 // indirect
github.com/multiformats/go-base36 v0.2.0 // indirect
github.com/multiformats/go-multibase v0.1.1 // indirect
github.com/multiformats/go-multicodec v0.8.0 // indirect
github.com/multiformats/go-multicodec v0.8.1 // indirect
github.com/multiformats/go-multihash v0.2.1 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 // indirect
github.com/polydawn/refmt v0.89.0 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 // indirect
github.com/whyrusleeping/cbor-gen v0.0.0-20230126041949-52956bd4c9aa // indirect
go.opentelemetry.io/otel v1.12.0 // indirect
go.opentelemetry.io/otel/trace v1.12.0 // indirect
go.opentelemetry.io/otel v1.14.0 // indirect
go.opentelemetry.io/otel/trace v1.14.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.5.0 // indirect
golang.org/x/exp v0.0.0-20230129154200-a960b3787bd2 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/protobuf v1.28.1 // indirect
lukechampine.com/blake3 v1.1.7 // indirect
Expand Down
Loading