Skip to content

[Contextual Security] Add sanity UI tests for serverless project#233754

Merged
gurevichdmitry merged 9 commits intomainfrom
dg-svls-sanity-tests
Sep 7, 2025
Merged

[Contextual Security] Add sanity UI tests for serverless project#233754
gurevichdmitry merged 9 commits intomainfrom
dg-svls-sanity-tests

Conversation

@gurevichdmitry
Copy link
Contributor

@gurevichdmitry gurevichdmitry commented Sep 2, 2025

Summary

This PR introduces sanity UI tests, adapted to run on the serverless project, which is created on demand.

Screenshot 2025-09-02 at 17 49 38

How To Test

To test this PR, deploy a serverless project using the Create Environment workflow, define the environment variables,

export TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443
export TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443

export TEST_CLOUD=1
export ES_SECURITY_ENABLED=1
export TEST_BROWSER_HEADLESS=1

and then execute the following command:

node scripts/functional_test_runner --config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts

@gurevichdmitry gurevichdmitry requested review from a team as code owners September 2, 2025 14:46
@gurevichdmitry gurevichdmitry added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Sep 2, 2025
Copy link
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.buildkite/ftr_security_serverless_configs.yml LGTM

Copy link
Contributor

@seanrathier seanrathier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit to remove the commented code, otherwise looks great! thanks!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@gurevichdmitry gurevichdmitry merged commit ff659a3 into main Sep 7, 2025
12 checks passed
@gurevichdmitry gurevichdmitry deleted the dg-svls-sanity-tests branch September 7, 2025 13:30
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.1

https://github.com/elastic/kibana/actions/runs/17529212767

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Sep 7, 2025
…stic#233754)

## Summary

This PR introduces sanity UI tests, adapted to run on the serverless
project, which is created on demand.

<img width="835" height="248" alt="Screenshot 2025-09-02 at 17 49 38"
src="https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2"
/>

### How To Test
To test this PR, deploy a serverless project using the [Create
Environment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)
workflow, define the environment variables,

``` bash
export TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443
export TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443

export TEST_CLOUD=1
export ES_SECURITY_ENABLED=1
export TEST_BROWSER_HEADLESS=1
```
and then execute the following command:

`node scripts/functional_test_runner
--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts
`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit ff659a3)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 7, 2025
#233754) (#234248)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Contextual Security] Add sanity UI tests for serverless project
(#233754)](#233754)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dmitry
Gurevich","email":"dmitry.gurevich@elastic.co"},"sourceCommit":{"committedDate":"2025-09-07T13:30:08Z","message":"[Contextual
Security] Add sanity UI tests for serverless project (#233754)\n\n##
Summary\n\nThis PR introduces sanity UI tests, adapted to run on the
serverless\nproject, which is created on demand.\n\n\n<img width=\"835\"
height=\"248\" alt=\"Screenshot 2025-09-02 at 17 49
38\"\nsrc=\"https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2\"\n/>\n\n\n###
How To Test\nTo test this PR, deploy a serverless project using the
[Create\nEnvironment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)\nworkflow,
define the environment variables,\n\n``` bash\nexport
TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443\nexport
TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443\n\nexport
TEST_CLOUD=1\nexport ES_SECURITY_ENABLED=1\nexport
TEST_BROWSER_HEADLESS=1\n```\nand then execute the following
command:\n\n`node
scripts/functional_test_runner\n--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts\n`\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ff659a37e70de1784f0701422beec008db532a90","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v9.2.0"],"title":"[Contextual
Security] Add sanity UI tests for serverless
project","number":233754,"url":"https://github.com/elastic/kibana/pull/233754","mergeCommit":{"message":"[Contextual
Security] Add sanity UI tests for serverless project (#233754)\n\n##
Summary\n\nThis PR introduces sanity UI tests, adapted to run on the
serverless\nproject, which is created on demand.\n\n\n<img width=\"835\"
height=\"248\" alt=\"Screenshot 2025-09-02 at 17 49
38\"\nsrc=\"https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2\"\n/>\n\n\n###
How To Test\nTo test this PR, deploy a serverless project using the
[Create\nEnvironment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)\nworkflow,
define the environment variables,\n\n``` bash\nexport
TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443\nexport
TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443\n\nexport
TEST_CLOUD=1\nexport ES_SECURITY_ENABLED=1\nexport
TEST_BROWSER_HEADLESS=1\n```\nand then execute the following
command:\n\n`node
scripts/functional_test_runner\n--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts\n`\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ff659a37e70de1784f0701422beec008db532a90"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/233754","number":233754,"mergeCommit":{"message":"[Contextual
Security] Add sanity UI tests for serverless project (#233754)\n\n##
Summary\n\nThis PR introduces sanity UI tests, adapted to run on the
serverless\nproject, which is created on demand.\n\n\n<img width=\"835\"
height=\"248\" alt=\"Screenshot 2025-09-02 at 17 49
38\"\nsrc=\"https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2\"\n/>\n\n\n###
How To Test\nTo test this PR, deploy a serverless project using the
[Create\nEnvironment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)\nworkflow,
define the environment variables,\n\n``` bash\nexport
TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443\nexport
TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443\n\nexport
TEST_CLOUD=1\nexport ES_SECURITY_ENABLED=1\nexport
TEST_BROWSER_HEADLESS=1\n```\nand then execute the following
command:\n\n`node
scripts/functional_test_runner\n--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts\n`\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ff659a37e70de1784f0701422beec008db532a90"}}]}]
BACKPORT-->

Co-authored-by: Dmitry Gurevich <dmitry.gurevich@elastic.co>
KodeRad pushed a commit to KodeRad/kibana that referenced this pull request Sep 15, 2025
…stic#233754)

## Summary

This PR introduces sanity UI tests, adapted to run on the serverless
project, which is created on demand.


<img width="835" height="248" alt="Screenshot 2025-09-02 at 17 49 38"
src="https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2"
/>


### How To Test
To test this PR, deploy a serverless project using the [Create
Environment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)
workflow, define the environment variables,

``` bash
export TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443
export TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443

export TEST_CLOUD=1
export ES_SECURITY_ENABLED=1
export TEST_BROWSER_HEADLESS=1
```
and then execute the following command:

`node scripts/functional_test_runner
--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts
`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
…stic#233754)

## Summary

This PR introduces sanity UI tests, adapted to run on the serverless
project, which is created on demand.


<img width="835" height="248" alt="Screenshot 2025-09-02 at 17 49 38"
src="https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2"
/>


### How To Test
To test this PR, deploy a serverless project using the [Create
Environment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)
workflow, define the environment variables,

``` bash
export TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443
export TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443

export TEST_CLOUD=1
export ES_SECURITY_ENABLED=1
export TEST_BROWSER_HEADLESS=1
```
and then execute the following command:

`node scripts/functional_test_runner
--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts
`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
niros1 pushed a commit that referenced this pull request Sep 30, 2025
…3754)

## Summary

This PR introduces sanity UI tests, adapted to run on the serverless
project, which is created on demand.


<img width="835" height="248" alt="Screenshot 2025-09-02 at 17 49 38"
src="https://github.com/user-attachments/assets/db3172b1-3361-4497-a43e-4a1ba27840c2"
/>


### How To Test
To test this PR, deploy a serverless project using the [Create
Environment](https://github.com/elastic/cloudbeat/actions/workflows/test-environment.yml)
workflow, define the environment variables,

``` bash
export TEST_KIBANA_URL=https://elastic:password@my-kbn-cluster.elastic-cloud.com:443
export TEST_ES_URL=https://elastic:password@my-es-cluster.elastic-cloud.com:443

export TEST_CLOUD=1
export ES_SECURITY_ENABLED=1
export TEST_BROWSER_HEADLESS=1
```
and then execute the following command:

`node scripts/functional_test_runner
--config=x-pack/solutions/security/test/serverless/functional/configs/config.cloud_security_posture.cloud.ts
`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes v9.1.4 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants