[Synthetics] Migrate obs security api_keys FTR test to Scout API#272034
Draft
shahzad31 wants to merge 1 commit into
Draft
[Synthetics] Migrate obs security api_keys FTR test to Scout API#272034shahzad31 wants to merge 1 commit into
shahzad31 wants to merge 1 commit into
Conversation
Ports `x-pack/solutions/observability/test/api_integration/apis/security` (API key creation with synthetics-service ES privileges + uptime feature) to a Scout API spec in the synthetics suite, and removes the standalone FTR config along with its Buildkite manifest and CODEOWNERS entries. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
12 tasks
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Migrates the standalone observability
api_integration/apis/securityFTR test(API key creation) into the Synthetics Scout API suite and removes the legacy
FTR config.
The single test verified that a privileged user can create an API key via
POST /internal/security/api_keywith role descriptors carrying thesynthetics-service Elasticsearch privileges plus the legacy
uptimefeature.Changes
x-pack/solutions/observability/plugins/synthetics/test/scout/api/tests/api_keys.spec.ts.Uses the same cookie-based admin auth pattern as
synthetics_enablement.spec.ts(
samlAuth.asInteractiveUser('admin')+KIBANA_HEADERS), asserts200andname: 'test_api_key'.x-pack/solutions/observability/test/api_integration/apis/security/(
config.ts,index.ts,api_keys.ts)..buildkite/ftr-manifests/ftr_oblt_stateful_configs.ymland the stale
.github/CODEOWNERSentry..meta/api/standard.json.Notes
'*'(all spaces) are inlined in thespec rather than imported from
@kbn/synthetics-plugin/server/..., followingthis suite's local-constants convention (see
fixtures/constants.ts) of notimporting across the plugin server boundary.
@local-stateful-classiconly (not serverless) to preserve the originalFTR scope — the legacy
uptimefeature and the stateful-onlyread_ilmclusterprivilege are not meaningful in the serverless observability target.
Test plan
node scripts/eslint --fixon the new spec — clean.Made with Cursor