Commit graph

10 commits

Author SHA1 Message Date
Gloria Hornero
dd4708414a
Upgrading cypress to 12.17.4 (#165869)
Co-authored-by: Yuliia Naumenko <jo.naumenko@gmail.com>
Co-authored-by: Thomas Watson <w@tson.dk>
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-19 10:15:53 -07:00
Gergő Ábrahám
d5996d7487
[Fleet][Agent Tamper Protection] Uninstall token table (#161760)
## Summary

This PR adds an `Uninstall Tokens` tab to Fleet, where the user can:
- see uninstall tokens for all policies
- filter by policy ID (partial match)
- view the hidden token by pressing the 👁️ button
- open the Uninstall Command flyout to view the uninstall command for
the selected policy

<img
src="0a98e26e-09df-40e4-81de-02afebc5f830)"
width="500px" />
<img
src="c41d0841-b496-440b-bfb4-cd28907e3196)"
width="500px" />
<img
src="c5c613b9-9166-4bcc-8d7a-4a7b34f0698e)"
width="500px" />



### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-17 04:03:22 -07:00
Spencer
f5688a68a5
[ftr] rework kibana arg parsing, extend loggers correctly (#135944) 2022-07-08 08:54:56 -05:00
Spencer
f3d69b8197
[@kbn/dev-utils] break out more pieces (#132292)
* [@kbn/dev-utils] break out more pieces

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 11:19:20 -05:00
Spencer
542b381fa5
[ftr] automatically determine config run order (#130983)
* [ftr] automatically determine config run order

* split lens config into two groups

* support ftr configs always running against CI

* Split detection_engine_api_integration rule exception list tests

* Add configs from previous commit

* [ftr] remove testMetadata and maintain a unique lifecycle instance per run

* Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run"

This reverts commit d2b4fdb824.

* Split alerting_api_integration/security_and_spaces tests

* Add groups to yaml

* Revert "Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run""

This reverts commit 56232eea68.

* stop ES more forcefully and fix timeout

* only cleanup lifecycle phases when the cleanup is totally complete

* only use kill when cleaning up an esTestInstance

* fix broken import

* fix runOptions.alwaysUseSource implementation

* fix config access

* fix x-pack/ccs config

* fix ml import file paths

* update kibana build id

* revert array.concat() change

* fix baseConfig usage

* fix pie chart data

* split up maps tests

* pull in all of group5 so that es archives are loaded correctly

* add to ftr configs.yml

* fix pie chart data without breaking legacy version

* fix more pie_chart stuff in new vis lib

* restore normal PR tasks

* bump kibana-buildkite-library

* remove ciGroup validation

* remove the script which is no longer called from checks.sh

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* adapt flaky test runner scripts to handle ftrConfig paths

* fix types in alerting_api_integration

* improve flaky config parsing and use non-local var name for passing explicit configs to ftr_configs.sh

* Split xpack dashboard tests

* Add configs

* [flaky] remove key from ftr-config steps

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* restore cypress builds

* remove ciGroups from FTR config files

* fixup some docs

* add temporary script to hunt for FTR config files

* use config.base.js naming for clarity

* use script to power ftr_configs.yml

* remove usage of removed x-pack/scripts/functional_tests

* fix test names in dashboard snapshots

* bump kibana-buildkite-library

* Try retrying only failed configs

* be a little quieter about trying to get testStats from configs with testRunners defined

* Remove test code

* bump kibana-buildkite-library

* update es_snapshot and on_merge jobs too

* track duration and exit code for each config and print it at the end of the script

* store results in order, rather than by key, in case there are duplicates in $config

* bash is hard

* fix env source and use +e rather than disabling e for whole file

* bash sucks

* print config summary in jest jobs too

* define results in jest_parallel.sh

* simplify config summary print, format times a little better

* fix reference to unbound time variable, use better variable name

* skip the newline between each result

* finish with the nitpicking

* sync changes with ftr_configs.sh

* refuse to execute config files which aren't listed in the .buildkite/ftr_configs.yml

* fix config.edge.js base config import paths

* fix some readmes

* resolve paths from ftr_configs manifest

* fix readConfigFile tests

* just allow __fixtures__ configs

* list a few more cypress config files

* install the main branch of kibana-buildkite-library

* split up lens group1

* move ml data_visualizer tests to their own config

* fix import paths

* fix more imports

* install specific commit of buildkite-pipeline-library

* sort configs in ftr_configs.yml

* bump kibana-buildkite-library

* remove temporary script

* fix env var for limiting config types

* Update docs/developer/contributing/development-functional-tests.asciidoc

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* produce a JUnit report for saved objects field count

* apply standard concurrency limits from flaky test runner

* support customizing FTR concurrency via the env

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-05-04 17:05:58 -05:00
Spencer
2a78f350e1
break out parts of @kbn/dev-utils (#130509)
* break out parts of @kbn/dev-utils

* autofix imports and kbn/pm dist

* update readme for @kbn/stdio-dev-helpers

* finish renames
2022-04-19 12:24:58 -05:00
Josh Dover
5903c41740
[Fleet] Enable debug logs for functional tests (#127597) 2022-03-14 09:10:45 -07:00
Julia Bardi
b4b3285643
[Fleet] Make default integration install explicit (#121628)
* first draft

* added new text with badge

* updated labels

* added tabs

* fix checks

* ignore tests

* fix i18n

* use max instead of sort

* Add agent and Fleet server policy

* fix bug with monitoring checkbox

* fix test

* skip test

* fixed validation

* fixed fleet server policy install and missing enrollment keys

* fixed test

* fixed test

* cypress tests

* fix test

* added is_default, fixed test

* fix cypress

* cypress fix

* added missing link

* removed is_default, default from naming

* fix tests

* revert osquery change

* changes in cypress fleet server start

* fix fleet enroll and cypress

* fixed add agent flyout when fleet agent unenrolled

* fix tests

* existing hosts no policy selected when more than one

* updated openapi spec

* refactor and unit test for increment policy name

* fix checks

* fix jest

* fix tests

* using fleet-server-policy id for first

* fixed refresh after policy created, removed toast

* fixed smaller review comments

* added missing catch

* changed to bulk install

* moved service logic from handler, measuring time in cypress

* fcypress comment out fleet server enroll

* cypress fix

* cypress fix

* changed toast to callout

* changed toast to callout

* removed label

* fix checks, added more tests

* fix test

* fix checks

* added more cypress asserts

* fix checks

* refactored agent policy create and select

* update label

* fix checks, hide badges for fleet server policy

* added back is_default flags

* added fleet server specific confirm message to delete policy modal

* added unit tests for agent_policy_create logic

* fixed condition to show fleet server instructions

* fixed tests

* fixed jumping

* fixed bug where add integration stayed invalid when going back to new hosts tab

* fix tests

* fix tests

* show invalid if policy not selected

* add missing texts

* fix radio groups when fleet server instructions are rendered twice

* fix test, fixed bug where fleet server policy was not filtered out

* fixed add integration from agent policy

* fixed add integration to agent policy navigation

* fixed cypress

* added cypress test for policy add integration

* added cypress test for upgrade integration without policy and upgrade integration policy

* added unit test for policy select empty default

* added cypress test for update outputs, settings

* added cypress test for update agent policy

* added cypress test for update package policy

* added cypress test for install package without policy

* fix checks and test

* removed create link from existing hosts tab

* fixed checks

* updated deprecation, throw error and rollback if package policy failed

* fix formatting

* fix test

* documented dependent projects

* cypress speed up

* added back integration uninstall

* cypress further speed up

* fix checks

* Update x-pack/plugins/fleet/public/components/agent_enrollment_flyout/managed_instructions.tsx

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* review fixes

* aria label and onSubmit refactor

* agent policy validation test

* renamed to getFleetServerAgentPolicyId

* fixed cypress test

* fixed package policy error message condition

* fixed import

* fixed authz

* fix cypress

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2022-02-01 12:06:40 +01:00
Julia Bardi
b1a038ddc3
[Fleet] Make API responses consistent (#119494)
* make apis consistent

* UI and test fixes

* test fixes

* fixed test

* fix tests

* fix test

* removed deprecated shared_id from openapi spec

* added back list prop as deprecated

* renamed apis with hyphens

* openapi update

* fix checks

* fix test

* renamed epm api path and response

* fix tests

* fix ml

* moved splitPkgKey

* fixed edit package policy page

* fixed storybook

* fix prettier after conflict

* fix tests

* fix tests

* fix tests

* fix test

* fix test

* added back semver validation

* fix test

* pkgVersion optional

* fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 13:04:04 +01:00
Julia Bardi
157a37114f
[Fleet] cypress setup (#113106)
* added cypress setup for fleet

* updated readme

* fixed types

* fix unused

* starting up fleet server in cypress

* added more fleet tests

* added package update test

* updated readme

* trying jenkins run

* trying jenkins run

* trying jenkins run

* fix types, cypress config

* example of mocked requests

* added getBySel

* fix test after refactor

* removed duplication

* fix tests

* added to buildkite

* updated tests

* starting agent with docker

* trying to fix ip address

* ifconfig

* ip address

* ip address

* ip address

* type fix

* remove extra logging

* fixed test

* fix buildkite

* cleanup

* cleanup

* using docker for fleet_server

* fix

* fix

* trying to fix

* update config

* test

* test

* test

* test

* revert changes

* test

* test

* static ip on linux

* docker version

* try again

* fixed review comments

* fixed types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2021-11-02 15:14:28 +01:00