Skip to content

Commit fd6a57d

Browse files
committed
t0114: clear (d)
1 parent 3c213fa commit fd6a57d

File tree

4 files changed

+6
-118
lines changed

4 files changed

+6
-118
lines changed

fixtures/subdomain_gateway/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ DIR_CID=$(ipfs add -Qr --cid-version 1 testdirlisting)
3939
echo DIR_CID=${DIR_CID} # ./testdirlisting
4040

4141
ipfs files mkdir /t0114/
42-
ipfs files cp /ipfs/${CIDv1} /t0114/
43-
ipfs files cp /ipfs/${CIDv0} /t0114/
44-
ipfs files cp /ipfs/${CIDv0to1} /t0114/
45-
ipfs files cp /ipfs/${DIR_CID} /t0114/
46-
ipfs files cp /ipfs/${CIDv1_TOO_LONG} /t0114/
42+
ipfs files cp /ipfs/${CIDv1} /t0114/hello-CIDv1
43+
ipfs files cp /ipfs/${CIDv0} /t0114/hello-CIDv0
44+
ipfs files cp /ipfs/${CIDv0to1} /t0114/hello-CIDv0to1
45+
ipfs files cp /ipfs/${DIR_CID} /t0114/testdirlisting
46+
ipfs files cp /ipfs/${CIDv1_TOO_LONG} /t0114/hello-CIDv1_TOO_LONG
4747

4848
ROOT=`ipfs files stat /t0114/ --hash`
4949

fixtures/t0114/README.md

-111
This file was deleted.

fixtures/t0114/fixtures.car

-1.48 KB
Binary file not shown.

tests/subdomain_gateway_ipns_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ func TestGatewaySubdomainAndIPNS(t *testing.T) {
2121
ed25519Fixture := ipns.MustOpenIPNSRecordWithKey("subdomain_gateway/12D3KooWLQzUv2FHWGVPXTXSZpdHs7oHbXub2G5WC8Tx4NQhyd2d.ipns-record")
2222

2323
car := car.MustOpenUnixfsCar("subdomain_gateway/fixtures.car")
24-
helloCID := "bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am"
25-
payload := string(car.MustGetRawData(helloCID))
24+
payload := string(car.MustGetRawData("hello-CIDv1"))
2625

2726
// We're going to run the same test against multiple gateways (localhost, and a subdomain gateway)
2827
gatewayURLs := []string{

0 commit comments

Comments
 (0)