mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Synthetics] project monitors - update deletion message (#138935)
* synthetics - project monitors - update deletion message * Update x-pack/test/api_integration/apis/uptime/rest/add_monitor_project.ts * adjust tests
This commit is contained in:
parent
364917eeb3
commit
65d731d80c
2 changed files with 3 additions and 4 deletions
|
@ -337,9 +337,9 @@ export class ProjectMonitorFormatter {
|
|||
request: this.request,
|
||||
});
|
||||
this.deletedMonitors.push(journeyId);
|
||||
this.handleStreamingMessage({ message: `Monitor ${monitorId} deleted successfully` });
|
||||
this.handleStreamingMessage({ message: `Monitor ${journeyId} deleted successfully` });
|
||||
} catch (e) {
|
||||
this.handleStreamingMessage({ message: `Monitor ${monitorId} could not be deleted` });
|
||||
this.handleStreamingMessage({ message: `Monitor ${journeyId} could not be deleted` });
|
||||
this.failedStaleMonitors.push({
|
||||
id: monitorId,
|
||||
reason: 'Failed to delete stale monitor',
|
||||
|
|
|
@ -292,9 +292,8 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
.expect(200);
|
||||
|
||||
const { monitors } = getResponse.body;
|
||||
|
||||
expect(monitors[0]).eql(undefined);
|
||||
|
||||
expect(messages[1]).eql(`Monitor ${secondMonitor.id} deleted successfully`);
|
||||
expect(messages[2].createdMonitors).eql([]);
|
||||
expect(messages[2].failedMonitors).eql([]);
|
||||
expect(messages[2].updatedMonitors).eql([projectMonitors.monitors[0].id]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue