Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Uptime] Add delay in telemetry test #75162

Merged
merged 10 commits into from
Aug 21, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export default function ({ getService }: FtrProviderContext) {
});
});

it('should receive expected results after calling overview logging', async () => {
it('should receive 200 status after overview logging', async () => {
// call overview page
const { body: result } = await supertest
await supertest
.post(API_URLS.LOG_PAGE_VIEW)
.set('kbn-xsrf', 'true')
.send({
Expand All @@ -131,21 +131,6 @@ export default function ({ getService }: FtrProviderContext) {
autoRefreshEnabled: true,
})
.expect(200);

expect(result).to.eql({
overview_page: 1,
monitor_page: 1,
no_of_unique_monitors: 4,
settings_page: 0,
monitor_frequency: [120, 0.001, 60, 60],
monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
no_of_unique_observer_locations: 3,
observer_location_name_stats: { min_length: 2, max_length: 7, avg_length: 4.8 },
dateRangeStart: ['now/d', 'now/d'],
dateRangeEnd: ['now/d', 'now-30'],
autoRefreshEnabled: true,
autorefreshInterval: [100, 60],
});
});
});
}