Skip to content

Commit

Permalink
reapplied changes after merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed May 4, 2020
1 parent 7215df9 commit e1f83ef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export enum ExternalServiceSimulator {
PAGERDUTY = 'pagerduty',
SERVICENOW = 'servicenow',
SLACK = 'slack',
JIRA = 'jira',
WEBHOOK = 'webhook',
}

Expand All @@ -30,6 +31,7 @@ export function getAllExternalServiceSimulatorPaths(): string[] {
getExternalServiceSimulatorPath(service)
);
allPaths.push(`/api/_${NAME}/${ExternalServiceSimulator.SERVICENOW}/api/now/v2/table/incident`);
allPaths.push(`/api/_${NAME}/${ExternalServiceSimulator.JIRA}/rest/api/2/issue`);
return allPaths;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ export function initPlugin(router: IRouter, path: string) {
options: {
authRequired: false,
},
validate: {
params: schema.object({
id: schema.string(),
}),
},
validate: {},
},
async function(
context: RequestHandlerContext,
Expand All @@ -67,7 +63,7 @@ export function initPlugin(router: IRouter, path: string) {

router.get(
{
path: `${path}/api/now/v2/table/incident`,
path: `${path}/api/now/v2/table/incident/{id}`,
options: {
authRequired: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {

import { initPlugin as initWebhook } from './webhook_simulation';
import { initPlugin as initSlack } from './slack_simulation';
import { initPlugin as initJira } from './jira_simulation';

// eslint-disable-next-line import/no-default-export
export default function(kibana: any) {
Expand All @@ -21,6 +22,7 @@ export default function(kibana: any) {
init: (server: Hapi.Server) => {
initWebhook(server, getExternalServiceSimulatorPath(ExternalServiceSimulator.WEBHOOK));
initSlack(server, getExternalServiceSimulatorPath(ExternalServiceSimulator.SLACK));
initJira(server, getExternalServiceSimulatorPath(ExternalServiceSimulator.JIRA));
},
});
}

0 comments on commit e1f83ef

Please sign in to comment.