kibana/x-pack/test/api_integration/apis/uptime/graphql/index.js
Justin Kambic 8fe63eb07f
[Uptime] Fix flaky behavior and re-enable Uptime API tests (#32819) (#33180)
* Attempt to fix issue causing flaky behavior in uptime API tests.

* run x-pack-intake group 20 times to test flakiness

* Revert "run x-pack-intake group 20 times to test flakiness"

This reverts commit ad2e8c7003.
2019-03-13 18:51:25 -04:00

27 lines
1.2 KiB
JavaScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export default function ({ getService, loadTestFile }) {
const esArchiver = getService('esArchiver');
const archive = 'uptime/full_heartbeat';
describe('graphql', () => {
before('load heartbeat data', async () => await esArchiver.load(archive));
after('unload heartbeat index', async () => await esArchiver.unload(archive));
// each of these test files imports a GQL query from
// the uptime app and runs it against the live HTTP server,
// verifying the pre-loaded documents are returned in a way that
// matches the snapshots contained in './fixtures'
loadTestFile(require.resolve('./doc_count'));
loadTestFile(require.resolve('./error_list'));
loadTestFile(require.resolve('./filter_bar'));
loadTestFile(require.resolve('./monitor_list'));
loadTestFile(require.resolve('./monitor_status_bar'));
loadTestFile(require.resolve('./ping_list'));
loadTestFile(require.resolve('./snapshot'));
loadTestFile(require.resolve('./icmp_queries'));
});
}