-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add gateway conformance tests (#314)
Skips practically all of them to just get the framework in place. I'm not sure all the tests are valid, the spec is missing large chunks of functionality asserted in the tests, but the assertions don't necessarily assert IETF/W3c spec compliant behaviour, for example: ipfs/gateway-conformance#217
- Loading branch information
1 parent
5976f65
commit 8268872
Showing
11 changed files
with
2,452 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
# ENV vars recommended for running gateway-conformance tests | ||
USE_LIBP2P=false | ||
USE_BITSWAP=true | ||
PORT=8090 # helia-http-gateway should be running here | ||
TRUSTLESS_GATEWAYS=http://127.0.0.1:8080 # Kubo should be running here | ||
DELEGATED_ROUTING_V1_HOST=http://127.0.0.1:8080 # Kubo should be running here | ||
DEBUG='helia-http-gateway*,*helia-fetch*,*helia:trustless-gateway-block-broker*' | ||
USE_TRUSTLESS_GATEWAYS=true | ||
USE_DELEGATED_ROUTING=true | ||
export USE_LIBP2P=true | ||
export USE_BITSWAP=true | ||
export USE_SUBDOMAINS=false | ||
export PORT="8080" # helia-http-gateway should be running here | ||
export KUBO_PORT="8081" # Kubo should be running here | ||
export TRUSTLESS_GATEWAYS="http://127.0.0.1:8081" # Kubo should be running here | ||
export DELEGATED_ROUTING_V1_HOST="http://127.0.0.1:8081" # Kubo should be running here | ||
# DEBUG='helia-http-gateway*,*helia-fetch*,*helia:trustless-gateway-block-broker*' | ||
export DEBUG='helia*,helia*:trace' | ||
export USE_TRUSTLESS_GATEWAYS=true | ||
export USE_DELEGATED_ROUTING=true | ||
|
||
# Uncomment the two below to save blockstore and datastore to disk | ||
# FILE_DATASTORE_PATH=./data/datastore | ||
# FILE_BLOCKSTORE_PATH=./data/blockstore | ||
|
||
# Uncomment the below to see request & response headers in the logs | ||
# ECHO_HEADERS=true | ||
|
||
export GWC_DOCKER_IMAGE=ghcr.io/ipfs/gateway-conformance:v0.5.0 | ||
|
||
# skip most of the tests | ||
export GWC_SKIP="^.*(TestNativeDag|TestPathing|TestPlainCodec|TestDagPbConversion|TestGatewayJsonCbor|TestCors|TestGatewayJSONCborAndIPNS|TestGatewayIPNSPath|TestRedirectCanonicalIPNS|TestGatewayCache|TestGatewaySubdomains|TestUnixFSDirectoryListingOnSubdomainGateway|TestRedirectsFileWithIfNoneMatchHeader|TestTar|TestRedirects|TestPathGatewayMiscellaneous|TestGatewayUnixFSFileRanges|TestGatewaySymlink|TestUnixFSDirectoryListing|TestGatewayBlock|IPNS|TestTrustless|TestSubdomainGatewayDNSLinkInlining).*$" | ||
export GWC_GATEWAY_URL="http://helia-http-gateway.localhost" | ||
# GWC_SUBDOMAIN_URL="http://helia-http-gateway.localhost" | ||
# GWC_GATEWAY_URL="http://127.0.0.1:8080" | ||
export GWC_GATEWAY_URL="http://host.docker.internal:8080" | ||
export GWC_SUBDOMAIN_URL="http://host.docker.internal:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.