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

Initial client-side support for sharing saved-objects phase 1.5 #69399

Conversation

jportner
Copy link
Contributor

@jportner jportner commented Jun 17, 2020

Client-side component to #58139.

Introduces support for importing, exporting, copying, and sharing multi-namespace saved objects on the Kibana server. Also improves the user experience for importing, exporting, and copying single-namespace (regular) saved objects.

⚠️ This is targeting a feature branch.

Code owners except for kibana-security and kibana-platform may be interested in waiting until a final PR is opened against master.

Changes

Expand each item to see screenshots and additional notes if applicable.

Saved Objects Management Table

Added "Shared spaces" column

This displays which other space(s) each object is shared to. The display is limited to 5 spaces by default, but it is expandable. Any spaces that a user does not have access to are simply shown as a +X badge.

Two screenshots:

image

image

Added "Shared to space" action

This allows users to access the new "Share to space" flyout. It is only enabled for shareable (multi-namespace) saved object types.

image

Saved Objects Import Flyout

Revamped import options, added "Create new objects" option

image

Revamped import options (legacy file)

image

Added import summary

Before, it simply showed a callout with how many objects it attempted to import (and that number was incorrect due to a bug).

image

Updated import "Overwrite" modal, added super-select for multiple conflicts scenario

This scenario can happen with the advent of shareable saved objects.

image

Saved Objects Copy to Space Flyout

Revamped copy options, added "Create new objects" option

In addition, space(s) cannot be selected if an object already exists there; this scenario can happen with the advent of shareable saved objects.

Three screenshots:

image

image

image

Revamped copy error resolution / summary
  • Now shows actual object icon and title
  • Added "resolve all" option to either overwrite or skip all objects in the selected space
  • Overhauled summary counts at bottom of screen
  • Added support for missing references
  • Overhauled summary icons and tooltips to account for combinations of [conflict, missing references, conflict + missing references]
  • Differentiate "success" summary icon tooltips to inform users whether objects were newly created or overwritten
  • Added super-select for multiple conflicts scenario; this scenario can happen with the advent of shareable saved objects.

Several screenshots:

image

image

image

image

Saved Objects Share to Space Flyout

Created flyout
  • Allows user to share and "unshare" objects to/from spaces
  • If an object has not yet been shared to another space, it shows a warning callout at the top

image

NOTE: These screenshots were taken on 2020/08/12 when this PR is exiting draft state; text / minor UI elements may be out of date after this due to PR review feedback.

@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch from a144dde to 3493a02 Compare June 30, 2020 20:01
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-tmp branch from 9d7b8ac to c560509 Compare June 30, 2020 20:23
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch from e65ef4d to 070ee19 Compare July 8, 2020 21:52
@mdefazio
Copy link
Contributor

I know this is still draft, so apologies if these comments are premature.

image

I wasn't sure about the tooltip/alert icon on the group level. Assuming the amount badge would include all objects, not just those with errors, so maybe we need the icon as well? Or would that number always be the overwrite errors?

image

@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch from 070ee19 to c60f529 Compare July 13, 2020 22:34
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-tmp branch 2 times, most recently from a937bb6 to a8e14cf Compare July 14, 2020 22:41
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch 2 times, most recently from a39ce3d to aa1f78f Compare July 15, 2020 12:38
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-tmp branch from a8e14cf to 1c88425 Compare July 15, 2020 21:33
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch 2 times, most recently from af72668 to d0926c2 Compare July 16, 2020 18:05
@jportner
Copy link
Contributor Author

@mdefazio See my responses to feedback below

I know this is still draft, so apologies if these comments are premature.

No worries. I've pushed more updates, and incorporated some of your feedback already.

  • "Make a copy" label: I originally updated this at your recommendation (see the original Figma designs), I believe the thinking was that it would help differentiate it from the "Share to space" action
  • Other label, headings, text: I've made these changes
  • Number badge: I like this idea, will change it soon
  • "Select all": I like this idea, maybe we should change it to "Overwrite all"?
  • Summary numbers/categories: I agree, I will change this soon
  • Removing icons: I don't think we can do this. An error may not be a conflict, it may be something else that's unresolvable. Also in the future, if/when we add code to resolve missing references inside of the copy-to-space flyout, we'll have something other than a switch. So I think we should leave the inline switch/label as-is.

I wasn't sure about the tooltip/alert icon on the group level. Assuming the amount badge would include all objects, not just those with errors, so maybe we need the icon as well? Or would that number always be the overwrite errors?

All copy results -- successes, conflicts, and other errors -- are shown in that section. So I imagine the number would be the results for that space.

Screenshots from recent changes...
import-start

import-finish


import-ambiguous-conflict


copy-start
copy-finish

@legrego legrego self-requested a review July 16, 2020 19:49
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-tmp branch from 1c88425 to b8179c4 Compare July 16, 2020 20:26
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch 3 times, most recently from 97977b3 to 0aee3ee Compare July 21, 2020 01:32
Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

First pass through the client-side changes, primarily focused on changes within x-pack. Overall this is looking great so far! Just some questions/nits below for you

@jportner jportner force-pushed the security/sharing-saved-objects-1.5-tmp branch from b8179c4 to a3c7444 Compare July 23, 2020 15:57
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch 3 times, most recently from 6f772ea to 02a7b4d Compare July 23, 2020 20:00
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-tmp branch from a3c7444 to 5102ed9 Compare August 10, 2020 12:46
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch from 02a7b4d to f928ac2 Compare August 10, 2020 12:50
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch 2 times, most recently from f06412b to 4303f82 Compare August 13, 2020 05:14
@legrego legrego self-requested a review August 13, 2020 12:18
@jportner jportner marked this pull request as ready for review August 13, 2020 14:37
Sort by descending order in the Elasticsearch query so that in the
unlikely case there are more than 10 results, the most recently
changed ones will show up. This is propagated all the way to the
UI so the user will see choices in this order, too.
One of the copy-to-space tooltips had text size that was larger
than all of the others.
Needed to pull "destination map" state up one component so it could
be shared, and had to change how the SpaceResult is rendered in the
process.
Modified server side management code to inject `namespaceType` as
part of metadata, so "copy" and "share" actions can be disabled
based on that attribute.
This allows retries to continue and ignore any `missing_references`
errors. This is necessary to support copy-to-space, which does not
support a workflow to replace references.
If the "Overwrite all" option is enabled, subsequent calls to the
resolve import errors API should attempt to automatically overwrite
conflicts. This behavior was unintentionally broken in a recent
commit that introduced the "create new copies" import mode, because
the type was optional and the change was not caught by the type
checker. This commit fixes the behavior. In addition, this commit
fixes import resolution so that missing_references errors are
correctly added as copies by passing the createNewCopies option
to the API. It also introduces a small change to prevent duplicate
"replaceReferences" entries.
Some objects would result in a missing_references error when, if
resolved, would subsequently result in an conflict error. This
change allows the API to return both errors for a given object, and
updates the client-side code to handle them accordingly.
Now, consumers can determine whether an import/copy result actually
overwrote an existing object or not.
Also modified consumers to utilize this value to determine whether
or not retries should include the `overwrite` attribute.
1. All summary counts are shown all the time
2. Summary counts properly differentiate between copied, pending,
   skipped, and errors (errors only counts unresolvable errors).
3. Summary icons now show different tooltips based on whether or
   not any missing references were detected, and whether or not an
   overwrite was made/attempted.
This reverts commit bad3e23590777f047f105cc7ade5499d2f70577a.
The new import summary shows all objects that were not skipped, and
for each one it shows the result (either newly created, or
overwritten, or unresolvable error). Left old "summary" intact for
legacy imports.
* Changed radios / switches to EuiCheckableCard components
* Changed some text on flyout and action
* Changed radios / switches to EuiCheckableCard components
* Changed some text on flyout
When "Create new copies" is disabled, shareable objects should not
be copied to any spaces where they already exist. Otherwise the
object would run into a conflict and subsequently overwrite itself.

Note: referenced objects will still be copied, this could be
refined in future work, potentially by filtering them out on the
server-side.
* Now use tooltips instead of subdued text -- this is cleaner
* Copy flyout shows "Relationship options" as a separate heading
@jportner jportner force-pushed the security/sharing-saved-objects-1.5-client branch from d0c646a to 2350e2f Compare August 19, 2020 14:56
@jportner
Copy link
Contributor Author

Note to all: I had to do a force push to drop a snapshot of the server-side changes from the commit history and rebase onto the security/sharing-saved-objects-1.5 branch. This was expected.

@jportner jportner merged commit f3e0687 into elastic:security/sharing-saved-objects-1.5 Aug 19, 2020
@jportner jportner deleted the security/sharing-saved-objects-1.5-client branch August 19, 2020 14:58
@kibanamachine
Copy link
Contributor

kibanamachine commented Aug 19, 2020

💔 Build Failed

Failed CI Steps


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/spaces/copy_saved_objects·ts.Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space, with all references

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/44575

[00:00:00]       │
[00:11:43]         └-: Spaces app
[00:11:43]           └-> "before all" hook
[00:11:43]           └-: Copy Saved Objects to Space
[00:11:43]             └-> "before all" hook
[00:11:43]             └-> "before all" hook
[00:11:43]               │ info [spaces/copy_saved_objects] Loading "mappings.json"
[00:11:43]               │ info [spaces/copy_saved_objects] Loading "data.json"
[00:11:43]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_1/iofn_AbmTbeavp-h5I4Uew] deleting index
[00:11:43]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/7yfvq3WeRL20SrSChPLXlQ] deleting index
[00:11:43]               │ info [spaces/copy_saved_objects] Deleted existing index [".kibana_2",".kibana_1"]
[00:11:43]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:11:43]               │ info [spaces/copy_saved_objects] Created index ".kibana"
[00:11:43]               │ debg [spaces/copy_saved_objects] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:11:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana/jTKsALb7TmyvKTIM6bjemQ] update_mapping [_doc]
[00:11:43]               │ info [spaces/copy_saved_objects] Indexed 5 docs into ".kibana"
[00:11:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana/jTKsALb7TmyvKTIM6bjemQ] update_mapping [_doc]
[00:11:43]               │ debg Migrating saved objects
[00:11:43]               │ proc [kibana]   log   [16:06:43.946] [info][savedobjects-service] Creating index .kibana_2.
[00:11:43]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:11:43]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] updating number_of_replicas to [0] for indices [.kibana_2]
[00:11:43]               │ proc [kibana]   log   [16:06:44.084] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:11:43]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:11:43]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:43]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] 12833 finished with response BulkByScrollResponse[took=62.3ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:44]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana/jTKsALb7TmyvKTIM6bjemQ] deleting index
[00:11:44]               │ proc [kibana]   log   [16:06:44.527] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/jYrTV0GFToOmWThInTyRIg] update_mapping [_doc]
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/jYrTV0GFToOmWThInTyRIg] update_mapping [_doc]
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/jYrTV0GFToOmWThInTyRIg] update_mapping [_doc]
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/jYrTV0GFToOmWThInTyRIg] update_mapping [_doc]
[00:11:44]               │ proc [kibana]   log   [16:06:44.827] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:11:44]               │ proc [kibana]   log   [16:06:44.905] [info][savedobjects-service] Finished in 961ms.
[00:11:44]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/jYrTV0GFToOmWThInTyRIg] update_mapping [_doc]
[00:11:46]               │ debg creating space
[00:11:47]               │ debg created space
[00:11:47]               │ debg creating space
[00:11:48]               │ debg created space
[00:11:48]               │ debg SecurityPage.forceLogout
[00:11:48]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:11:48]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:49]               │ debg Redirecting to /logout to force the logout
[00:11:49]               │ debg Waiting on the login form to appear
[00:11:49]               │ debg Waiting for Login Page to appear.
[00:11:49]               │ debg Waiting up to 100000ms for login page...
[00:11:49]               │ debg browser[INFO] http://localhost:6191/logout?_t=1597853209777 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:49]               │
[00:11:49]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:49]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:52]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:06:50Z
[00:11:52]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:52]               │
[00:11:52]               │      "
[00:11:52]               │ debg browser[INFO] http://localhost:6191/login?_t=1597853209777 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:52]               │
[00:11:52]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:52]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:52]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:06:52Z
[00:11:52]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:52]               │
[00:11:52]               │      "
[00:11:53]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:53]               │ debg navigating to login url: http://localhost:6191/login
[00:11:53]               │ debg navigate to: http://localhost:6191/login
[00:11:53]               │ debg browser[INFO] http://localhost:6191/login?_t=1597853213502 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:53]               │
[00:11:53]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:53]               │ debg ... sleep(700) start
[00:11:53]               │ debg ... sleep(700) end
[00:11:53]               │ debg returned from get, calling refresh
[00:11:54]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:06:54Z
[00:11:54]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:54]               │
[00:11:54]               │      "
[00:11:54]               │ debg browser[INFO] http://localhost:6191/login?_t=1597853213502 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:54]               │
[00:11:54]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:55]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:06:55Z
[00:11:55]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:55]               │
[00:11:55]               │      "
[00:11:55]               │ debg currentUrl = http://localhost:6191/login
[00:11:55]               │          appUrl = http://localhost:6191/login
[00:11:55]               │ debg TestSubjects.find(kibanaChrome)
[00:11:55]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:55]               │ debg ... sleep(501) start
[00:11:56]               │ debg ... sleep(501) end
[00:11:56]               │ debg in navigateTo url = http://localhost:6191/login
[00:11:56]               │ debg TestSubjects.exists(statusPageContainer)
[00:11:56]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:11:58]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:11:59]               │ debg Waiting for Login Form to appear.
[00:11:59]               │ debg Waiting up to 100000ms for login form...
[00:11:59]               │ debg TestSubjects.exists(loginForm)
[00:11:59]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:11:59]               │ debg TestSubjects.setValue(loginUsername, elastic)
[00:11:59]               │ debg TestSubjects.click(loginUsername)
[00:11:59]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:59]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:59]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:11:59]               │ debg TestSubjects.click(loginPassword)
[00:11:59]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:59]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:59]               │ debg TestSubjects.click(loginSubmit)
[00:11:59]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:59]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:59]               │ debg Waiting for login result, expected: spaceSelector.
[00:11:59]               │ debg TestSubjects.find(kibanaSpaceSelector)
[00:11:59]               │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:12:01]               │ debg browser[INFO] http://localhost:6191/spaces/space_selector 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:01]               │
[00:12:01]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:01]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:07:00Z
[00:12:01]               │        Adding connection to http://localhost:6191/elasticsearch
[00:12:01]               │
[00:12:01]               │      "
[00:12:01]               │ debg Finished login process, landed on space selector. currentUrl = http://localhost:6191/spaces/space_selector
[00:12:01]               │ debg navigating to settings url: http://localhost:6191/app/management
[00:12:01]               │ debg navigate to: http://localhost:6191/app/management
[00:12:01]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1597853221440 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:01]               │
[00:12:01]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:01]               │ debg ... sleep(700) start
[00:12:02]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:07:01Z
[00:12:02]               │        Adding connection to http://localhost:6191/elasticsearch
[00:12:02]               │
[00:12:02]               │      "
[00:12:02]               │ debg ... sleep(700) end
[00:12:02]               │ debg returned from get, calling refresh
[00:12:02]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1597853221440 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:02]               │
[00:12:02]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:02]               │ debg currentUrl = http://localhost:6191/app/management
[00:12:02]               │          appUrl = http://localhost:6191/app/management
[00:12:02]               │ debg TestSubjects.find(kibanaChrome)
[00:12:02]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:03]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T16:07:03Z
[00:12:03]               │        Adding connection to http://localhost:6191/elasticsearch
[00:12:03]               │
[00:12:03]               │      "
[00:12:04]               │ debg ... sleep(501) start
[00:12:04]               │ debg ... sleep(501) end
[00:12:04]               │ debg in navigateTo url = http://localhost:6191/app/management
[00:12:04]               │ debg TestSubjects.exists(statusPageContainer)
[00:12:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:12:07]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:12:07]               │ debg TestSubjects.click(objects)
[00:12:07]               │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:12:07]               │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:12:07]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] :not(.euiBasicTable-loading)') with timeout=2500
[00:12:08]               │ debg --- retry.tryForTime error: stale element reference: element is not attached to the page document
[00:12:08]               │        (Session info: headless chrome=84.0.4147.125)
[00:12:11]             └-> allows a dashboard to be copied to the marketing space, with all references
[00:12:11]               └-> "before each" hook: global before each
[00:12:11]               │ debg TestSubjects.find(savedObjectSearchBar)
[00:12:11]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectSearchBar"]') with timeout=10000
[00:12:11]               │ debg isGlobalLoadingIndicatorVisible
[00:12:11]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:12:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:12:11]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:12:11]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:12:11]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] :not(.euiBasicTable-loading)') with timeout=2500
[00:12:12]               │ debg --- retry.tryForTime error: stale element reference: element is not attached to the page document
[00:12:12]               │        (Session info: headless chrome=84.0.4147.125)
[00:12:14]               │ debg ... sleep(1000) start
[00:12:15]               │ debg ... sleep(1000) end
[00:12:15]               │ debg TestSubjects.findAll(~savedObjectsTableRow)
[00:12:15]               │ debg Find.allByCssSelector('[data-test-subj~="savedObjectsTableRow"]') with timeout=10000
[00:12:15]               │ debg we found a context menu element for (A Dashboard) so click it
[00:12:15]               │ debg Find.findByCssSelector('.euiContextMenuPanel') with timeout=10000
[00:12:15]               │ debg TestSubjects.exists(copy-to-space-flyout)
[00:12:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="copy-to-space-flyout"]') with timeout=120000
[00:12:16]               │ debg TestSubjects.click(cts-space-selector-row-marketing)
[00:12:16]               │ debg Find.clickByCssSelector('[data-test-subj="cts-space-selector-row-marketing"]') with timeout=10000
[00:12:16]               │ debg Find.findByCssSelector('[data-test-subj="cts-space-selector-row-marketing"]') with timeout=10000
[00:12:16]               │ debg TestSubjects.click(cts-initiate-button)
[00:12:16]               │ debg Find.clickByCssSelector('[data-test-subj="cts-initiate-button"]') with timeout=10000
[00:12:16]               │ debg Find.findByCssSelector('[data-test-subj="cts-initiate-button"]') with timeout=10000
[00:12:16]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="cts-summary-indicator-loading-marketing"]') with timeout=10000
[00:12:16]               │ debg TestSubjects.exists(cts-summary-indicator-success-marketing)
[00:12:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="cts-summary-indicator-success-marketing"]') with timeout=120000
[00:12:16]               │ debg TestSubjects.getVisibleText(cts-summary-success-count)
[00:12:16]               │ debg TestSubjects.find(cts-summary-success-count)
[00:12:16]               │ debg Find.findByCssSelector('[data-test-subj="cts-summary-success-count"]') with timeout=10000
[00:12:16]               │ debg TestSubjects.getVisibleText(cts-summary-conflict-count)
[00:12:16]               │ debg TestSubjects.find(cts-summary-conflict-count)
[00:12:16]               │ debg Find.findByCssSelector('[data-test-subj="cts-summary-conflict-count"]') with timeout=10000
[00:12:16]               │ debg TestSubjects.getVisibleText(cts-summary-error-count)
[00:12:16]               │ debg TestSubjects.find(cts-summary-error-count)
[00:12:16]               │ debg Find.findByCssSelector('[data-test-subj="cts-summary-error-count"]') with timeout=10000
[00:12:16]               │ debg TestSubjects.missingOrFail(cts-summary-overwrite-count)
[00:12:16]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="cts-summary-overwrite-count"]') with timeout=250
[00:12:17]               │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space_ with all references.png"
[00:12:17]               │ info Current URL is: http://localhost:6191/app/management/kibana/objects
[00:12:17]               │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space_ with all references.html
[00:12:17]               └- ✖ fail: Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space, with all references
[00:12:17]               │      TimeoutError: The element [data-test-subj="cts-summary-overwrite-count"] was still present when it should have disappeared.
[00:12:17]               │ Wait timed out after 436ms
[00:12:17]               │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:12:17]               │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:12:17]               │ 
[00:12:17]               │ 

Stack Trace

{ TimeoutError: The element [data-test-subj="cts-summary-overwrite-count"] was still present when it should have disappeared.
Wait timed out after 436ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/spaces/copy_saved_objects·ts.Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space, with all references

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/44575

[00:00:00]       │
[00:11:43]         └-: Spaces app
[00:11:43]           └-> "before all" hook
[00:11:43]           └-: Copy Saved Objects to Space
[00:11:43]             └-> "before all" hook
[00:11:43]             └-> "before all" hook
[00:11:43]               │ info [spaces/copy_saved_objects] Loading "mappings.json"
[00:11:43]               │ info [spaces/copy_saved_objects] Loading "data.json"
[00:11:43]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/Mnirg5dMTPqGrxTJ1g5nqA] deleting index
[00:11:43]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_1/Ph1IZ7C-Tw6ZpGl6mK7uRg] deleting index
[00:11:43]               │ info [spaces/copy_saved_objects] Deleted existing index [".kibana_2",".kibana_1"]
[00:11:43]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:11:43]               │ info [spaces/copy_saved_objects] Created index ".kibana"
[00:11:43]               │ debg [spaces/copy_saved_objects] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:11:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana/2eKrbA0qRNGea7QCD2GfRw] update_mapping [_doc]
[00:11:43]               │ info [spaces/copy_saved_objects] Indexed 5 docs into ".kibana"
[00:11:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana/2eKrbA0qRNGea7QCD2GfRw] update_mapping [_doc]
[00:11:43]               │ debg Migrating saved objects
[00:11:43]               │ proc [kibana]   log   [15:52:06.310] [info][savedobjects-service] Creating index .kibana_2.
[00:11:43]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:11:43]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] updating number_of_replicas to [0] for indices [.kibana_2]
[00:11:43]               │ proc [kibana]   log   [15:52:06.392] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:11:43]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:11:43]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:43]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] 12853 finished with response BulkByScrollResponse[took=34.7ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:43]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana/2eKrbA0qRNGea7QCD2GfRw] deleting index
[00:11:43]               │ proc [kibana]   log   [15:52:06.774] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:11:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/DhzhJP13TZGcE76iNXpbZg] update_mapping [_doc]
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/DhzhJP13TZGcE76iNXpbZg] update_mapping [_doc]
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/DhzhJP13TZGcE76iNXpbZg] update_mapping [_doc]
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/DhzhJP13TZGcE76iNXpbZg] update_mapping [_doc]
[00:11:44]               │ proc [kibana]   log   [15:52:07.005] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:11:44]               │ proc [kibana]   log   [15:52:07.057] [info][savedobjects-service] Finished in 748ms.
[00:11:44]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:11:44]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1597849403382249041] [.kibana_2/DhzhJP13TZGcE76iNXpbZg] update_mapping [_doc]
[00:11:45]               │ debg creating space
[00:11:46]               │ debg created space
[00:11:46]               │ debg creating space
[00:11:47]               │ debg created space
[00:11:47]               │ debg SecurityPage.forceLogout
[00:11:47]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:11:47]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:48]               │ debg Redirecting to /logout to force the logout
[00:11:48]               │ debg Waiting on the login form to appear
[00:11:48]               │ debg Waiting for Login Page to appear.
[00:11:48]               │ debg Waiting up to 100000ms for login page...
[00:11:48]               │ debg browser[INFO] http://localhost:6191/logout?_t=1597852331040 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:48]               │
[00:11:48]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:48]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:50]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:12Z
[00:11:50]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:50]               │
[00:11:50]               │      "
[00:11:50]               │ debg browser[INFO] http://localhost:6191/login?_t=1597852331040 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:50]               │
[00:11:50]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:50]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:51]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:13Z
[00:11:51]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:51]               │
[00:11:51]               │      "
[00:11:51]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:51]               │ debg navigating to login url: http://localhost:6191/login
[00:11:51]               │ debg navigate to: http://localhost:6191/login
[00:11:52]               │ debg browser[INFO] http://localhost:6191/login?_t=1597852334772 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:52]               │
[00:11:52]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:52]               │ debg ... sleep(700) start
[00:11:52]               │ debg ... sleep(700) end
[00:11:52]               │ debg returned from get, calling refresh
[00:11:53]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:15Z
[00:11:53]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:53]               │
[00:11:53]               │      "
[00:11:53]               │ debg browser[INFO] http://localhost:6191/login?_t=1597852334772 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:53]               │
[00:11:53]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:54]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:16Z
[00:11:54]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:54]               │
[00:11:54]               │      "
[00:11:54]               │ debg currentUrl = http://localhost:6191/login
[00:11:54]               │          appUrl = http://localhost:6191/login
[00:11:54]               │ debg TestSubjects.find(kibanaChrome)
[00:11:54]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:54]               │ debg ... sleep(501) start
[00:11:55]               │ debg ... sleep(501) end
[00:11:55]               │ debg in navigateTo url = http://localhost:6191/login
[00:11:55]               │ debg TestSubjects.exists(statusPageContainer)
[00:11:55]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:11:57]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:11:58]               │ debg Waiting for Login Form to appear.
[00:11:58]               │ debg Waiting up to 100000ms for login form...
[00:11:58]               │ debg TestSubjects.exists(loginForm)
[00:11:58]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:11:58]               │ debg TestSubjects.setValue(loginUsername, elastic)
[00:11:58]               │ debg TestSubjects.click(loginUsername)
[00:11:58]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:58]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:58]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:11:58]               │ debg TestSubjects.click(loginPassword)
[00:11:58]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:58]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:58]               │ debg TestSubjects.click(loginSubmit)
[00:11:58]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:58]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:58]               │ debg Waiting for login result, expected: spaceSelector.
[00:11:58]               │ debg TestSubjects.find(kibanaSpaceSelector)
[00:11:58]               │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:11:59]               │ debg browser[INFO] http://localhost:6191/spaces/space_selector 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:59]               │
[00:11:59]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:59]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:21Z
[00:11:59]               │        Adding connection to http://localhost:6191/elasticsearch
[00:11:59]               │
[00:11:59]               │      "
[00:11:59]               │ debg Finished login process, landed on space selector. currentUrl = http://localhost:6191/spaces/space_selector
[00:11:59]               │ debg navigating to settings url: http://localhost:6191/app/management
[00:11:59]               │ debg navigate to: http://localhost:6191/app/management
[00:12:00]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1597852342579 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:00]               │
[00:12:00]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:00]               │ debg ... sleep(700) start
[00:12:00]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:23Z
[00:12:00]               │        Adding connection to http://localhost:6191/elasticsearch
[00:12:00]               │
[00:12:00]               │      "
[00:12:00]               │ debg ... sleep(700) end
[00:12:00]               │ debg returned from get, calling refresh
[00:12:00]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1597852342579 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:00]               │
[00:12:00]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:00]               │ debg currentUrl = http://localhost:6191/app/management
[00:12:00]               │          appUrl = http://localhost:6191/app/management
[00:12:00]               │ debg TestSubjects.find(kibanaChrome)
[00:12:00]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:02]               │ debg browser[INFO] http://localhost:6191/35658/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-19T15:52:24Z
[00:12:02]               │        Adding connection to http://localhost:6191/elasticsearch
[00:12:02]               │
[00:12:02]               │      "
[00:12:02]               │ debg ... sleep(501) start
[00:12:03]               │ debg ... sleep(501) end
[00:12:03]               │ debg in navigateTo url = http://localhost:6191/app/management
[00:12:03]               │ debg TestSubjects.exists(statusPageContainer)
[00:12:03]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:12:05]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:12:06]               │ debg TestSubjects.click(objects)
[00:12:06]               │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:12:06]               │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:12:06]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] :not(.euiBasicTable-loading)') with timeout=2500
[00:12:07]               │ debg --- retry.tryForTime error: stale element reference: element is not attached to the page document
[00:12:07]               │        (Session info: headless chrome=84.0.4147.125)
[00:12:10]             └-> allows a dashboard to be copied to the marketing space, with all references
[00:12:10]               └-> "before each" hook: global before each
[00:12:10]               │ debg TestSubjects.find(savedObjectSearchBar)
[00:12:10]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectSearchBar"]') with timeout=10000
[00:12:10]               │ debg isGlobalLoadingIndicatorVisible
[00:12:10]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:12:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:12:10]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:12:10]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:12:10]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] :not(.euiBasicTable-loading)') with timeout=2500
[00:12:10]               │ debg --- retry.tryForTime error: stale element reference: element is not attached to the page document
[00:12:10]               │        (Session info: headless chrome=84.0.4147.125)
[00:12:12]               │ debg ... sleep(1000) start
[00:12:13]               │ debg ... sleep(1000) end
[00:12:13]               │ debg TestSubjects.findAll(~savedObjectsTableRow)
[00:12:13]               │ debg Find.allByCssSelector('[data-test-subj~="savedObjectsTableRow"]') with timeout=10000
[00:12:14]               │ debg we found a context menu element for (A Dashboard) so click it
[00:12:14]               │ debg Find.findByCssSelector('.euiContextMenuPanel') with timeout=10000
[00:12:14]               │ debg TestSubjects.exists(copy-to-space-flyout)
[00:12:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="copy-to-space-flyout"]') with timeout=120000
[00:12:14]               │ debg TestSubjects.click(cts-space-selector-row-marketing)
[00:12:14]               │ debg Find.clickByCssSelector('[data-test-subj="cts-space-selector-row-marketing"]') with timeout=10000
[00:12:14]               │ debg Find.findByCssSelector('[data-test-subj="cts-space-selector-row-marketing"]') with timeout=10000
[00:12:14]               │ debg TestSubjects.click(cts-initiate-button)
[00:12:14]               │ debg Find.clickByCssSelector('[data-test-subj="cts-initiate-button"]') with timeout=10000
[00:12:14]               │ debg Find.findByCssSelector('[data-test-subj="cts-initiate-button"]') with timeout=10000
[00:12:14]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="cts-summary-indicator-loading-marketing"]') with timeout=10000
[00:12:15]               │ debg TestSubjects.exists(cts-summary-indicator-success-marketing)
[00:12:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="cts-summary-indicator-success-marketing"]') with timeout=120000
[00:12:15]               │ debg TestSubjects.getVisibleText(cts-summary-success-count)
[00:12:15]               │ debg TestSubjects.find(cts-summary-success-count)
[00:12:15]               │ debg Find.findByCssSelector('[data-test-subj="cts-summary-success-count"]') with timeout=10000
[00:12:15]               │ debg TestSubjects.getVisibleText(cts-summary-conflict-count)
[00:12:15]               │ debg TestSubjects.find(cts-summary-conflict-count)
[00:12:15]               │ debg Find.findByCssSelector('[data-test-subj="cts-summary-conflict-count"]') with timeout=10000
[00:12:15]               │ debg TestSubjects.getVisibleText(cts-summary-error-count)
[00:12:15]               │ debg TestSubjects.find(cts-summary-error-count)
[00:12:15]               │ debg Find.findByCssSelector('[data-test-subj="cts-summary-error-count"]') with timeout=10000
[00:12:15]               │ debg TestSubjects.missingOrFail(cts-summary-overwrite-count)
[00:12:15]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="cts-summary-overwrite-count"]') with timeout=250
[00:12:16]               │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space_ with all references.png"
[00:12:16]               │ info Current URL is: http://localhost:6191/app/management/kibana/objects
[00:12:16]               │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space_ with all references.html
[00:12:16]               └- ✖ fail: Spaces app Copy Saved Objects to Space allows a dashboard to be copied to the marketing space, with all references
[00:12:16]               │      TimeoutError: The element [data-test-subj="cts-summary-overwrite-count"] was still present when it should have disappeared.
[00:12:16]               │ Wait timed out after 433ms
[00:12:16]               │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:12:16]               │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:12:16]               │ 
[00:12:16]               │ 

Stack Trace

{ TimeoutError: The element [data-test-subj="cts-summary-overwrite-count"] was still present when it should have disappeared.
Wait timed out after 433ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

Build metrics

‼️ unable to find a baseline build for [security/sharing-saved-objects-1.5@d17201f]. Try merging the upstream branch and trying again.

History

  • 💚 Build #68948 succeeded d0c646a62a60fbbe54004c90e027089e0a792892
  • 💚 Build #68202 succeeded 8decd0743f5ac2ab3c8f7145a8c352b6497e6c3d
  • 💚 Build #68043 succeeded fe26a8ce4f78ae74652b21496bebfa7f85e0c92a
  • 💚 Build #68015 succeeded fe52a8d1d8b4c742a08f984949193a2d04d46efe

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants