Skip to content

Functional test runner creates system_indices_superuser#124008

Merged
pheyos merged 14 commits intoelastic:mainfrom
pheyos:system_indices_user
Feb 4, 2022
Merged

Functional test runner creates system_indices_superuser#124008
pheyos merged 14 commits intoelastic:mainfrom
pheyos:system_indices_user

Conversation

@pheyos
Copy link
Copy Markdown
Member

@pheyos pheyos commented Jan 28, 2022

Summary

This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.

Details

  • Uses the elastic superuser (or the user provided in the test URL) for the ES version check and to create the system_indices_superuser
  • This system_indices_superuser is then used in the es service for the rest of the tests

Closes #123994
Closes #124442

@pheyos
Copy link
Copy Markdown
Member Author

pheyos commented Jan 28, 2022

As of the initial commit in this PR, we have some duplicated code because the system_indices_superuser is still also created in the native realm: https://github.com/elastic/kibana/blob/main/packages/kbn-es/src/utils/native_realm.js#L132 - not sure if this is still needed there or if this bit could be removed.

@pheyos pheyos self-assigned this Jan 28, 2022
@pheyos pheyos added v8.0.0 v8.1.0 auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes labels Jan 28, 2022
@pheyos pheyos marked this pull request as ready for review January 28, 2022 13:24
@pheyos pheyos requested review from a team as code owners January 28, 2022 13:24
@pheyos
Copy link
Copy Markdown
Member Author

pheyos commented Jan 31, 2022

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

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

Changes in Spaces API integration tests config LGTM. Just left one question.

@pheyos
Copy link
Copy Markdown
Member Author

pheyos commented Feb 2, 2022

@elasticmachine merge upstream

@pheyos pheyos requested a review from a team February 3, 2022 11:37
@botelastic botelastic bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Feb 3, 2022
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:apm)

@pheyos
Copy link
Copy Markdown
Member Author

pheyos commented Feb 3, 2022

@jbudz sure, will do.

@pheyos pheyos added the v7.17.1 label Feb 3, 2022
@pheyos
Copy link
Copy Markdown
Member Author

pheyos commented Feb 4, 2022

@elasticmachine merge upstream

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/test 203 208 +5

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
kibana 936 937 +1
Unknown metric groups

API count

id before after diff
@kbn/test 235 244 +9

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @pheyos

@pheyos pheyos merged commit 8989ead into elastic:main Feb 4, 2022
@pheyos pheyos deleted the system_indices_user branch February 4, 2022 10:23
@kibanamachine
Copy link
Copy Markdown
Contributor

The following labels were identified as gaps in your version labels and will be added automatically:

  • v8.2.0

If any of these should not be on your pull request, please manually remove them.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 4, 2022
This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.

(cherry picked from commit 8989ead)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.0 Backport failed because of merge conflicts
8.1
7.17 Backport failed because of merge conflicts

How to fix

Re-run the backport manually:

node scripts/backport --pr 124008

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

Questions ?

Please refer to the Backport tool documentation

pheyos added a commit to pheyos/kibana that referenced this pull request Feb 4, 2022
This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.

(cherry picked from commit 8989ead)

# Conflicts:
#	x-pack/test/rule_registry/common/services/cluster_client.ts
kibanamachine added a commit that referenced this pull request Feb 4, 2022
…24668)

This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.

(cherry picked from commit 8989ead)

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
pheyos added a commit that referenced this pull request Feb 4, 2022
…24669)

This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.

(cherry picked from commit 8989ead)

# Conflicts:
#	x-pack/test/rule_registry/common/services/cluster_client.ts
@spalger spalger removed the v7.17.1 label Feb 9, 2022
Copy link
Copy Markdown
Contributor

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

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

apm changes lgtm

liza-mae pushed a commit to liza-mae/kibana that referenced this pull request Mar 9, 2022
This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.
pheyos added a commit to pheyos/kibana that referenced this pull request Mar 10, 2022
This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.
@pheyos pheyos added v7.17.2 and removed auto-backport Deprecated - use backport:version if exact versions are needed labels Mar 10, 2022
pheyos added a commit that referenced this pull request Mar 10, 2022
Backport of
* Functional test runner creates system_indices_superuser (#124008)
* FTR - check ES security before creating system_indices_superuser (#124948)
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 Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v7.17.2 v8.0.0 v8.1.0 v8.2.0

Projects

None yet

9 participants