add tests for ipfs files stat --with-local
License: MIT Signed-off-by: Michael Muré <batolettre@gmail.com>
Michael Muré committed
Feb 1, 2018 at 12:56 UTC
8fd6fdb38560339c232299c54fd91dfd44fa643c
1 file changed
+9
test/sharness/t0250-files-api.sh
+9
@@ -154,6 +154,15 @@ test_files_api() {
154
ipfs files stat --hash / > roothash
155
'
156
157
+ test_expect_success "stat works outside of MFS" '
158
+ ipfs files stat /ipfs/$DIR1
159
+ '
160
+
161
+ test_expect_success "stat compute the locality of a dag" '
162
+ ipfs files stat --with-local /ipfs/$DIR1 > output
163
+ grep -q "(100.00%)" output
164
+ '
165
+
166
test_expect_success "cannot mkdir / $EXTRA" '
167
test_expect_code 1 ipfs files mkdir $ARGS /
168
'