Skip to content

Commit

Permalink
Add dummy server route for new endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Aug 30, 2023
1 parent 03ca575 commit e274604
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __tests__/utils/kibana-test-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const createKibanaTestServer = async (kibanaVersion: string) => {
server.route('/s/dummy/api/status', (req, res) =>
res.end(JSON.stringify({ version: { number: kibanaVersion } }))
);
server.route('/s/dummy/api/stats', (req, res) =>
res.end(JSON.stringify({ kibana: { version: kibanaVersion } }))
);
// Legacy
server.route(
'/s/dummy/api/synthetics/service/project/monitors',
Expand All @@ -59,6 +62,11 @@ export const createKibanaTestServer = async (kibanaVersion: string) => {
});
}
);
server.route('/s/default/api/status', async (req, res) => {
req.on('end', () => {
res.end('{}');
});
});

// Post 8.6
const basePath = '/s/dummy/api/synthetics/project/test-project/monitors';
Expand Down

0 comments on commit e274604

Please sign in to comment.