Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] Create Saved Objects Kibana Svc #90251

Closed
wants to merge 22 commits into from
Closed

Conversation

wayneseymour
Copy link
Member

Add svc,
integrate into one test,
and add exported saved objects.

Partially closes #89368

@wayneseymour wayneseymour force-pushed the create-saved-objs-svc branch from 616d957 to ed7d55d Compare February 3, 2021 23:39
@wayneseymour
Copy link
Member Author

@LeeDr Looks like the test that's using the new svc passed:

[2021-02-04T00:14:29.451Z]                └- ✓ pass  (4.4s) "discover app discover test query should show correct time range string by timepicker"
[2021-02-04T00:14:29.452Z]              └-> save query should show toast message and display query name
[2021-02-04T00:14:29.452Z]                └-> "before each" hook: global before each for "save query should show toast message and display query name"
[2021-02-04T00:14:29.883Z]      │ info [o.e.t.NettyAllocator] [kibana-ci-immutable-centos-tests-xxl-1612395597759933847] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=1gb}]
[2021-02-04T00:14:29.883Z]      │ info [o.e.d.DiscoveryModule] [kibana-ci-immutable-centos-tests-xxl-1612395597759933847] using discovery type [single-node] and seed hosts providers 

https://kibana-ci.elastic.co/job/elastic+kibana+pipeline-pull-request/103657/consoleText

@wayneseymour wayneseymour requested a review from LeeDr February 4, 2021 17:14
@wayneseymour wayneseymour force-pushed the create-saved-objs-svc branch 2 times, most recently from b0ed22a to 6af33b5 Compare February 4, 2021 23:01
@wayneseymour wayneseymour self-assigned this Feb 4, 2021
@wayneseymour wayneseymour added release_note:skip Skip the PR/issue when compiling release notes v8.0.0 labels Feb 4, 2021
@LeeDr
Copy link

LeeDr commented Feb 8, 2021

Do we need something like this to tell where the savedObject files are? The default location is set somewhere and this x-pack test config overrides that.
https://github.com/elastic/kibana/blob/master/x-pack/test/functional/config.js#L203

@wayneseymour wayneseymour force-pushed the create-saved-objs-svc branch from 6af33b5 to 909bf82 Compare February 9, 2021 00:07
@wayneseymour
Copy link
Member Author

Do we need something like this to tell where the savedObject files are? The default location is set somewhere and this x-pack test config overrides that.
https://github.com/elastic/kibana/blob/master/x-pack/test/functional/config.js#L203

Gonna add the schema update next boss!

@wayneseymour wayneseymour force-pushed the create-saved-objs-svc branch from 909bf82 to ccec4a2 Compare February 9, 2021 19:04
@wayneseymour wayneseymour marked this pull request as ready for review February 10, 2021 20:32
@wayneseymour wayneseymour requested a review from a team as a code owner February 10, 2021 20:32
Add svc,
integrate into one test,
add exported saved objects,
add empty kibana call,
and update ftr schema...add data directory for the new svc.
Make public api take one argument.
Make typescript happier.
@wayneseymour wayneseymour requested a review from LeeDr February 12, 2021 18:25
@wayneseymour
Copy link
Member Author

@elasticmachine merge upstream

const types = typeof flags.type === 'string' ? [flags.type] : flags.type;
return types.reduce(
(acc: string[], type) => [...acc, ...type.split(',').map((t) => t.trim())],
[]
Copy link
Member Author

Choose a reason for hiding this comment

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

:)

yarn.lock Outdated Show resolved Hide resolved
@wayneseymour
Copy link
Member Author

@spalger Hey chief, I've been "talked to" about dumping auth info to the console.
Do we need to redact here:

[00:07:20]               └- ✖ fail: discover app discover test "before all" hook in "discover test"

...

[00:07:20]               │ req: {
[00:07:20]               │   url: 'http://elastic:changeme@localhost:61161/api/saved_objects/_import',

...

Perhaps it's no biggie in this case?

@spalger
Copy link
Contributor

spalger commented Feb 22, 2021

Perhaps it's no biggie in this case?

Yeah, in this case the authentication isn't sensitive information and having all potentially applicable info is probably more helpful than spending time obfuscating details like the headers of the request or the username/password used.

@spalger
Copy link
Contributor

spalger commented Feb 22, 2021

@elasticmachine merge upstream

@spalger
Copy link
Contributor

spalger commented Feb 23, 2021

@elasticmachine merge upstream

@wayneseymour wayneseymour changed the title [QA] Create Saved Objects FTR Svc [QA] Create Saved Objects Kibana Svc Feb 23, 2021
@spalger
Copy link
Contributor

spalger commented Feb 23, 2021

@elasticmachine merge upstream

@spalger
Copy link
Contributor

spalger commented Feb 23, 2021

@wayneseymour, hope you don't mind but I'm going to reopen this as a new PR from my fork and take over getting it merged. Thanks for getting this started and for your assistance reviewing!

@spalger spalger closed this Feb 23, 2021
@wayneseymour
Copy link
Member Author

@spalger code on coder!!! :)

@spalger spalger deleted the create-saved-objs-svc branch February 23, 2021 21:41
@kibanamachine
Copy link
Contributor

kibanamachine commented Feb 23, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Deletes and recovers more than one rule.Deleting prebuilt rules Deletes and recovers more than one rule

Link to Jenkins

Stack Trace

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

AssertionError: Timed out retrying after 60000ms: expected '<button.euiButton.euiButton--primary>' to have text 'Install 2 Elastic prebuilt rules ', but the text was 'Install 1 Elastic prebuilt rule '
    at Context.eval (http://localhost:6111/__cypress/tests?p=cypress/integration/detection_rules/prebuilt_rules.spec.ts:20253:68)

Kibana Pipeline / general / Deletes and recovers more than one rule.Deleting prebuilt rules Deletes and recovers more than one rule

Link to Jenkins

Stack Trace

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

AssertionError: Timed out retrying after 60000ms: expected '<button.euiButton.euiButton--primary>' to have text 'Install 2 Elastic prebuilt rules ', but the text was 'Install 1 Elastic prebuilt rule '
    at Context.eval (http://localhost:6111/__cypress/tests?p=cypress/integration/detection_rules/prebuilt_rules.spec.ts:20253:68)

Metrics [docs]

✅ unchanged

History

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

cc @wayneseymour

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 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

switch from esArchiver to saved objects API for .kibana data in functional tests
4 participants