@cryptotaxi247 / kubo / commits / 8cdc18ab2

Fix t0275-cid-security.sh: rename bad block file

This sharness test provides 2 datastore blocks directly. One of them (corresponding to an "insecure block") is not a CIDv0 therefore it needs to be migrated and stored with its raw-multihash ID. The (raw) CID of the block used in the test remains the same. The other block needs no changes.

Hector Sanjuan committed Mar 9, 2020 at 19:32 UTC 8cdc18ab2ff4c72b85fb05c7f04ca03972fbc439
2 files changed +2 -2
test/sharness/t0275-cid-security-data/EICEM7ITSI.data renamed
test/sharness/t0275-cid-security.sh
+2 -2
@@ -52,8 +52,8 @@ test_cat_get() {
52
53 test_gc() {
54 test_expect_success "injecting insecure block" '
55 - mkdir -p "$IPFS_PATH/blocks/JZ" &&
56 - cp -f ../t0275-cid-security-data/AFKSEBCGPUJZE.data "$IPFS_PATH/blocks/JZ"
55 + mkdir -p "$IPFS_PATH/blocks/TS" &&
56 + cp -f ../t0275-cid-security-data/EICEM7ITSI.data "$IPFS_PATH/blocks/TS"
57 '
58
59 test_expect_success "gc works" 'ipfs repo gc > gc_out'