Commit Graph

5 Commits

Author SHA1 Message Date
Mosen
be99fcd47c Further comments on applications datastore.
Attempt to make some where clause helper functions.
Expand test suites to cover many different type of installed applications.
All tests passing.
2016-07-22 23:43:01 +10:00
Mosen
97a97d9378 Fix some error strings in application datastore which still referred to devices.
Add method SaveApplicationByDeviceUUID to add rows to `devices_applications` for the specified device uuid
Add method NewDatastore since NewDB was untestable using mocks.
Connect service now takes an applications datastore as one of its parameters.
ackInstalledApplicationList implemented but not tested for InstallApplicationList responses.
2016-07-22 23:42:59 +10:00
Mosen
f16b776cf8 Flesh out implementation of acknowledging InstalledApplicationList response.
Additional tags on Application for database.
Applications datastore supports select with arbitrary where clauses
Changed the signatures of all the ack handlers in connect service.
2016-07-22 23:40:35 +10:00
Mosen
9f580a6ba2 Stub new method for application datastore
Handle command failures more gracefully than continuously retrying. Failures are not logged
Add table for certificates.
2016-07-22 23:40:35 +10:00
Mosen
43412971d8 Define new datastore for retrieving installed applications by device uuid
Add InstalledApps method to management service
Add endpoint for installed applications at /management/v1/devices/uuid/applications
2016-07-22 23:40:34 +10:00