fleet/frontend/test/mocks/status_label_mocks.js
Zach Wasserman 7a68e3de65
Deprecate /api/v1/kolide routes (#297)
- Support both /api/v1/fleet and /api/v1/kolide routes in server.
- Add logging for use of deprecated routes.
- Rename routes in frontend JS.
- Rename routes and add notes in documentation.
2021-02-10 12:13:11 -08:00

15 lines
349 B
JavaScript

import createRequestMock from 'test/mocks/create_request_mock';
export default {
getCounts: {
valid: (bearerToken) => {
return createRequestMock({
bearerToken,
endpoint: '/api/v1/fleet/host_summary',
method: 'get',
response: { online_count: 1, offline_count: 23, mia_count: 2 },
});
},
},
};