@@ -148,11 +148,6 @@ describe('interface-ipfs-core tests', () => {
148
148
name : 'should remove by CID in buffer' ,
149
149
reason : 'Passing CID as Buffer is not supported'
150
150
} ,
151
- {
152
- name : 'should error when removing pinned blocks' ,
153
- reason : 'ipfs.pin.add is not implemented'
154
- } ,
155
-
156
151
{
157
152
name : 'should remove multiple CIDs' ,
158
153
reason : 'times out'
@@ -167,4 +162,170 @@ describe('interface-ipfs-core tests', () => {
167
162
}
168
163
]
169
164
} )
165
+
166
+ tests . pin ( factory , {
167
+ skip : [
168
+ // pin.add
169
+ {
170
+ name : 'should add a CID and return the added CID' ,
171
+ reason : 'ipfs.pin.ls is not implemented'
172
+ } ,
173
+ {
174
+ name : 'should add a pin with options and return the added CID' ,
175
+ reason : 'ipfs.pin.ls is not implemented'
176
+ } ,
177
+ {
178
+ name : 'should add recursively' ,
179
+ reason : 'ipfs.pin.ls is not implemented'
180
+ } ,
181
+ {
182
+ name : 'should add directly' ,
183
+ reason : 'ipfs.pin.ls is not implemented'
184
+ } ,
185
+ {
186
+ name : 'should recursively pin parent of direct pin' ,
187
+ reason : 'ipfs.pin.ls is not implemented'
188
+ } ,
189
+ {
190
+ name : 'should fail to directly pin a recursive pin' ,
191
+ reason : 'ipfs.pin.ls is not implemented'
192
+ } ,
193
+ {
194
+ name : 'should fail to pin a hash not in datastore' ,
195
+ reason : 'ipfs.pin.ls is not implemented'
196
+ } ,
197
+ {
198
+ name : 'needs all children in datastore to pin recursively' ,
199
+ reason : 'ipfs.pin.ls is not implemented'
200
+ } ,
201
+ {
202
+ name : 'should pin dag-cbor' ,
203
+ reason : 'ipfs.pin.ls is not implemented'
204
+ } ,
205
+ {
206
+ name : 'should pin raw' ,
207
+ reason : 'ipfs.pin.ls is not implemented'
208
+ } ,
209
+ {
210
+ name : 'should pin dag-cbor with dag-pb child' ,
211
+ reason : 'ipfs.pin.ls is not implemented'
212
+ } ,
213
+ // pin.addAll
214
+ {
215
+ name : 'should add an array of CIDs' ,
216
+ reason : 'ipfs.pin.addAll is not implemented'
217
+ } ,
218
+ {
219
+ name : 'should add a generator of CIDs' ,
220
+ reason : 'ipfs.pin.addAll is not implemented'
221
+ } ,
222
+ {
223
+ name : 'should add an async generator of CIDs' ,
224
+ reason : 'ipfs.pin.addAll is not implemented'
225
+ } ,
226
+ {
227
+ name : 'should add an array of pins with options' ,
228
+ reason : 'ipfs.pin.addAll is not implemented'
229
+ } ,
230
+ {
231
+ name : 'should add a generator of pins with options' ,
232
+ reason : 'ipfs.pin.addAll is not implemented'
233
+ } ,
234
+ {
235
+ name : 'should add an async generator of pins with options' ,
236
+ reason : 'ipfs.pin.addAll is not implemented'
237
+ } ,
238
+ {
239
+ name : 'should respect timeout option when pinning a block' ,
240
+ reason : 'ipfs.pin.addAll is not implemented'
241
+ } ,
242
+ // pin.ls
243
+ {
244
+ name : 'should respect timeout option when listing pins' ,
245
+ reason : 'ipfs.pin.ls is not implemented'
246
+ } ,
247
+ {
248
+ name : 'should list all recursive pins' ,
249
+ reason : 'ipfs.pin.ls is not implemented'
250
+ } ,
251
+ {
252
+ name : 'should list all indirect pins' ,
253
+ reason : 'ipfs.pin.ls is not implemented'
254
+ } ,
255
+ {
256
+ name : 'should list all types of pins' ,
257
+ reason : 'ipfs.pin.ls is not implemented'
258
+ } ,
259
+ {
260
+ name : 'should list all direct pins' ,
261
+ reason : 'ipfs.pin.ls is not implemented'
262
+ } ,
263
+ {
264
+ name : 'should list pins for a specific hash' ,
265
+ reason : 'ipfs.pin.ls is not implemented'
266
+ } ,
267
+ {
268
+ name : 'should throw an error on missing direct pins for existing path' ,
269
+ reason : 'ipfs.pin.ls is not implemented'
270
+ } ,
271
+ {
272
+ name : 'should throw an error on missing link for a specific path' ,
273
+ reason : 'ipfs.pin.ls is not implemented'
274
+ } ,
275
+ {
276
+ name : 'should list indirect pins for a specific path' ,
277
+ reason : 'ipfs.pin.ls is not implemented'
278
+ } ,
279
+ {
280
+ name : 'should list recursive pins for a specific hash' ,
281
+ reason : 'ipfs.pin.ls is not implemented'
282
+ } ,
283
+ {
284
+ name : 'should list pins for multiple CIDs' ,
285
+ reason : 'ipfs.pin.ls is not implemented'
286
+ } ,
287
+ {
288
+ name : 'should throw error for invalid non-string pin type option' ,
289
+ reason : 'ipfs.pin.ls is not implemented'
290
+ } ,
291
+ {
292
+ name : 'should throw error for invalid string pin type option' ,
293
+ reason : 'ipfs.pin.ls is not implemented'
294
+ } ,
295
+ {
296
+ name : 'should list pins with metadata' ,
297
+ reason : 'ipfs.pin.ls is not implemented'
298
+ } ,
299
+ // pin.rm
300
+ {
301
+ name : 'should respect timeout option when unpinning a block' ,
302
+ reason : 'ipfs.pin.rm is not implemented'
303
+ } ,
304
+ {
305
+ name : 'should remove a recursive pin' ,
306
+ reason : 'ipfs.pin.rm is not implemented'
307
+ } ,
308
+ {
309
+ name : 'should remove a direct pin' ,
310
+ reason : 'ipfs.pin.rm is not implemented'
311
+ } ,
312
+ {
313
+ name : 'should fail to remove an indirect pin' ,
314
+ reason : 'ipfs.pin.rm is not implemented'
315
+ } ,
316
+ {
317
+ name : 'should fail when an item is not pinned' ,
318
+ reason : 'ipfs.pin.rm is not implemented'
319
+ } ,
320
+ // pin.rmAll
321
+ {
322
+ name : 'should respect timeout option when unpinning a block' ,
323
+ reason : 'ipfs.pin.rmAll is not implemented'
324
+ } ,
325
+ {
326
+ name : 'should pipe the output of ls to rm' ,
327
+ reason : 'ipfs.pin.rmAll is not implemented'
328
+ } ,
329
+ ]
330
+ } )
170
331
} )
0 commit comments