test: handle id -> identity rename
"identity" is the official name
Steven Allen committed
Aug 23, 2019 at 16:50 UTC
5bbf20d3f457f81c8bdc9763ec7ab06ca9a21974
2 files changed
+11
-11
test/sharness/t0046-id-hash.sh
+10
-10
@@ -9,19 +9,19 @@ test_init_ipfs
9
ID_HASH0=bafkqaedknncdsodknncdsnzvnbvuioak
10
ID_HASH0_CONTENTS=jkD98jkD975hkD8
11
12
-test_expect_success "can fetch random id hash" '
12
+test_expect_success "can fetch random identity hash" '
13
ipfs cat $ID_HASH0 > expected &&
14
echo $ID_HASH0_CONTENTS > actual &&
15
test_cmp expected actual
16
'
17
18
-test_expect_success "can pin random id hash" '
18
+test_expect_success "can pin random identity hash" '
19
ipfs pin add $ID_HASH0
20
'
21
22
-test_expect_success "ipfs add succeeds with id hash" '
22
+test_expect_success "ipfs add succeeds with identity hash" '
23
echo "djkd7jdkd7jkHHG" > junk.txt &&
24
- HASH=$(ipfs add -q --hash=id junk.txt)
24
+ HASH=$(ipfs add -q --hash=identity junk.txt)
25
'
26
27
test_expect_success "content not actually added" '
@@ -48,10 +48,10 @@ test_expect_success "ipfs add --inline works as expected" '
48
HASH=$(ipfs add -q --inline afile)
49
'
50
51
-test_expect_success "ipfs add --inline uses id multihash" '
51
+test_expect_success "ipfs add --inline uses identity multihash" '
52
MHTYPE=`cid-fmt %h $HASH`
53
echo "mhtype is $MHTYPE"
54
- test "$MHTYPE" = id
54
+ test "$MHTYPE" = identity
55
'
56
57
test_expect_success "ipfs add --inline --raw-leaves works as expected" '
@@ -82,19 +82,19 @@ test_expect_success "enable filestore" '
82
ipfs config --json Experimental.FilestoreEnabled true
83
'
84
85
-test_expect_success "can fetch random id hash (filestore enabled)" '
85
+test_expect_success "can fetch random identity hash (filestore enabled)" '
86
ipfs cat $ID_HASH0 > expected &&
87
echo $ID_HASH0_CONTENTS > actual &&
88
test_cmp expected actual
89
'
90
91
-test_expect_success "can pin random id hash (filestore enabled)" '
91
+test_expect_success "can pin random identity hash (filestore enabled)" '
92
ipfs pin add $ID_HASH0
93
'
94
95
-test_expect_success "ipfs add succeeds with id hash and --nocopy" '
95
+test_expect_success "ipfs add succeeds with identity hash and --nocopy" '
96
echo "djkd7jdkd7jkHHG" > junk.txt &&
97
- HASH=$(ipfs add -q --hash=id --nocopy junk.txt)
97
+ HASH=$(ipfs add -q --hash=identity --nocopy junk.txt)
98
'
99
100
test_expect_success "content not actually added (filestore enabled)" '
test/sharness/t0290-cid.sh
+1
-1
@@ -115,7 +115,7 @@ cat <<EOF > codecs_expect
115
EOF
116
117
cat <<EOF > hashes_expect
118
- 0 id
118
+ 0 identity
119
17 sha1
120
18 sha2-256
121
19 sha2-512