Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Corrected event subscriptions #60

Open
wants to merge 694 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
694 commits
Select commit Hold shift + click to select a range
9235b9f
change passwordHasher function to sha256.
AntonPuko Feb 27, 2017
f758dec
Merge pull request #123 from AntonPuko/dev
jlkalberer Feb 27, 2017
6f62767
Trying to fix packages when installing this package.
jlkalberer Feb 10, 2017
a81c044
Trying to fix npm install
jlkalberer Feb 11, 2017
360a63c
Added exports so this library can be used as a npm package.
jlkalberer Feb 11, 2017
249c8da
Fixing path for export.
jlkalberer Feb 11, 2017
6a81907
Added dist folder so this repo can be consumed by other repos.
jlkalberer Feb 11, 2017
e657e21
Fixing build... some comments broke node.
jlkalberer Feb 11, 2017
7641126
Updating bindings to work with external settings.
jlkalberer Feb 12, 2017
331ed83
Passing settings into spark protocol
jlkalberer Feb 12, 2017
ede8f10
More work with settings
jlkalberer Feb 12, 2017
ce7bbc5
Update raspberryPi.md
jlkalberer Feb 12, 2017
b2478ee
Update raspberryPi.md
jlkalberer Feb 12, 2017
63b3039
Add Brewskey specific instructions and notes on babel.
lbt Feb 28, 2017
074437e
Additional documentation to help get started with using or migrating …
lbt Feb 28, 2017
8ddb333
Merge pull request #125 from lbt/brewskey
jlkalberer Feb 28, 2017
1bb6dad
Merge pull request #126 from Brewskey/dev
jlkalberer Feb 28, 2017
8b12a4e
Merge pull request #127 from Brewskey/master
jlkalberer Feb 28, 2017
e24692f
Working on integrating the electron
jlkalberer Mar 2, 2017
d50819b
Merge branch 'master' of github.com:Brewskey/spark-server into dev
jlkalberer Mar 2, 2017
3ac1e52
fix settings. add tcp_server_config: ENABLE_SYSTEM_FIRMWARE_AUTOUPDATES
AntonPuko Mar 9, 2017
eff5cf9
move ENABLE_SYSTEM_FIRMWARE_AUTOUPDATES outside tcp server config
AntonPuko Mar 9, 2017
ebb7e22
Merge pull request #128 from AntonPuko/dev
jlkalberer Mar 9, 2017
1c4fd11
transform webhookResponse buffer chunks to string
AntonPuko Mar 14, 2017
1ca4359
Merge pull request #129 from AntonPuko/dev
jlkalberer Mar 14, 2017
1bbc311
fix typo in install instructions
suhajdab Mar 17, 2017
7f53625
Merge pull request #130 from suhajdab/patch-1
jlkalberer Mar 20, 2017
1b406e0
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
jlkalberer Mar 24, 2017
2b9079b
fix route config to prevent sent headers after submit error on partic…
AntonPuko Mar 29, 2017
b4dbea7
fix tab
AntonPuko Mar 29, 2017
e3a383e
Merge pull request #132 from AntonPuko/fixSentHeaders
AntonPuko Mar 29, 2017
3aa23c5
Updated start:prod to use the correct folder.
jlkalberer Apr 4, 2017
76efd9a
Fixed #134
jlkalberer May 1, 2017
1974581
add ssl support
AntonPuko May 4, 2017
f0ef03b
Merge pull request #139 from AntonPuko/ssl
jlkalberer May 5, 2017
6f38247
add tingodb, implement database repositories
AntonPuko May 19, 2017
94dfb3c
Merge pull request #141 from AntonPuko/tingodb
jlkalberer May 19, 2017
ac99672
implement deviceAttributeDatabase repo
AntonPuko May 19, 2017
9074f7d
Merge pull request #142 from AntonPuko/attrDatabaseRepo
jlkalberer May 19, 2017
7b953bb
Removing postinstall as it breaks when you consume spark-server in ot…
jlkalberer May 20, 2017
37e3694
Fixing package.json
jlkalberer May 20, 2017
754cf5c
Updating exports so I can use the promisify code.
jlkalberer May 20, 2017
eb71f97
Changed the interface for using mongo
jlkalberer May 20, 2017
2055ce1
Added a mongo connector. Did some cleanup
jlkalberer May 21, 2017
99533a7
made it work for tingo and mongo
AntonPuko May 21, 2017
14cbcac
Merge pull request #144 from AntonPuko/RepoCleanup
jlkalberer May 21, 2017
db77fc4
Allow users to override express config.
jlkalberer May 22, 2017
343b87a
nits
jlkalberer May 22, 2017
cc5943d
add migrateScript
AntonPuko May 22, 2017
9b99c29
fix main.js Flow errors
AntonPuko May 22, 2017
6e95739
Merge pull request #146 from AntonPuko/migrateScript
jlkalberer May 22, 2017
0a8f101
Merge pull request #147 from AntonPuko/mainFix
jlkalberer May 22, 2017
ba0aa36
Added extra logging
jlkalberer May 23, 2017
1c35152
Added webhook logger which can be overridden - closes #57
jlkalberer May 24, 2017
06c00c3
add interfaces for repositories
AntonPuko May 26, 2017
0d704e1
Merge pull request #151 from AntonPuko/interfaces
jlkalberer May 30, 2017
37e0a4f
implement deviceKeyDatabase repo
AntonPuko Jun 4, 2017
597cafe
throw a error if device is already claimed by the user
AntonPuko Jun 4, 2017
9713dc6
Merge pull request #158 from AntonPuko/addDoubleClaimDeviceThrows
jlkalberer Jun 4, 2017
14597de
Merge pull request #159 from AntonPuko/dbkey
jlkalberer Jun 4, 2017
ffacabe
Updates and improvements from setting up particle-collider
jlkalberer Jun 4, 2017
44dc6ca
Fixing tests.. again.
jlkalberer Jun 4, 2017
cabe474
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
jlkalberer Jun 4, 2017
229fa34
Fixing logger so it stringifies objects correctly.
jlkalberer Jun 4, 2017
3d36fc9
Rebuild
jlkalberer Jun 4, 2017
d69cfce
Fixing timeouts for loading large amounts of data.
jlkalberer Jun 5, 2017
fc6e52e
Fixing access token so it doesn't expire so soon
jlkalberer Jun 5, 2017
86ccecf
made deviceKeyRepository consistent with IBaseRepository
AntonPuko Jun 4, 2017
9c8b826
Merge pull request #161 from AntonPuko/deviceKeyFix
jlkalberer Jun 5, 2017
b6d11f7
implement Administrator permissions for deviceAttributes and webhooks…
AntonPuko Jun 3, 2017
cd6740e
get token with Ouath hacky code.
AntonPuko Jun 6, 2017
10ebd62
move oauthServer initialization from RouteConfig to defaultBindings
AntonPuko Jun 6, 2017
13b9dca
Merge pull request #154 from AntonPuko/permissions
jlkalberer Jun 6, 2017
cbbf749
rebuild
AntonPuko Jun 6, 2017
b792864
change arg from id to query in remove db method. fix deleteById name
AntonPuko Jun 6, 2017
0424346
rename getByID
AntonPuko Jun 6, 2017
bb0a20b
fix OauthModel and `accessTokenExpiresAt` must be a Date instance' er…
AntonPuko Jun 6, 2017
f4c1b76
don't replace _id with deviceID in database repos, but use deviceID a…
AntonPuko Jun 6, 2017
2f3f07e
Merge pull request #166 from AntonPuko/fixModel
jlkalberer Jun 6, 2017
6076862
clean Flow types
AntonPuko Jun 6, 2017
0bec300
Merge pull request #167 from AntonPuko/reposFixes
jlkalberer Jun 6, 2017
5b13ae5
Allow passing in pre-created express app to do custom routing.
jlkalberer Jun 7, 2017
d5d984b
add deviceKeys migration to migrateScript
AntonPuko Jun 7, 2017
465d913
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
jlkalberer Jun 7, 2017
e1ba3dc
Merge pull request #168 from AntonPuko/migrationScript
jlkalberer Jun 7, 2017
0417a26
Create azure-mongodb.js
jlkalberer Jun 7, 2017
710d1b2
disable eslint in azure example
AntonPuko Jun 7, 2017
ee1db31
fix package-lock.json
AntonPuko Jun 7, 2017
c0900d2
Merge pull request #174 from AntonPuko/fix-package-lock
jlkalberer Jun 7, 2017
b51661d
Added a Docker Build Script and Explanation
Jun 8, 2017
6a8a8e1
Merge pull request #176 from keatec/dev
jlkalberer Jun 8, 2017
c182732
Added `ping` route
jlkalberer Jun 8, 2017
9cf4983
use _eventPublisher.publishAndListenForResponse instead coupling of d…
AntonPuko Jun 8, 2017
f518710
Merge pull request #1 from Brewskey/dev
haeferer Jun 9, 2017
940c26d
added setting.json so vscode works with flow
Jun 9, 2017
521ee4d
Merge pull request #179 from keatec/dev
jlkalberer Jun 9, 2017
5b0d2b9
Merge pull request #177 from AntonPuko/messaging
jlkalberer Jun 9, 2017
e1a96c2
fix var name nit
AntonPuko Jun 9, 2017
0b764d8
Flow fixes
jlkalberer Jun 10, 2017
fc92555
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
jlkalberer Jun 10, 2017
3fc46b2
Removing ursa
jlkalberer Jun 12, 2017
5a86d20
Allow custom template replacement on webhooks.
jlkalberer Jun 12, 2017
e755faf
Merge pull request #2 from Brewskey/dev
haeferer Jun 13, 2017
da7d9ad
Added Image to Docker HUB, remove Node-GYP from Build Process
Jun 13, 2017
d0eb525
Merge branch 'dev' of https://github.com/keatec/spark-server into dev
Jun 13, 2017
89fd488
Merge pull request #182 from keatec/dev
jlkalberer Jun 13, 2017
03a2cd3
first text
Jun 13, 2017
3603a02
Added ReadMe on Compile with docker
Jun 13, 2017
4de6cc6
Patch
Jun 13, 2017
f35d77d
Merge pull request #186 from keatec/dev
jlkalberer Jun 13, 2017
7d9984d
Pre fork from Brewskey
straccio Jun 13, 2017
8aabb76
Merge remote-tracking branch https://github.com/Brewskey/spark-server…
straccio Jun 13, 2017
26dd839
Merge remote-tracking branch 'upstream/dev'
straccio Jun 13, 2017
f4beeda
Package for debugging purpose
straccio Jun 13, 2017
67c92c3
Corrected get devices that now return "connected" attribute correctly
straccio Jun 13, 2017
4f3d5ca
Removed h5.coap and added script for debugging
straccio Jun 13, 2017
9fd861e
package-lock.json
straccio Jun 13, 2017
20ae8ad
Merge pull request #187 from straccio/master
jlkalberer Jun 13, 2017
12eb7eb
change update to updateByID and use as PATH instead PUT
AntonPuko Jun 14, 2017
a746f34
Merge pull request #188 from AntonPuko/repoUpdateByID
jlkalberer Jun 14, 2017
14059c3
Merge pull request #3 from Brewskey/dev
haeferer Jun 14, 2017
2763f24
use getAttributes for devices from device-server.
AntonPuko Jun 14, 2017
c1fc674
Merge pull request #190 from AntonPuko/attr2
jlkalberer Jun 14, 2017
153ed25
fix key format. and build some not built files
AntonPuko Jun 15, 2017
066f863
Merge pull request #192 from AntonPuko/fixKeyFormat
jlkalberer Jun 15, 2017
dd77525
Merge pull request #4 from Brewskey/dev
haeferer Jun 16, 2017
b70d7c4
Merge pull request #193 from keatec/dev
jlkalberer Jun 16, 2017
1cd8009
Updated firmware endpoint so you can send tinker from the cli
jlkalberer Jun 17, 2017
1994d7a
Updated logger so it has a timestamp and allow overrides via constitute
jlkalberer Jun 17, 2017
0a92ea0
Adding electron support
jlkalberer Jun 17, 2017
35a066e
Updating for ecc
jlkalberer Jun 17, 2017
3f81396
Added electron support. closes #191
jlkalberer Jun 17, 2017
933dc88
implement NeDb
AntonPuko Jun 18, 2017
1e98fb1
Merge pull request #197 from AntonPuko/nedb
jlkalberer Jun 18, 2017
f869bb1
Logger fixes + adding prebuilt files
jlkalberer Jun 18, 2017
54c64e4
Merge pull request #5 from Brewskey/dev
haeferer Jun 18, 2017
1ccb1e7
Added new Logger Structur
haeferer Jun 18, 2017
1fc39d9
Implemented Logger Constitute
haeferer Jun 18, 2017
60f7126
Added suggestions from jlkalberer
haeferer Jun 18, 2017
c7d4a8a
added suggestions
haeferer Jun 18, 2017
a42ff7a
Added changes from jlkalberer
haeferer Jun 19, 2017
3b03983
Add Logger Initialization
haeferer Jun 19, 2017
310cef6
Add extraline to types.js
haeferer Jun 19, 2017
cdfbb25
Rename DefaultLogger
haeferer Jun 19, 2017
f214763
Rename DefaultLogger final
haeferer Jun 19, 2017
236ff4b
added git:clean to package.json to checkout all files from ./dist
Jun 19, 2017
6f217d5
remove git:clean, doesnt make sense
haeferer Jun 19, 2017
787eafb
DefaultLogger now matches Filename
haeferer Jun 19, 2017
1be896b
Merge pull request #199 from keatec/dev
jlkalberer Jun 19, 2017
ad72e24
Merge pull request #8 from Brewskey/dev
haeferer Jun 19, 2017
b8878ec
fix deps
AntonPuko Jun 19, 2017
59a0fce
Merge pull request #208 from AntonPuko/fixDeps
AntonPuko Jun 19, 2017
291227d
Merge pull request #9 from Brewskey/dev
haeferer Jun 20, 2017
2de2bb5
Disable Cache on AVA, to tests can be run without write permission to…
haeferer Jun 20, 2017
224a180
Merge pull request #211 from keatec/dev
jlkalberer Jun 20, 2017
e84024f
update MongoDb so it waits for connection ready.
AntonPuko Jun 20, 2017
409599f
delete TingoDB
AntonPuko Jun 20, 2017
ae37eea
update migrate-script
AntonPuko Jun 20, 2017
ef291d7
update azure-mongo example
AntonPuko Jun 20, 2017
2f8b144
Merge pull request #213 from AntonPuko/updateDbs
jlkalberer Jun 20, 2017
c59336e
filter broadcasted events in webhookmanager
AntonPuko Jun 20, 2017
b625aad
Merge pull request #214 from AntonPuko/eventProvider2
jlkalberer Jun 20, 2017
060cfe6
add eventProvider example
AntonPuko Jun 20, 2017
57b6c3b
Merge pull request #215 from AntonPuko/eventProviderExample
jlkalberer Jun 20, 2017
2a2f9ea
Merge pull request #12 from Brewskey/dev
haeferer Jun 21, 2017
0f71182
Added npm functions for example build and run, changed eventProvider …
haeferer Jun 21, 2017
8ae485d
Changed sample
Jun 21, 2017
c21fcf4
changed ignore on npm build:examples
Jun 21, 2017
2a013c8
patched sample to working code
Jun 21, 2017
f98fc8a
add prettier, add gitAttributes to hide dist in commit diffs
AntonPuko Jun 22, 2017
f88e785
Merge pull request #223 from AntonPuko/prettier
jlkalberer Jun 23, 2017
1d47505
Changed Infos in package.json
haeferer Jun 27, 2017
5ea174c
Merge pull request #18 from Brewskey/dev
haeferer Jun 27, 2017
13e4a2a
Added Bunyan Logger
haeferer Jun 27, 2017
bd02b96
added last NIT from last PR
haeferer Jun 27, 2017
4c2c89c
Added Changes from jlkalberer
haeferer Jun 27, 2017
1bcd2a2
Added Changes AntonPuko
haeferer Jun 27, 2017
ad92897
Added WebHookLogger Log Line
haeferer Jun 27, 2017
9d0a69d
remove gitAdd from npm scripts, its lint-staged own command
AntonPuko Jun 28, 2017
7fd259f
Merge pull request #226 from keatec/bunyanlog
AntonPuko Jun 29, 2017
b65a37b
update package-lock.json, closes https://github.com/Brewskey/spark-se…
AntonPuko Jun 30, 2017
d7a0834
remove wrong logger.warn in webhookManager
AntonPuko Jun 30, 2017
92db5c4
remove wrong logger.warn in webhookManager
AntonPuko Jun 30, 2017
787e020
update package-lock.json, closes https://github.com/Brewskey/spark-se…
AntonPuko Jul 5, 2017
08c04ff
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
AntonPuko Jul 5, 2017
09a8d17
update migrateScript, so it saves dates correctly.
AntonPuko Jul 5, 2017
23e9511
Merge pull request #235 from AntonPuko/migrateScriptFix
jlkalberer Jul 6, 2017
cc8969f
Packages update.
straccio Jul 6, 2017
7d620b8
passing not json event.data as sting for webhooks as form-ulr-encoded
AntonPuko Jul 6, 2017
5e462be
Merge pull request #236 from AntonPuko/webhookManagerFix
jlkalberer Jul 7, 2017
becf0ff
Merge remote-tracking branch 'upstream/dev'
straccio Jul 7, 2017
6a803e4
update build
AntonPuko Jul 8, 2017
0074702
stringify device variables
AntonPuko Jul 8, 2017
78258f8
Merge pull request #238 from AntonPuko/stringifyDeviceVariabes
jlkalberer Jul 8, 2017
ea81793
Merge remote-tracking branch 'upstream/dev'
straccio Jul 10, 2017
84a0219
try/catch around device attributes as JSON deserializer was breaking …
jlkalberer Jul 13, 2017
4451e05
Update to newer version of spark protocol
jlkalberer Jul 14, 2017
a4fea5d
build deviceAttributesDatabaseRepository.js
AntonPuko Jul 14, 2017
b971834
Merge remote-tracking branch 'upstream/dev'
straccio Jul 17, 2017
2105dcd
Starting work on products API.
jlkalberer Jul 22, 2017
35df618
fix adminUser creation
AntonPuko Jul 23, 2017
24bf174
Merge pull request #240 from AntonPuko/adminFix
jlkalberer Jul 23, 2017
673ab73
Finished API for managing firmware/devices/products.
jlkalberer Jul 24, 2017
95d8aa4
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
jlkalberer Jul 24, 2017
0d91a19
Added changes so that when a product firmware is updated, it sends an…
jlkalberer Jul 26, 2017
8cd5c5c
Rebuilt dist
jlkalberer Aug 1, 2017
7a9e7de
Merge branch 'dev' of github.com:Brewskey/spark-server into dev
jlkalberer Aug 1, 2017
8f8c21e
Fixed DB so it fetches correctly for mongo.
jlkalberer Aug 1, 2017
b0091a9
fix variables loss on update device name.
AntonPuko Aug 6, 2017
8f7e83f
Merge pull request #243 from AntonPuko/fixUndefinedOnUpdateAttr
jlkalberer Aug 7, 2017
4ce79ff
remove console.logs; add webhookLoggerStub
AntonPuko Aug 9, 2017
c675147
add bunyan to start scripts
AntonPuko Aug 10, 2017
5651a30
add DeviceManager to ProductsController bindings
AntonPuko Aug 10, 2017
0c0c08a
provide webhookData as querystring for GET requests
AntonPuko Aug 10, 2017
85152e8
update package-lock.json to get last spark-protocol changes.
AntonPuko Aug 10, 2017
607dfae
remove comments
AntonPuko Aug 10, 2017
c3982eb
add deviceManager assignment in productsController, closes https://gi…
AntonPuko Aug 11, 2017
49c9250
Merge pull request #246 from AntonPuko/fixBugs
jlkalberer Aug 11, 2017
1b123a7
update package-lock.json for spark-protocol change: https://github.co…
AntonPuko Aug 12, 2017
2fc3aee
update package-lock.json for spark-protocol change: https://github.co…
AntonPuko Aug 16, 2017
ad9a973
update package-lock.json for spark-protocol change: https://github.co…
AntonPuko Aug 17, 2017
7827abe
update package-lock.json for spark-protocol change: https://github.co…
AntonPuko Aug 17, 2017
a6fd3c1
product api fixes
AntonPuko Aug 20, 2017
024ae5c
Merge pull request #248 from AntonPuko/fixProducts
jlkalberer Aug 20, 2017
4e080bf
revert back casting product_id to string on production creation, use …
AntonPuko Aug 23, 2017
438e59d
add equals to 0 check for right platform_id filtering.
AntonPuko Aug 23, 2017
2f85048
fix _formatProduct in ProductDatabaseRepository
AntonPuko Aug 23, 2017
4a683a5
add parseInt for firmware version comes from route params.
AntonPuko Aug 23, 2017
8162cde
formatDeviceAttributes, add product_id to returned product devices props
AntonPuko Aug 24, 2017
3624507
build files
AntonPuko Aug 24, 2017
7d0f077
use isNaN in getByIDOrSlug
AntonPuko Aug 24, 2017
367e8d4
Merge pull request #249 from AntonPuko/productFixes
jlkalberer Aug 24, 2017
4bdbcef
fix flashProductDevices method, fix csv parsing
AntonPuko Aug 26, 2017
e7543fa
Merge pull request #250 from AntonPuko/productFixes3
jlkalberer Aug 26, 2017
abeb5c3
save product_id instead product.id in productDevice
AntonPuko Aug 26, 2017
ee7eddc
cast productFirmware buffer when save to/ get from db.
AntonPuko Aug 26, 2017
32d7e43
Merge pull request #251 from AntonPuko/productFixes4
jlkalberer Aug 27, 2017
09082d1
update flow-bin, fix some product related flow errors, there are stil…
AntonPuko Aug 27, 2017
d6c42e0
fix bugs, add temporary hack for getting right buffer from different dbs
AntonPuko Aug 30, 2017
04dd5df
add devicePing endpoint
AntonPuko Aug 30, 2017
3ac3f37
Merge pull request #253 from AntonPuko/pingDevice
jlkalberer Aug 31, 2017
693b8b9
Merge pull request #252 from AntonPuko/productFixes5
jlkalberer Aug 31, 2017
fba69ed
Create http server with timeout 0
straccio Sep 5, 2017
851ce2e
Merge remote-tracking branch 'upstream/dev'
straccio Sep 5, 2017
dda8817
Build
straccio Sep 5, 2017
a873d9b
disable userFilter for admin in eventsController
AntonPuko Sep 8, 2017
075e5fc
Merge pull request #254 from AntonPuko/disableUserFilterForAdmin
jlkalberer Sep 8, 2017
d2a64aa
return keep alive for event stream
AntonPuko Sep 8, 2017
db28413
Merge pull request #255 from AntonPuko/eventskeepalive
jlkalberer Sep 13, 2017
9f23a53
Merge remote-tracking branch 'upstream/dev'
straccio Oct 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updating bindings to work with external settings.
  • Loading branch information
jlkalberer authored and lbt committed Feb 28, 2017
commit 7641126d84ed45c4f07ebd6f0b2b304a4fc127de
11 changes: 10 additions & 1 deletion dist/defaultBindings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/defaultBindings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @flow

import type { Container } from 'constitute';
import type { Settings } from './types';

import { defaultBindings } from 'spark-protocol';
import DeviceClaimsController from './controllers/DeviceClaimsController';
@@ -19,7 +20,12 @@ import UserFileRepository from './repository/UserFileRepository';
import WebhookFileRepository from './repository/WebhookFileRepository';
import settings from './settings';

export default (container: Container) => {
export default (container: Container, newSettings: Settings) => {
// Make sure that the spark-server settings match whatever is passed in
Object.keys(newSettings).forEach((key: string) => {
settings[key] = newSettings[key];
});

// spark protocol container bindings
defaultBindings(container);

2 changes: 1 addition & 1 deletion test/setup/getDefaultContainer.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import DeviceServerMock from './DeviceServerMock';
const container = new Container();
// TODO - we should be creating different bindings per test so we can mock out
// different modules to test
defaultBindings(container);
defaultBindings(container, settings);

// settings
container.bindValue('DEVICE_DIRECTORY', settings.DEVICE_DIRECTORY);