File tree Expand file tree Collapse file tree 7 files changed +57
-6
lines changed
x-pack/test/security_solution_api_integration/test_suites/detections_response
detection_engine/rule_preview
rules_management/rule_creation/trial_license_complete_tier Expand file tree Collapse file tree 7 files changed +57
-6
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ disabled:
7373 - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/query/trial_license_complete_tier/configs/serverless.config.ts
7474 - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/threshold/trial_license_complete_tier/configs/serverless.config.ts
7575 - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_gaps/trial_license_complete_tier/configs/serverless.config.ts
76+ - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_preview/configs/serverless_complete_tier.config.ts
7677 - x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/basic_license_essentials_tier/configs/serverless.config.ts
7778 - x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/configs/serverless.config.ts
7879 - x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_patch/trial_license_complete_tier/configs/serverless.config.ts
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ enabled:
6262 - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/query/trial_license_complete_tier/configs/ess.config.ts
6363 - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/threshold/trial_license_complete_tier/configs/ess.config.ts
6464 - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_gaps/trial_license_complete_tier/configs/ess.config.ts
65+ - x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_preview/configs/ess_trial_license.config.ts
6566 - x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/basic_license_essentials_tier/configs/ess.config.ts
6667 - x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/configs/ess.config.ts
6768 - x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_patch/trial_license_complete_tier/configs/ess.config.ts
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+ * or more contributor license agreements. Licensed under the Elastic License
4+ * 2.0; you may not use this file except in compliance with the Elastic License
5+ * 2.0.
6+ */
7+
8+ import { FtrConfigProviderContext } from '@kbn/test' ;
9+
10+ export default async function ( { readConfigFile } : FtrConfigProviderContext ) {
11+ const functionalConfig = await readConfigFile (
12+ require . resolve ( '../../../../../config/ess/config.base.trial' )
13+ ) ;
14+
15+ return {
16+ ...functionalConfig . getAll ( ) ,
17+ testFiles : [ require . resolve ( '..' ) ] ,
18+ junit : {
19+ reportName : 'Detection Engine - Rule Preview Integration Tests - ESS Env - Trial License' ,
20+ } ,
21+ } ;
22+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+ * or more contributor license agreements. Licensed under the Elastic License
4+ * 2.0; you may not use this file except in compliance with the Elastic License
5+ * 2.0.
6+ */
7+ import { createTestConfig } from '../../../../../config/serverless/config.base' ;
8+
9+ export default createTestConfig ( {
10+ testFiles : [ require . resolve ( '..' ) ] ,
11+ junit : {
12+ reportName :
13+ 'Detection Engine - Rule Preview Integration Tests - Serverless Env - Complete Tier' ,
14+ } ,
15+ } ) ;
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+ * or more contributor license agreements. Licensed under the Elastic License
4+ * 2.0; you may not use this file except in compliance with the Elastic License
5+ * 2.0.
6+ */
7+ import { FtrProviderContext } from '../../../../ftr_provider_context' ;
8+
9+ export default function ( { loadTestFile } : FtrProviderContext ) {
10+ describe ( 'Detection Engine - Rule preview API' , function ( ) {
11+ loadTestFile ( require . resolve ( './preview_rules' ) ) ;
12+ } ) ;
13+ }
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ import expect from '@kbn/expect';
99
1010import { DETECTION_ENGINE_RULES_PREVIEW } from '@kbn/security-solution-plugin/common/constants' ;
1111import { ROLES } from '@kbn/security-solution-plugin/common/test' ;
12- import { getSimplePreviewRule , getSimpleRulePreviewOutput } from '../../../ utils' ;
13- import { deleteAllRules } from '../../../../../ config/services/detections_response' ;
12+ import { getSimplePreviewRule , getSimpleRulePreviewOutput } from '../../utils' ;
13+ import { deleteAllRules } from '../../../../config/services/detections_response' ;
1414
15- import { createUserAndRole , deleteUserAndRole } from '../../../../../ config/services/common' ;
15+ import { createUserAndRole , deleteUserAndRole } from '../../../../config/services/common' ;
1616
17- import { FtrProviderContext } from '../../../../../ ftr_provider_context' ;
18- import { EsArchivePathBuilder } from '../../../../../ es_archive_path_builder' ;
17+ import { FtrProviderContext } from '../../../../ftr_provider_context' ;
18+ import { EsArchivePathBuilder } from '../../../../es_archive_path_builder' ;
1919
2020export default ( { getService } : FtrProviderContext ) => {
2121 const esArchiver = getService ( 'esArchiver' ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,5 @@ export default function ({ loadTestFile }: FtrProviderContext) {
1010 describe ( 'Rules Management - Rule creation APIs' , function ( ) {
1111 loadTestFile ( require . resolve ( './create_rules' ) ) ;
1212 loadTestFile ( require . resolve ( './create_new_terms' ) ) ;
13- loadTestFile ( require . resolve ( './preview_rules' ) ) ;
1413 } ) ;
1514}
You can’t perform that action at this time.
0 commit comments