mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
only use apis in test hooks
This commit is contained in:
parent
7446a10fb5
commit
96486382d9
3 changed files with 24 additions and 9 deletions
|
@ -21,9 +21,14 @@ export default function pagerdutyTest({ getService }: FtrProviderContext) {
|
|||
|
||||
describe('pagerduty action', () => {
|
||||
let simulatedActionId = '';
|
||||
const pagerdutySimulatorURL = kibanaServer.resolveUrl(
|
||||
getExternalServiceSimulatorPath(ExternalServiceSimulator.PAGERDUTY)
|
||||
);
|
||||
let pagerdutySimulatorURL: string = '<could not determine kibana url>';
|
||||
|
||||
// need to wait for kibanaServer to settle ...
|
||||
before(() => {
|
||||
pagerdutySimulatorURL = kibanaServer.resolveUrl(
|
||||
getExternalServiceSimulatorPath(ExternalServiceSimulator.PAGERDUTY)
|
||||
);
|
||||
});
|
||||
|
||||
after(() => esArchiver.unload('empty_kibana'));
|
||||
|
||||
|
|
|
@ -21,9 +21,14 @@ export default function slackTest({ getService }: FtrProviderContext) {
|
|||
|
||||
describe('slack action', () => {
|
||||
let simulatedActionId = '';
|
||||
const slackSimulatorURL = kibanaServer.resolveUrl(
|
||||
getExternalServiceSimulatorPath(ExternalServiceSimulator.SLACK)
|
||||
);
|
||||
let slackSimulatorURL: string = '<could not determine kibana url>';
|
||||
|
||||
// need to wait for kibanaServer to settle ...
|
||||
before(() => {
|
||||
slackSimulatorURL = kibanaServer.resolveUrl(
|
||||
getExternalServiceSimulatorPath(ExternalServiceSimulator.SLACK)
|
||||
);
|
||||
});
|
||||
|
||||
after(() => esArchiver.unload('empty_kibana'));
|
||||
|
||||
|
|
|
@ -62,9 +62,14 @@ export default function webhookTest({ getService }: FtrProviderContext) {
|
|||
}
|
||||
|
||||
describe('webhook action', () => {
|
||||
const webhookSimulatorURL = kibanaServer.resolveUrl(
|
||||
getExternalServiceSimulatorPath(ExternalServiceSimulator.WEBHOOK)
|
||||
);
|
||||
let webhookSimulatorURL: string = '<could not determine kibana url>';
|
||||
|
||||
// need to wait for kibanaServer to settle ...
|
||||
before(() => {
|
||||
webhookSimulatorURL = kibanaServer.resolveUrl(
|
||||
getExternalServiceSimulatorPath(ExternalServiceSimulator.WEBHOOK)
|
||||
);
|
||||
});
|
||||
|
||||
after(() => esArchiver.unload('empty_kibana'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue