-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Cloud Posture] test latest findings table sort #144668
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1c3745b
update ftr configs
orouz 7756469
update plugin status route
orouz b272b73
add findings archive file
orouz 8db0b0f
add ftr setup and tests
orouz ff1f0ee
Merge branch 'main' into csp_test_findings
orouz 2939eb1
fix test
orouz 7673e4c
Merge remote-tracking branch 'upstream/main' into csp_test_findings
orouz c487e20
review changes
orouz 8dca307
Merge remote-tracking branch 'upstream/main' into csp_test_findings
orouz 2d8bf79
fix stale element reference
orouz 5b8ab5d
fix lint
orouz bdd1328
clean
orouz e23c44f
fix false positive test
orouz 8ee9335
Merge branch 'main' into csp_test_findings
orouz a025423
review fixes
orouz bffd145
remove pagination and clean
orouz 00c76cf
Merge branch 'main' into csp_test_findings
orouz 7f3d80e
clean and trigger ci
orouz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,34 @@ | ||
| /* | ||
| * 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 { resolve } from 'path'; | ||
| import type { FtrConfigProviderContext } from '@kbn/test'; | ||
| import { pageObjects } from './page_objects'; | ||
| import { getPreConfiguredFleetPackages, getPreConfiguredAgentPolicies } from './helpers'; | ||
|
|
||
| export default async function ({ readConfigFile }: FtrConfigProviderContext) { | ||
| const xpackFunctionalConfig = await readConfigFile( | ||
| require.resolve('../functional/config.base.js') | ||
| ); | ||
|
|
||
| return { | ||
| ...xpackFunctionalConfig.getAll(), | ||
| pageObjects, | ||
| testFiles: [resolve(__dirname, './pages')], | ||
| junit: { | ||
| reportName: 'X-Pack Cloud Security Posture Functional Tests', | ||
| }, | ||
orouz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| kbnTestServer: { | ||
| ...xpackFunctionalConfig.get('kbnTestServer'), | ||
| serverArgs: [ | ||
| ...xpackFunctionalConfig.get('kbnTestServer.serverArgs'), | ||
| ...getPreConfiguredFleetPackages(), | ||
| ...getPreConfiguredAgentPolicies(), | ||
| ], | ||
| }, | ||
| }; | ||
| } | ||
13 changes: 13 additions & 0 deletions
13
x-pack/test/cloud_security_posture_functional/ftr_provider_context.d.ts
This file contains hidden or 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,13 @@ | ||
| /* | ||
| * 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 { GenericFtrProviderContext } from '@kbn/test'; | ||
|
|
||
| import { pageObjects } from './page_objects'; | ||
| import { services } from '../functional/services'; | ||
|
|
||
| export type FtrProviderContext = GenericFtrProviderContext<typeof services, typeof pageObjects>; |
This file contains hidden or 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,27 @@ | ||
| /* | ||
| * 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. | ||
| */ | ||
|
|
||
| const CLOUD_SECURITY_POSTURE_PACKAGE_NAME = 'cloud_security_posture'; | ||
|
|
||
| /** | ||
| * flags to load kibana with fleet pre-configured to have 'cloud_security_posture' integration installed | ||
| */ | ||
| export const getPreConfiguredFleetPackages = () => [ | ||
| `--xpack.fleet.packages.0.name=${CLOUD_SECURITY_POSTURE_PACKAGE_NAME}`, | ||
| `--xpack.fleet.packages.0.version=latest`, | ||
| ]; | ||
|
|
||
| /** | ||
| * flags to load kibana with pre-configured agent policy with a 'cloud_security_posture' package policy | ||
| */ | ||
| export const getPreConfiguredAgentPolicies = () => [ | ||
| `--xpack.fleet.agentPolicies.0.id=agent-policy-csp`, | ||
| `--xpack.fleet.agentPolicies.0.name=example-agent-policy-csp`, | ||
| `--xpack.fleet.agentPolicies.0.package_policies.0.id=integration-policy-csp`, | ||
| `--xpack.fleet.agentPolicies.0.package_policies.0.name=example-integration-csp`, | ||
| `--xpack.fleet.agentPolicies.0.package_policies.0.package.name=${CLOUD_SECURITY_POSTURE_PACKAGE_NAME}`, | ||
| ]; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.