Skip to content

Commit

Permalink
[RAM] Bring back API integration (#146930)
Browse files Browse the repository at this point in the history
Bring back API integration
  • Loading branch information
XavierM authored Dec 6, 2022
1 parent e25dece commit 4bcb4c6
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 16 deletions.
1 change: 1 addition & 0 deletions .buildkite/ftr_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ enabled:
- x-pack/test/alerting_api_integration/basic/config.ts
- x-pack/test/alerting_api_integration/security_and_spaces/group1/config.ts
- x-pack/test/alerting_api_integration/security_and_spaces/group2/config.ts
- x-pack/test/alerting_api_integration/security_and_spaces/group3/config.ts
- x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts
- x-pack/test/alerting_api_integration/spaces_only/config.ts
- x-pack/test/api_integration_basic/config.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,17 @@ export default function alertingTests({ loadTestFile, getService }: FtrProviderC
await tearDown(getService);
});

// loadTestFile(require.resolve('./find'));
// loadTestFile(require.resolve('./create'));
// loadTestFile(require.resolve('./delete'));
// loadTestFile(require.resolve('./disable'));
// loadTestFile(require.resolve('./enable'));
// loadTestFile(require.resolve('./execution_status'));
// loadTestFile(require.resolve('./get'));
// loadTestFile(require.resolve('./get_alert_state'));
// loadTestFile(require.resolve('./get_alert_summary'));
// loadTestFile(require.resolve('./rule_types'));
// loadTestFile(require.resolve('./bulk_edit'));
// loadTestFile(require.resolve('./bulk_delete'));
// loadTestFile(require.resolve('./bulk_enable'));
// loadTestFile(require.resolve('./bulk_disable'));
// loadTestFile(require.resolve('./retain_api_key'));
loadTestFile(require.resolve('./clone'));
loadTestFile(require.resolve('./find'));
loadTestFile(require.resolve('./create'));
loadTestFile(require.resolve('./delete'));
loadTestFile(require.resolve('./disable'));
loadTestFile(require.resolve('./enable'));
loadTestFile(require.resolve('./execution_status'));
loadTestFile(require.resolve('./get'));
loadTestFile(require.resolve('./get_alert_state'));
loadTestFile(require.resolve('./get_alert_summary'));
loadTestFile(require.resolve('./rule_types'));
loadTestFile(require.resolve('./retain_api_key'));
});
});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { createTestConfig } from '../../common/config';

// eslint-disable-next-line import/no-default-export
export default createTestConfig('security_and_spaces', {
disabledPlugins: [],
license: 'trial',
ssl: true,
enableActionsProxy: true,
publicBaseUrl: true,
testFiles: [require.resolve('./tests')],
useDedicatedTaskRunner: true,
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { FtrProviderContext } from '../../../../common/ftr_provider_context';
import { setupSpacesAndUsers, tearDown } from '../../../setup';

// eslint-disable-next-line import/no-default-export
export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) {
describe('Alerts - Group 3', () => {
describe('alerts', () => {
before(async () => {
await setupSpacesAndUsers(getService);
});

after(async () => {
await tearDown(getService);
});

loadTestFile(require.resolve('./bulk_edit'));
loadTestFile(require.resolve('./bulk_delete'));
loadTestFile(require.resolve('./bulk_enable'));
loadTestFile(require.resolve('./bulk_disable'));
loadTestFile(require.resolve('./clone'));
});
});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { FtrProviderContext } from '../../../../common/ftr_provider_context';

// eslint-disable-next-line import/no-default-export
export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) {
describe('alerting api integration security and spaces enabled - Group 3', function () {
loadTestFile(require.resolve('./alerting'));
});
}

0 comments on commit 4bcb4c6

Please sign in to comment.