@cryptotaxi247 / kubo / commits / edd37d868

improve urlstore pinning tests

address CR License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Dec 11, 2018 at 13:44 UTC edd37d868226f2766cb7a6da95835250945c9e39
1 file changed +15
test/sharness/t0272-urlstore.sh
+15
@@ -85,6 +85,21 @@ test_expect_success "ipfs filestore verify works with urls" '
85 test_cmp verify_expect verify_actual
86 '
87
88 +test_expect_success "garbage collect file1 from the urlstore" '
89 + ipfs repo gc > /dev/null
90 +'
91 +
92 +test_expect_success "can no longer retrieve file1 from urlstore" '
93 + rm -f file1.actual &&
94 + test_must_fail ipfs get $HASH1 -o file1.actual
95 +'
96 +
97 +test_expect_success "can still retrieve file2 from urlstore" '
98 + rm -f file2.actual &&
99 + ipfs get $HASH2 -o file2.actual &&
100 + test_cmp file2 file2.actual
101 +'
102 +
103 test_expect_success "remove original hashes from local gateway" '
104 ipfs pin rm $HASH1a $HASH2a &&
105 ipfs repo gc > /dev/null