Skip to content

Commit

Permalink
feat: Merge pull request #47 from pelias/interpolation
Browse files Browse the repository at this point in the history
interpolation client config
  • Loading branch information
missinglink authored Jan 12, 2017
2 parents 3f3b967 + 28ff0e7 commit aafab12
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
}
}
},
"interpolation": {
"client": {
"adapter": "null"
}
},
"dbclient": {
"statFrequency": 10000
},
Expand Down
5 changes: 5 additions & 0 deletions config/expected-deep.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
}
}
},
"interpolation": {
"client": {
"adapter": "null"
}
},
"dbclient": {
"statFrequency": 10000
},
Expand Down
6 changes: 6 additions & 0 deletions config/local.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"interpolation": {
"client": {
"adapter": "http",
"host": "http://localhost:9999"
}
},
"imports": {
"geonames": {
"datapath": "/media/hdd"
Expand Down
2 changes: 2 additions & 0 deletions test/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ module.exports.generate.local = function(test) {
t.notDeepEqual(c, defaults, 'valid function');
t.equal(typeof c.esclient, 'object', 'valid property');
t.equal(Object.keys(c.esclient).length, 5, 'keep all default properties');
t.equal(c.interpolation.client.adapter, 'http', 'interpolation client');
t.equal(c.interpolation.client.host, 'http://localhost:9999', 'interpolation client');
t.equal(c.imports.geonames.datapath, '/media/hdd', 'local paths');
t.equal(c.imports.openstreetmap.datapath, '/media/hdd/osm/mapzen-metro', 'local paths');
t.equal(c.imports.openstreetmap.import[0].filename, 'london.osm.pbf', 'local paths');
Expand Down

0 comments on commit aafab12

Please sign in to comment.