Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 6c2a09b

Browse files
committed
chore: reorg http-api tests
1 parent 52cb801 commit 6c2a09b

File tree

27 files changed

+115
-131
lines changed

27 files changed

+115
-131
lines changed

test/fixtures/go-ipfs-repo/blocks/_README

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,17 @@ All the object files are placed in a tree of directories, based on a
66
function of the CID. This is a form of sharding similar to
77
the objects directory in git repositories. Previously, we used
88
prefixes, we now use the next-to-last two charters.
9-
109
func NextToLast(base32cid string) {
1110
nextToLastLen := 2
1211
offset := len(base32cid) - nextToLastLen - 1
1312
return str[offset : offset+nextToLastLen]
1413
}
15-
1614
For example, an object with a base58 CIDv1 of
17-
1815
zb2rhYSxw4ZjuzgCnWSt19Q94ERaeFhu9uSqRgjSdx9bsgM6f
19-
2016
has a base32 CIDv1 of
21-
2217
BAFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA
23-
2418
and will be placed at
25-
2619
SC/AFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA.data
27-
2820
with 'SC' being the last-to-next two characters and the 'B' at the
2921
beginning of the CIDv1 string is the multibase prefix that is not
3022
stored in the filename.

test/fixtures/go-ipfs-repo/config

Lines changed: 60 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
{
2-
"Identity":{
3-
"PeerID":"QmQ2zigjQikYnyYUSXZydNXrDRhBut2mubwJBaLXobMt3A",
4-
"PrivKey":"CAASpgkwggSiAgEAAoIBAQC2SKo/HMFZeBml1AF3XijzrxrfQXdJzjePBZAbdxqKR1Mc6juRHXij6HXYPjlAk01BhF1S3Ll4Lwi0cAHhggf457sMg55UWyeGKeUv0ucgvCpBwlR5cQ020i0MgzjPWOLWq1rtvSbNcAi2ZEVn6+Q2EcHo3wUvWRtLeKz+DZSZfw2PEDC+DGPJPl7f8g7z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+kQKBgQDeK8AR11373Mzib6uzpjGzgNRMzdYNuExWjxyxAzz53NAR7zrPHvXvfIqjDScLJ4NcRO2TddhXAfZoOPVH5k4PJHKLBPKuXZpWlookCAyENY7+Pd55S8r+a+MusrMagYNljb5WbVTgN8cgdpim9lbbIFlpN6SZaVjLQL3J8TWH6wKBgQDSChzItkqWX11CNstJ9zJyUE20I7LrpyBJNgG1gtvz3ZMUQCn3PxxHtQzN9n1P0mSSYs+jBKPuoSyYLt1wwe10/lpgL4rkKWU3/m1Myt0tveJ9WcqHh6tzcAbb/fXpUFT/o4SWDimWkPkuCb+8j//2yiXk0a/T2f36zKMuZvujqQKBgC6B7BAQDG2H2B/ijofp12ejJU36nL98gAZyqOfpLJ+FeMz4TlBDQ+phIMhnHXA5UkdDapQ+zA3SrFk+6yGk9Vw4Hf46B+82SvOrSbmnMa+PYqKYIvUzR4gg34rL/7AhwnbEyD5hXq4dHwMNsIDq+l2elPjwm/U9V0gdAl2+r50HAoGALtsKqMvhv8HucAMBPrLikhXP/8um8mMKFMrzfqZ+otxfHzlhI0L08Bo3jQrb0Z7ByNY6M8epOmbCKADsbWcVre/AAY0ZkuSZK/CaOXNX/AhMKmKJh8qAOPRY02LIJRBCpfS4czEdnfUhYV/TYiFNnKRj57PPYZdTzUsxa/yVTmECgYBr7slQEjb5Onn5mZnGDh+72BxLNdgwBkhO0OCdpdISqk0F0Pxby22DFOKXZEpiyI9XYP1C8wPiJsShGm2yEwBPWXnrrZNWczaVuCbXHrZkWQogBDG3HGXNdU4MAWCyiYlyinIBpPpoAJZSzpGLmWbMWh28+RJS6AQX6KHrK1o2uw=="
55
},
6-
"Datastore":{
7-
"Type":"",
8-
"Path":"",
9-
"StorageMax":"",
10-
"StorageGCWatermark":0,
11-
"GCPeriod":"",
12-
"Params":null,
13-
"NoSync":false
6+
"Datastore": {
7+
"Type": "",
8+
"Path": "",
9+
"StorageMax": "",
10+
"StorageGCWatermark": 0,
11+
"GCPeriod": "",
12+
"Params": null,
13+
"NoSync": false
1414
},
15-
"Addresses":{
16-
"Swarm":[
15+
"Addresses": {
16+
"Swarm": [
1717
"/ip4/127.0.0.1/tcp/0",
1818
"/ip4/127.0.0.1/tcp/0/ws"
1919
],
20-
"API":"/ip4/127.0.0.1/tcp/0",
21-
"Gateway":"/ip4/127.0.0.1/tcp/0"
20+
"API": "/ip4/127.0.0.1/tcp/0",
21+
"Gateway": "/ip4/127.0.0.1/tcp/0"
2222
},
23-
"Mounts":{
24-
"IPFS":"/ipfs",
25-
"IPNS":"/ipns",
26-
"FuseAllowOther":false
23+
"Mounts": {
24+
"IPFS": "/ipfs",
25+
"IPNS": "/ipns",
26+
"FuseAllowOther": false
2727
},
28-
"Version":{
29-
"Current":"0.4.0-dev",
30-
"Check":"error",
31-
"CheckDate":"0001-01-01T00:00:00Z",
32-
"CheckPeriod":"172800000000000",
33-
"AutoUpdate":"minor"
28+
"Version": {
29+
"Current": "0.4.0-dev",
30+
"Check": "error",
31+
"CheckDate": "0001-01-01T00:00:00Z",
32+
"CheckPeriod": "172800000000000",
33+
"AutoUpdate": "minor"
3434
},
35-
"Discovery":{
36-
"MDNS":{
37-
"Enabled":false,
38-
"Interval":10
35+
"Discovery": {
36+
"MDNS": {
37+
"Enabled": false,
38+
"Interval": 10
3939
},
4040
"webRTCStar": {
4141
"Enabled": false
4242
}
4343
},
44-
"Ipns":{
45-
"RepublishPeriod":"",
46-
"RecordLifetime":"",
47-
"ResolveCacheSize":128
44+
"Ipns": {
45+
"RepublishPeriod": "",
46+
"RecordLifetime": "",
47+
"ResolveCacheSize": 128
4848
},
49-
"Bootstrap":[
49+
"Bootstrap": [
5050
"/ip4/104.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z",
5151
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
5252
"/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
@@ -67,16 +67,16 @@
6767
"/dns4/wss0.bootstrap.libp2p.io/tcp/443/wss/ipfs/QmZMxNdpMkewiVZLMRxaNxUeZpDUb34pWjZ1kZvsd16Zic",
6868
"/dns4/wss1.bootstrap.libp2p.io/tcp/443/wss/ipfs/Qmbut9Ywz9YEDrz8ySBSgWyJk41Uvm2QJPhwDJzJyGFsD6"
6969
],
70-
"Tour":{
71-
"Last":""
70+
"Tour": {
71+
"Last": ""
7272
},
73-
"Gateway":{
74-
"HTTPHeaders":null,
75-
"RootRedirect":"",
76-
"Writable":false
73+
"Gateway": {
74+
"HTTPHeaders": null,
75+
"RootRedirect": "",
76+
"Writable": false
7777
},
78-
"SupernodeRouting":{
79-
"Servers":[
78+
"SupernodeRouting": {
79+
"Servers": [
8080
"/ip4/104.236.176.52/tcp/4002/ipfs/QmXdb7tWTxdFEQEFgWBqkuYSrZd3mXrC7HxkD4krGNYx2U",
8181
"/ip4/104.236.179.241/tcp/4002/ipfs/QmVRqViDByUxjUMoPnjurjKvZhaEMFDtK35FJXHAM4Lkj6",
8282
"/ip4/104.236.151.122/tcp/4002/ipfs/QmSZwGx8Tn8tmcM4PtDJaMeUQNRhNFdBLVGPzRiNaRJtFH",
@@ -87,15 +87,23 @@
8787
"/ip4/178.62.61.185/tcp/4002/ipfs/QmVw6fGNqBixZE4bewRLT2VXX7fAHUHs8JyidDiJ1P7RUN"
8888
]
8989
},
90-
"API":{
91-
"HTTPHeaders":null
90+
"API": {
91+
"HTTPHeaders": null
9292
},
93-
"Swarm":{
94-
"AddrFilters":null
93+
"Swarm": {
94+
"AddrFilters": null
9595
},
96-
"Log":{
97-
"MaxSizeMB":250,
98-
"MaxBackups":1,
99-
"MaxAgeDays":0
96+
"Log": {
97+
"MaxSizeMB": 250,
98+
"MaxBackups": 1,
99+
"MaxAgeDays": 0
100+
},
101+
"Keychain": {
102+
"dek": {
103+
"keyLength": 64,
104+
"iterationCount": 10000,
105+
"salt": "co5EbMmrhFwmhHjedZU73zhL",
106+
"hash": "sha2-512"
107+
}
100108
}
101-
}
109+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MANIFEST-000014
1+
MANIFEST-000015
Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1 @@
1-
=============== Aug 25, 2016 (CEST) ===============
2-
17:21:42.391799 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
3-
17:21:42.393115 db@open opening
4-
17:21:42.399749 db@janitor F·5 G·1
5-
17:21:42.399774 db@janitor removing manifest-4
6-
17:21:42.399904 db@open done T·6.754896ms
7-
=============== Aug 25, 2016 (CEST) ===============
8-
17:36:56.009638 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
9-
17:36:56.009849 version@stat F·[2] S·1KiB[1KiB] Sc·[0.50]
10-
17:36:56.009874 db@open opening
11-
17:36:56.009943 journal@recovery F·1
12-
17:36:56.010918 journal@recovery recovering @8
13-
17:36:56.012317 memdb@flush created L0@10 N·4 S·1KiB "/ip..\xf6\xe4\xa9,d12":"/pk..TOA,v9"
14-
17:36:56.013451 version@stat F·[3] S·2KiB[2KiB] Sc·[0.75]
15-
17:36:56.014779 db@janitor F·5 G·0
16-
17:36:56.014815 db@open done T·4.928147ms
17-
17:36:56.030081 db@close closing
18-
17:36:56.030223 db@close done T·138.943µs
19-
=============== Aug 25, 2016 (CEST) ===============
20-
17:37:32.735975 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
21-
17:37:32.736209 version@stat F·[3] S·2KiB[2KiB] Sc·[0.75]
22-
17:37:32.736230 db@open opening
23-
17:37:32.736304 journal@recovery F·1
24-
17:37:32.737385 journal@recovery recovering @11
25-
17:37:32.738575 version@stat F·[3] S·2KiB[2KiB] Sc·[0.75]
26-
17:37:32.739466 db@janitor F·5 G·0
27-
17:37:32.739492 db@open done T·3.248709ms
28-
17:37:51.684973 db@close closing
29-
17:37:51.685242 db@close done T·168.908µs
1+
2018/02/26-08:13:54.065997 70000aad6000 Delete type=3 #14
Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1-
=============== Dec 10, 2015 (PST) ===============
2-
07:50:02.056578 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
3-
07:50:02.057231 db@open opening
4-
07:50:02.057312 journal@recovery F·1
5-
07:50:02.057514 journal@recovery recovering @3
6-
07:50:02.058921 mem@flush created L0@5 N·4 S·1KiB "/ip..\xf6\xe4\xa9,v5":"/pk..\xf6\xe4\xa9,v6"
7-
07:50:02.059983 db@janitor F·4 G·0
8-
07:50:02.060001 db@open done T·2.755926ms
9-
07:50:02.073183 db@close closing
10-
07:50:02.073285 db@close done T·97.522µs
1+
=============== Aug 25, 2016 (CEST) ===============
2+
17:21:42.391799 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
3+
17:21:42.393115 db@open opening
4+
17:21:42.399749 db@janitor F·5 G·1
5+
17:21:42.399774 db@janitor removing manifest-4
6+
17:21:42.399904 db@open done T·6.754896ms
7+
=============== Aug 25, 2016 (CEST) ===============
8+
17:36:56.009638 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
9+
17:36:56.009849 version@stat F·[2] S·1KiB[1KiB] Sc·[0.50]
10+
17:36:56.009874 db@open opening
11+
17:36:56.009943 journal@recovery F·1
12+
17:36:56.010918 journal@recovery recovering @8
13+
17:36:56.012317 memdb@flush created L0@10 N·4 S·1KiB "/ip..\xf6\xe4\xa9,d12":"/pk..TOA,v9"
14+
17:36:56.013451 version@stat F·[3] S·2KiB[2KiB] Sc·[0.75]
15+
17:36:56.014779 db@janitor F·5 G·0
16+
17:36:56.014815 db@open done T·4.928147ms
17+
17:36:56.030081 db@close closing
18+
17:36:56.030223 db@close done T·138.943µs
19+
=============== Aug 25, 2016 (CEST) ===============
20+
17:37:32.735975 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
21+
17:37:32.736209 version@stat F·[3] S·2KiB[2KiB] Sc·[0.75]
22+
17:37:32.736230 db@open opening
23+
17:37:32.736304 journal@recovery F·1
24+
17:37:32.737385 journal@recovery recovering @11
25+
17:37:32.738575 version@stat F·[3] S·2KiB[2KiB] Sc·[0.75]
26+
17:37:32.739466 db@janitor F·5 G·0
27+
17:37:32.739492 db@open done T·3.248709ms
28+
17:37:51.684973 db@close closing
29+
17:37:51.685242 db@close done T·168.908µs

test/http-api/extra/block.js renamed to test/http-api/block.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ const waterfall = require('async/waterfall')
1212
const DaemonFactory = require('ipfsd-ctl')
1313
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })
1414

15-
describe('extra block', () => {
15+
describe('block endpoint', () => {
1616
let ipfs = null
1717
let ipfsd = null
18+
1819
before(function (done) {
1920
this.timeout(20 * 1000)
2021

test/http-api/extra/bootstrap.js renamed to test/http-api/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chai.use(dirtyChai)
1010
const DaemonFactory = require('ipfsd-ctl')
1111
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })
1212

13-
describe('extra bootstrap', () => {
13+
describe('bootstrap endpoint', () => {
1414
let ipfs = null
1515
let ipfsd = null
1616
before(function (done) {

test/http-api/extra/config.js renamed to test/http-api/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const path = require('path')
1616
const DaemonFactory = require('ipfsd-ctl')
1717
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })
1818

19-
describe('extra config', () => {
20-
const repoExample = path.join(__dirname, '../../fixtures/go-ipfs-repo')
21-
const repoTests = path.join(__dirname, '../../repo-tests-run')
19+
describe('config endpoint', () => {
20+
const repoExample = path.join(__dirname, '../fixtures/go-ipfs-repo')
21+
const repoTests = path.join(__dirname, '../repo-tests-run')
2222

2323
let updatedConfig = null
2424

@@ -46,7 +46,7 @@ describe('extra config', () => {
4646
ipfs = ipfsd.api
4747

4848
updatedConfig = () => {
49-
const file = fs.readFileSync(path.join(__dirname, '../../repo-tests-run/config'))
49+
const file = fs.readFileSync(path.join(__dirname, '../repo-tests-run/config'))
5050
return JSON.parse(file, 'utf8')
5151
}
5252

test/http-api/extra/dns.js renamed to test/http-api/dns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ chai.use(dirtyChai)
99
const DaemonFactory = require('ipfsd-ctl')
1010
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })
1111

12-
describe('extra dns', () => {
12+
describe('dns endpoint', () => {
1313
let ipfs = null
1414
let ipfsd = null
1515
before(function (done) {

test/http-api/extra/index.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

test/http-api/extra/id.js renamed to test/http-api/id.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const path = require('path')
1414
const DaemonFactory = require('ipfsd-ctl')
1515
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })
1616

17-
describe('extra id', () => {
18-
const repoExample = path.join(__dirname, '../../fixtures/go-ipfs-repo')
19-
const repoTests = path.join(__dirname, '../../repo-tests-run')
17+
describe('id endpoint', () => {
18+
const repoExample = path.join(__dirname, '../fixtures/go-ipfs-repo')
19+
const repoTests = path.join(__dirname, '../repo-tests-run')
2020

2121
let ipfs = null
2222
let ipfsd = null
@@ -28,7 +28,7 @@ describe('extra id', () => {
2828

2929
waterfall([
3030
(cb) => df.spawn({
31-
repoPath: path.join(__dirname, '../../fixtures/go-ipfs-repo'),
31+
repoPath: path.join(__dirname, '../fixtures/go-ipfs-repo'),
3232
initOptions: { bits: 512 },
3333
disposable: false,
3434
start: true

test/http-api/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
'use strict'
22

3-
require('./spec')
43
require('./interface')
5-
require('./extra')
4+
require('./inject')
5+
require('./block')
6+
require('./bootstrap')
7+
require('./config')
8+
require('./dns')
9+
require('./id')
10+
require('./object')
11+
require('./version')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/http-api/extra/object.js renamed to test/http-api/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function asJson (cb) {
2222
}
2323
}
2424

25-
describe('extra object', () => {
25+
describe('object endpoint', () => {
2626
let ipfs = null
2727
let ipfsd = null
2828
before(function (done) {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict'
2+
23
const APIctl = require('ipfs-api')
4+
35
module.exports = (http) => {
46
return APIctl(http.api.apiMultiaddr)
57
}

test/http-api/extra/version.js renamed to test/http-api/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ chai.use(dirtyChai)
99
const DaemonFactory = require('ipfsd-ctl')
1010
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })
1111

12-
describe('extra version', () => {
12+
describe('version endpoint', () => {
1313
let ipfs = null
1414
let ipfsd = null
1515
before(function (done) {

0 commit comments

Comments
 (0)