mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* synthetics - project monitors - update deletion message
* Update x-pack/test/api_integration/apis/uptime/rest/add_monitor_project.ts
* adjust tests
(cherry picked from commit 65d731d80c
)
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
This commit is contained in:
parent
19cef641ba
commit
307487d802
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