-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Test automation for upgrade, phase 2 and 3 (#104424)
* adds upgrade cypress test * adds new configuration and runner * fixes typos * fixes typecheck issue * fixes typo * fixes command * fixes typo * fixes consistency Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
b589fe5
commit 646f1d4
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
x-pack/plugins/security_solution/cypress/upgrade_integration/custom_query_rule.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* 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 { RULE_NAME } from '../screens/alerts_detection_rules'; | ||
|
||
import { | ||
goToManageAlertsDetectionRules, | ||
waitForAlertsIndexToBeCreated, | ||
waitForAlertsPanelToBeLoaded, | ||
} from '../tasks/alerts'; | ||
import { waitForRulesTableToBeLoaded } from '../tasks/alerts_detection_rules'; | ||
import { loginAndWaitForPageWithoutDateRange } from '../tasks/login'; | ||
|
||
import { ALERTS_URL } from '../urls/navigation'; | ||
|
||
describe('After an upgrade, the cusom query rule', () => { | ||
it('Displays the rule', function () { | ||
loginAndWaitForPageWithoutDateRange(ALERTS_URL); | ||
waitForAlertsPanelToBeLoaded(); | ||
waitForAlertsIndexToBeCreated(); | ||
goToManageAlertsDetectionRules(); | ||
waitForRulesTableToBeLoaded(); | ||
cy.get(RULE_NAME).should('have.text', 'Custom query rule for upgrade'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { FtrConfigProviderContext } from '@kbn/test'; | ||
|
||
import { SecuritySolutionCypressUpgradeCliTestRunner } from './runner'; | ||
|
||
export default async function ({ readConfigFile }: FtrConfigProviderContext) { | ||
const securitySolutionCypressConfig = await readConfigFile(require.resolve('./config.ts')); | ||
return { | ||
...securitySolutionCypressConfig.getAll(), | ||
|
||
testRunner: SecuritySolutionCypressUpgradeCliTestRunner, | ||
}; | ||
} |