Commit graph

156 commits

Author SHA1 Message Date
Xavier Mouligneau
c058d822bc
[8.0] [RAM] Fix bulk action for o11y for 7.17 (#126686) (#126854)
* [RAM] Fix bulk action for o11y for 7.17 (#126686)

* fix bulk action for o11y

* review I

* discuss it more with Devin

* clean up

(cherry picked from commit 8f277d4677)

* fix es client

* fix function
2022-03-04 08:43:23 -07:00
John Dorlus
c587eb8b3f
Migrated Snapshot and Restore tests to use test user (#126011) (#126638)
* Migrated Snapshot and Restore tests to use test user.

* added another permission to address unauthorized failure.

* Added metadata perms for kibana administration.

* Testing out different permissions.

* Edited test to not refresh page after role is set. Causing errors.

* Adjusted perms per documentation.

* Addded link to the documentation specifying the permissions needed for snapshot restore.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d746bd4c5f)
2022-03-01 14:52:48 -07:00
Dominique Clarke
dee9010e62
[8.0] [Uptime] Update functional test directory to use a pinned version of package registry via docker (#117736) (#123823)
* [Uptime] Update functional test directory to use a pinned version of package registry via docker (#117736)

* update functional test directory to use a pinned version of package registry via docker

* remove console log

* adjust config

* skip synthetics tests if no docker image

* remove extra configs

* move synthetics tests to a different directory

* update tests

* update tests

* remove duplicate tests

* update helpers

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/functional_synthetics/apps/uptime/synthetics_integration.ts

* Update x-pack/test/functional_synthetics/apps/uptime/synthetics_integration.ts
2022-01-26 09:10:49 -07:00
Kibana Machine
b606417ae5
[8.0] [Usage collection] Update bulkFetch logic (#121437) (#121665)
* [Usage collection] Update bulkFetch logic (#121437)

* Update collector_set.ts

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-12-20 14:25:30 -07:00
Kibana Machine
e8bf5e4322
Migrated ILM Tests to Use test_user (#121262) (#121359)
* Updated ILM tests to use test user and updated permissions.

* Updated security tests to check for Advanced Settings in the navigatio pane since we added it to the Kibana permissions.

Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2021-12-15 17:18:14 -07:00
Kibana Machine
c5146db546
[Stack monitoring] Add basic tests for alerts modal (#116769) (#119754)
* Add basic tests for alerts modal

* fix types

* fix setup mode button test subj

* fix unit tests

* Move alerts modal tests to functional since ssl is not required anymore

* Remove not needed config change

* fix test for overview alerts badge

* Extract alerts deletion to a new service

* exit setup mode in alerts test

* add missing file

* update test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-11-25 12:27:54 -07:00
Tim Sullivan
c5e23b6a5b
[Reporting] Functional test structure & improvements (#114298)
* [Reporting] Functional test structure & improvements

* show the error of the report generation failure in the test failure

* update snapshot

* remove import to non-existent functional app test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-14 07:37:15 -07:00
John Dorlus
39e06326dc
Migrate Index Management Functional Tests To Use Test User (#113078)
* Added config and code to make index management use test user.

* Removed unused reference.

* Changed config back to only modifying the permissions on the indices.

* Fixed assertion for new permission.
2021-09-27 20:47:44 -04:00
Brian Seeders
e9e08d0928
[CI] Balance ci groups (#110711) 2021-09-22 00:36:25 -04:00
Felix Stürmer
238c61de07
[RAC] [Observability] Remove rac feature flags from default functional tests (#111942) 2021-09-15 11:17:52 +02:00
Uladzislau Lasitsa
70090e326c
Timelion App removal (#110255)
* Remove timelion app and stuff which related to it

* Fix CI

* Fix lint

* Fix tests

* Fix tests

* Fis tests

* Fix some comments

* Clean up

* fix CI

* fix some comments

* Fix deprecation examples

* Return `enabled` property in config for timelion vis

* Remove unused angular lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 14:53:07 +03:00
Tim Sullivan
297e4c365f
[Reporting/Tests] Use reporting default settings in test server config (#111626)
* remove custom kibana server settings for reporting in default x-pack test config

* have tests use the deprecated built-in role granting reporting access

* restore test user default privilege for canvas

* fix app privileges in tests

* fix test_user not able to access canvas in the dashboard test

* simplify some tests setup

* update csv export timerange and snapshot

* update fn tests for app privileges

* fix feature controls test

* Update discover_security.ts

* fix reporting tests

* test using defaults in the security privilege test

* fix read-only privileges with url_create Permalinks

* fix security api anonymous

* fix anonymous capabilities tests

* fix discover csv export tests

* Update screenshots.ts

* update discover csv fn tests

* update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 22:13:37 -07:00
Stratoula Kalafateli
6f4d8a52dc
[Vislib] Removes old implementation of xy chart (#110786)
* [Vislib] Remove xy chart

* Update i18n

* Remove uncecessary file

* Fix types

* More fixes

* Fix functional tests part 1

* Fix functional tests part 2

* Fix bug with shard-delay

* Fix functional tests part 3

* fix functional tests part4

* Fix async_serch FT

* Fix functional dashboard async test

* REplace screenshot area chart image

* Cleanup vislib from xy charts

* Remove unused fixtures

* Address PR comments

* Remove miaou :D

* Address PR comments

* Fix i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 18:35:51 +03:00
Felix Stürmer
2e31899bde
[RAC] [Observability] Disable RAC feature flags for now (#111296) 2021-09-07 13:07:16 +02:00
Kerry Gallagher
b74345cbb7
[Observability] [RAC] Add basic functional tests for observability alerts (#109876)
* Add basic functional tests for observability alerts
2021-09-01 15:43:20 +01:00
Devon Thomson
95463f47f3
[Dashboard] Remove Legacy Dashboard Only Mode (#108103)
Remove all dashboard only mode code and tests. Align dashboard permissions to use showWriteControls only
2021-08-20 15:39:10 -04:00
Rashmi Kulkarni
320fc8b650
test user with specific roles and permissions- for create index pattern wizard test (#107984)
* test user with specific roles and permissions

* added SO method logging, added test data stream to the role and modified createindexpattern function

* removed unused method added in settings page

* removed unused index name- logs-*

* remove unused function from settings page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 10:15:06 -07:00
Rashmi Kulkarni
91366f0221
Rollup - Conversion of functional test files to use custom roles and permissions and also convert esArchiver to kbnArchiver (#107818)
* updated the test to use kbnArchiver to load the data and also the test uses minimal set of roles-permissions for the test-user

lint errors

lint errors

* hybrid index pattern - conversion to kbnArchiver and the test user to use specific roles n permissions
2021-08-09 12:50:13 -07:00
Aaron Caldwell
f28bfa71ad
[Maps] Move edit tools to beta and remove experimental config flags (#103556) 2021-06-28 20:13:12 -04:00
Stratoula Kalafateli
1d2cebafd2
[VisTypePie] Use a different advanced setting for pie charts (#103049)
* Different switch for pie

* Remove unused translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:33:35 +03:00
John Dorlus
7e04e1795c
Migrated Ingest Node Pipeline Functional Tests to use test_user (#102409)
* Used test user and added appropriate kibana privileges for Ingest Node Pipeline functional tests.

* Updated ingest pipelines test config to have read permissions in advanced settings.

* Updated test to account for the fact that advanced settings will be visible due to kibana permissions.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 23:18:37 -04:00
Steph Milovic
de07e98663
[Observability] [Cases] Cases in the observability app (#101487) 2021-06-10 16:39:27 -06:00
Spencer
f466ebf1a3
[esArchiver] drop support for --dir, use repo-relative paths instead (#101345)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 17:37:42 -04:00
Jonathan Budzenski
f0e11bcd1b
Automated package testing (#88900)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-27 13:37:43 -05:00
Dominique Clarke
6d4cca29a7
[Uptime] [Synthetics Integration] Add functional tests for Synthetics Integration (#100161)
* add functional tests for synthetics fleet package
2021-05-17 16:44:30 -04:00
Joe Reuter
deb62d4479
Disable context menu "Explore underlying data" by default (#98039) 2021-04-26 13:20:43 +02:00
Tim Sullivan
5a6eda2b22
[Reporting] Kibana Application Privileges for Reporting (#94966)
* Implement Reporting features as subfeatures of applications

* add setting to the docker list

* update doc images

* finish docs

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* typo fix

* "PDF / PNG Reports" => "Reporting"

* Update x-pack/plugins/reporting/server/config/index.ts

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/test/functional/apps/security/secure_roles_perm.js

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* update ids of report privileges

* combine dashboard privileges into 1 group

* update jest snapshot

* fix tests

* fix tests

* updates from feedback

* add note

* update screenshot

* fix grammer

* fix bad link breaks in doc

* update doc heading

* Apply suggestions documentation feedback

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* simplify

* use const assertions

* Apply text change suggestion from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* more test for oss_features and reporting subFeatures

* reduce loc diff

* fix snapshot

* fix flakiness in licensing plugin public functional tests

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-04-20 20:44:24 -07:00
Pierre Gayvallet
251bd9afc6
Remove /src/legacy (#95510)
* starting removing stuff

* fix jest config

* disable CLI mode until other PR is merged

* fix the schema

* add deprecation for maxPayloadBytes

* fix legacy start logic

* deletes `env` from unknown args

* fix FTR test config

* some legacy service deletion

* move config validation

* remove legacy exports from entrypoint

* preserve legacy logging in core logging config

* try to fix uiSettings integration tests

* fix legacy service tests

* more type fix

* use fromRoot from @kbn/utils

* cleanup kibana.d.ts

* fix unit tests

* remove src/core/server/utils

* fix server script

* add integration test for `/{path*}` route

* add unit tests on legacy config

* adapt uiSetting IT bis

* fix tests

* update generated doc

* address some review comments

* move review comments

* fix some stuff

* fix some stuff

* fix some stuff

* fix some stuff bis

* generated doc

* add test for ensureValidConfiguration
2021-04-06 09:25:36 +02:00
Ece Özalp
d70d02ee83
Add a11y test coverage to Rule Creation Flow for Detections tab (#94377)
[Security Solution] Add a11y test coverage to Detections rule creation flow (#80060)
2021-03-25 15:05:23 -04:00
Aaron Caldwell
ad18739de7
[Maps] Add endpoint to server for creating empty index & index pattern (#94028)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-17 21:40:51 -04:00
Bhavya RM
e676617f69
Test user for maps tests under import geoJSON tests (#86015)
test user assignment for test files under import geoJSON files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 11:04:30 -05:00
Brandon Kobel
4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Joe Reuter
e31b6a8c91
[Lens] Add smoke test for lens in canvas (#88657) 2021-02-01 11:52:57 +01:00
Nick Partridge
3aeb344b7c
Enable new chart library setting (#86538) 2020-12-22 10:06:37 -06:00
Tim Sullivan
880c8d35e8
[Send To Background UI] Isolate functional test for wip feature (#84833)
* [Send To Background UI] Isolate functional test for wip feature

* add tests to cigroup 3
2020-12-04 10:22:26 -07:00
John Dorlus
08bb03841d
Changed rollup tests to use test user rather than elastic super user. (#79567)
* removed .only for testing

* Added config with minimum permissions.

* Removed kibana user role. 

I removed the kibana user role to remove redundancy.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 17:29:59 -05:00
Anton Dosov
4cb44d9e33
[Search] Integrate "Send to background" UI with session service (#83073) 2020-12-01 14:01:46 +01:00
Jay Modi
b460414489
Update logstash pipeline management to use system index APIs (#80405)
This change updates the logstash pipeline management plugin to use
pipeline management APIs in Elasticsearch rather than directly
accessing the .logstash index. In Elasticsearch 8.0, direct access to
system indices will no longer be allowed when using standard APIs.
Given this change, a new set of APIs has been created specifically for
the management of Logstash pipelines and this change makes use of the
APIs.

Co-authored-by: Kaise Cheng <kaise.cheng@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

ES:#53350
LS:#12291
2020-11-11 19:00:31 +01:00
Lee Drengenberg
1885dda6e6
Fix test import objects (#82767)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 11:01:33 -06:00
Rashmi Kulkarni
04a5a4c0ca
using test_user with minimum privileges for lens functional ui tests (#76673)
* lens modified privs

* lens reporting test

* new role added -global_dashboard_all

* remove unwanted file

* added the reverted file

* precommit hook fix

* moved the navigateToApp to the before method

* moving the navigateToApp to before method

* closing the alert window if open in the test_user method

* adding the false param

* addressed review comments

* added common PageObjects

* removed common

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 10:57:22 -07:00
Bhavya RM
719cda53d7
Adding test user to maps tests under documents source folder (#77245) 2020-09-15 13:28:06 -04:00
Bhavya RM
51610493fb
Adding test user to maps functional tests (#77119) 2020-09-15 12:55:05 -04:00
Rashmi Kulkarni
65b5f94a47
Remote cluster - Functional UI test to change the superuser to a test_user with limited role (#77212)
* wip - remote cluster

* update chromedriver to 85

* remote cluster test_user

* Revert "update chromedriver to 85"

This reverts commit 4abbc547ed.

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 12:36:33 -07:00
Larry Gregory
2e34eb239f
Hide management sections based on cluster/index privileges (#67791)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 09:30:47 -04:00
Rashmi Kulkarni
e2e9d96df6
accessibility test for Painless lab (#75688)
* accessibility test for painless lab

* skipped a test due to aria-violation

* skipped tests due to aria-violation and added datatestsubj

* removed the unwanted import

* incorporate review comments

* feedback incorporated

* review comments incorporated

* removed unwanted expect
2020-08-27 12:15:47 -07:00
Rashmi Kulkarni
c08bf7f3ca
using test_user with minimum privileges for canvas functional ui tests (#75917)
* incorporating test_user wth specific roles for the canvas functional ui tests

* additional checks - removed comments

* changes to incorporate code comments

* lint check

* incorporate code reviews

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-26 17:21:16 -07:00
Bhavya RM
4f2d4f8b01
adding test user to pew pew maps test + adding a role for connections index pattern (#75920) 2020-08-26 09:59:41 -04:00
Rashmi Kulkarni
e359c9ae38
changes for upgrade assistant functional test to incorporate test user (#70071)
* changes for upgrade assistant functional test to incorporate test user

* changes to toggle on/off

* upgrade_assistant role

* upgrade assistant

* more debug statements to check on cloud

* commented the sleeps to check toggle button

* reduced the sleep to 2 seconds to test on cloud

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-23 14:16:56 -07:00
Matthew Kime
9ba750e852
Move data stream index pattern creation test to xpack (#71511)
* Move data stream index pattern creation test to xpack
2020-07-15 20:18:34 -05:00
Bhavya RM
94a18fda5d
Adding test user to maps functional tests - PR 1 (#70649)
adding test user to pr 1 of maps functional tests.
2020-07-06 17:51:27 -04:00