Commit graph

15 commits

Author SHA1 Message Date
Tim Sullivan 488f112f47
[Reporting/Tests] Consolidate test archives, move kbn objects to kbn_archiver (#116528)
* remove unused

* remove kibana objects from reporting es_archives

* import objects using kibanaServer for tests

* consolidate ecommerce_kibana_spaces

* self-review

* fix nanos test

* fix loading of reporting/ecommerce_kibana_spaces

* fix csv snapshots

* fix more csv tests

* archive rename

* consolidate canvas_disallowed_url archive

* clean up snapshots

* fix CSV tests

* polish

* remove unused

* Update x-pack/test/reporting_api_integration/reporting_and_security/network_policy.ts
2021-11-03 01:27:52 +00:00
Tim Sullivan 2f8dfba4cd
[Reporting] Log TM health and drift stats prior to reporting tests (#117013)
* [Reporting] Log TM health and drift stats prior to reporting tests

Closes https://github.com/elastic/kibana/issues/114946

* re-skip flaky test

* rename method
2021-11-02 20:53:09 +00:00
liza-mae 8143901f59
Fix reporting api tests for cloud (#116515)
* Fix reporting api tests for cloud

* Add default value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 14:29:27 -06:00
Tim Sullivan cb37ae8142
[Reporting] Stabilize CSV export tests (#112204)
* [Reporting] Stabilize CSV export tests

* add debugging logging for results metadata

* restore accidentally deleted tests

* restore "large export" test

* remove redundant availability test

* do not filter and re-save

* fix getHitCount

* fix large export test

* skip large export test :(

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 11:44:29 -07:00
Tyler Smalley 4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Tim Sullivan 468daebe76
[Reporting] Restore legacy compatibility shim for PDF job creation (#108271)
* restore legacy shim

Restore the legacy shim for PDF job creation from the 7.x branch.

* strip relativeUrls from pdf payload

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 15:45:35 -04:00
Tim Sullivan e69d57cf77
[Reporting] revive "existing indices" functional test (#107537)
* [Reporting] revive "existing indices" functional test

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

* fix test service

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 11:37:09 -04:00
Jean-Louis Leysens 385b6588ff
[Reporting] Only show migration callout to authzd users (#105181)
* wrapped deprecations endpoints in authz wrapper

* remove unused import

* added KibanaProvider interface

* removed second call of "handler" and moved api functional test to authd version of supertest

* fix api integration tests

* added api integration test for authzd users

* do not check for privileges if security is disbaled

* run organize imports

* updated jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 15:37:00 +02:00
Jean-Louis Leysens 3e118c4e23
[Reporting] First accessibility test (#104410)
* makeAllReportingPoliciesUnmanaged -> makeAllReportingIndicesUnmanaged

* expose the reporting services on the functional services object shared with a11y

* added data-test-subjs for a11y test

* added reporting a11y test

* updated jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 15:04:37 +02:00
Jean-Louis Leysens 4c448c9d61
[Reporting] New UI for migrating reporting indices ILM policy (#103853)
* revert revert

* wip; first iteration of server-side functionality

* wip; public side code started. using the new ilm policy status endpoint

* * refactored ReportingIlmPolicyManager -> IlmReportingManager
* restructured files for the policy manager code
* re-added the IlmPolicyStatusResponse interface

* added the ability to use useRequest

* * removed extra server-side endpoint, we do both migration steps
  in one
* added ilm policy context and context for api client
* added es ui shared so we can use userequest

* added working link to ILM policy

* refactor of the migration route response (again), added logic for determining when to show ilm-policy link

* fix type issues and refactor to use testbed pattern for report listing component

* added tests for base cases of ilm policy banner

* remove non-existent prop

* added minor fixes (handling 404 from ES) and added API integration tests

* resolve merge conflict and remove unused file

* update toast error message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-05 14:21:00 +02:00
Bhavya RM 859b453752
Replacing es_archives/reporting/ecommerce_kibana with kbn_archiver/reporting/ecommerce.json as part of migrating to kbn_archiver (#102825) 2021-06-22 19:16:53 -04: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
Spencer bdafd27e19
[ts] migrate x-pack/test to composite ts project (#101441)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 12:54:05 -04: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
Tim Sullivan 1615d5f62b
Reporting: Refactor functional tests with security roles checks (#96856)
* Reporting: Refactor functional tests with security roles checks

* consolidate initEcommerce calls

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-14 09:20:59 -07:00