Skip to content

[Synthetics] Add multispace monitor API test suite in private location #226042

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 5 commits into from
Jul 7, 2025

Conversation

cesco-f
Copy link
Contributor

@cesco-f cesco-f commented Jul 1, 2025

This PR closes #225431 by running the multispace monitor API test suite in both public and private locations.

Public location tests are still skipped on cloud, as they are expected to fail.

How to Test
1. Run the following command:

TEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co \
TEST_CLOUD=1 \
NODE_TLS_REJECT_UNAUTHORIZED=0 \
CLOUD_HOST="issue-serverless-uksvx-pr226042-e71759.kb.eu-west-1.aws.qa.elastic.cloud" \
CLOUD_PASS="42m8ZieD9Ld1s8lB0u99L2zg" \
CLOUD_USER="testing-internal" \
TEST_KIBANA_URL="https://${CLOUD_USER}:${CLOUD_PASS}@${CLOUD_HOST}" \
TEST_ES_URL="${TEST_KIBANA_URL}:443" \
node --no-warnings scripts/functional_test_runner \
  --exclude-tag skipCloud \
  --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts \
  --grep "LegacyAndMultiSpaceMonitorAPI"
  1. Expected Result:
    • Only private location tests should run.
    • All private location tests should pass.

Note:
If the deployment is recreated, you may need to update the values for CLOUD_HOST and CLOUD_PASS.

@cesco-f cesco-f requested a review from a team as a code owner July 1, 2025 15:29
@cesco-f cesco-f added release_note:skip Skip the PR/issue when compiling release notes ci:project-deploy-observability Create an Observability project backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jul 1, 2025
Copy link
Contributor

github-actions bot commented Jul 1, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Jul 1, 2025
@cesco-f cesco-f force-pushed the fix-synthetics-test branch 2 times, most recently from e7fb08d to e2a2843 Compare July 2, 2025 08:38
@cesco-f cesco-f force-pushed the fix-synthetics-test branch from e2a2843 to 9e96c64 Compare July 2, 2025 08:53
@cesco-f cesco-f force-pushed the fix-synthetics-test branch from 02fe8b6 to e5d2225 Compare July 2, 2025 10:25
@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 7, 2025

💚 Build Succeeded

  • Buildkite Build
  • Commit: dd1ad4b
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-226042-dd1ad4b4c647

Metrics [docs]

✅ unchanged

History

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

LGTM !!

@cesco-f cesco-f merged commit 9978674 into elastic:main Jul 7, 2025
10 checks passed
@cesco-f cesco-f deleted the fix-synthetics-test branch July 7, 2025 13:13
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 7, 2025
elastic#226042)

This PR closes elastic#225431 by running the multispace monitor API test suite
in both public and private locations.

Public location tests are still skipped on cloud, as they are expected
to fail.

How to Test
	1.	Run the following command:
```
TEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co \
TEST_CLOUD=1 \
NODE_TLS_REJECT_UNAUTHORIZED=0 \
CLOUD_HOST="issue-serverless-uksvx-pr226042-e71759.kb.eu-west-1.aws.qa.elastic.cloud" \
CLOUD_PASS="42m8ZieD9Ld1s8lB0u99L2zg" \
CLOUD_USER="testing-internal" \
TEST_KIBANA_URL="https://${CLOUD_USER}:${CLOUD_PASS}@${CLOUD_HOST}" \
TEST_ES_URL="${TEST_KIBANA_URL}:443" \
node --no-warnings scripts/functional_test_runner \
  --exclude-tag skipCloud \
  --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts \
  --grep "LegacyAndMultiSpaceMonitorAPI"
```
2.	Expected Result:
	•	Only private location tests should run.
	•	All private location tests should pass.

Note:
If the deployment is recreated, you may need to update the values for
`CLOUD_HOST` and `CLOUD_PASS`.

(cherry picked from commit 9978674)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 226042

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 7, 2025
…ocation (#226042) (#226813)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Synthetics] Add multispace monitor API test suite in private
location (#226042)](#226042)

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

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

<!--BACKPORT [{"author":{"name":"Francesco
Fagnani","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-07T13:13:46Z","message":"[Synthetics]
Add multispace monitor API test suite in private location
(#226042)\n\nThis PR closes #225431 by running the multispace monitor
API test suite\nin both public and private locations.\n\nPublic location
tests are still skipped on cloud, as they are expected\nto fail.\n\nHow
to Test\n\t1.\tRun the following
command:\n```\nTEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co
\\\nTEST_CLOUD=1 \\\nNODE_TLS_REJECT_UNAUTHORIZED=0
\\\nCLOUD_HOST=\"issue-serverless-uksvx-pr226042-e71759.kb.eu-west-1.aws.qa.elastic.cloud\"
\\\nCLOUD_PASS=\"42m8ZieD9Ld1s8lB0u99L2zg\"
\\\nCLOUD_USER=\"testing-internal\"
\\\nTEST_KIBANA_URL=\"https://${CLOUD_USER}:${CLOUD_PASS}@${CLOUD_HOST}\"
\\\nTEST_ES_URL=\"${TEST_KIBANA_URL}:443\" \\\nnode --no-warnings
scripts/functional_test_runner \\\n --exclude-tag skipCloud \\\n
--config
x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts
\\\n --grep \"LegacyAndMultiSpaceMonitorAPI\"\n```\n2.\tExpected
Result:\n\t•\tOnly private location tests should run.\n\t•\tAll private
location tests should pass.\n\nNote:\nIf the deployment is recreated,
you may need to update the values for\n`CLOUD_HOST` and
`CLOUD_PASS`.","sha":"9978674c232c4eb9a7a999136358a071dccb7c0a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Synthetics]
Add multispace monitor API test suite in private
location","number":226042,"url":"https://github.com/elastic/kibana/pull/226042","mergeCommit":{"message":"[Synthetics]
Add multispace monitor API test suite in private location
(#226042)\n\nThis PR closes #225431 by running the multispace monitor
API test suite\nin both public and private locations.\n\nPublic location
tests are still skipped on cloud, as they are expected\nto fail.\n\nHow
to Test\n\t1.\tRun the following
command:\n```\nTEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co
\\\nTEST_CLOUD=1 \\\nNODE_TLS_REJECT_UNAUTHORIZED=0
\\\nCLOUD_HOST=\"issue-serverless-uksvx-pr226042-e71759.kb.eu-west-1.aws.qa.elastic.cloud\"
\\\nCLOUD_PASS=\"42m8ZieD9Ld1s8lB0u99L2zg\"
\\\nCLOUD_USER=\"testing-internal\"
\\\nTEST_KIBANA_URL=\"https://${CLOUD_USER}:${CLOUD_PASS}@${CLOUD_HOST}\"
\\\nTEST_ES_URL=\"${TEST_KIBANA_URL}:443\" \\\nnode --no-warnings
scripts/functional_test_runner \\\n --exclude-tag skipCloud \\\n
--config
x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts
\\\n --grep \"LegacyAndMultiSpaceMonitorAPI\"\n```\n2.\tExpected
Result:\n\t•\tOnly private location tests should run.\n\t•\tAll private
location tests should pass.\n\nNote:\nIf the deployment is recreated,
you may need to update the values for\n`CLOUD_HOST` and
`CLOUD_PASS`.","sha":"9978674c232c4eb9a7a999136358a071dccb7c0a"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226042","number":226042,"mergeCommit":{"message":"[Synthetics]
Add multispace monitor API test suite in private location
(#226042)\n\nThis PR closes #225431 by running the multispace monitor
API test suite\nin both public and private locations.\n\nPublic location
tests are still skipped on cloud, as they are expected\nto fail.\n\nHow
to Test\n\t1.\tRun the following
command:\n```\nTEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co
\\\nTEST_CLOUD=1 \\\nNODE_TLS_REJECT_UNAUTHORIZED=0
\\\nCLOUD_HOST=\"issue-serverless-uksvx-pr226042-e71759.kb.eu-west-1.aws.qa.elastic.cloud\"
\\\nCLOUD_PASS=\"42m8ZieD9Ld1s8lB0u99L2zg\"
\\\nCLOUD_USER=\"testing-internal\"
\\\nTEST_KIBANA_URL=\"https://${CLOUD_USER}:${CLOUD_PASS}@${CLOUD_HOST}\"
\\\nTEST_ES_URL=\"${TEST_KIBANA_URL}:443\" \\\nnode --no-warnings
scripts/functional_test_runner \\\n --exclude-tag skipCloud \\\n
--config
x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts
\\\n --grep \"LegacyAndMultiSpaceMonitorAPI\"\n```\n2.\tExpected
Result:\n\t•\tOnly private location tests should run.\n\t•\tAll private
location tests should pass.\n\nNote:\nIf the deployment is recreated,
you may need to update the values for\n`CLOUD_HOST` and
`CLOUD_PASS`.","sha":"9978674c232c4eb9a7a999136358a071dccb7c0a"}}]}]
BACKPORT-->

Co-authored-by: Francesco Fagnani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author:obs-ux-management PRs authored by the obs ux management team backport:version Backport to applied version labels ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes v8.19.0 v9.1.0 v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failsOnMKI: deployment agnostic synthetics multispace monitor API test suite
4 participants