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

[7.x] Shallow clone properties when adding to registry (#65309) #65525

Merged
merged 1 commit into from
May 7, 2020

Conversation

mikecote
Copy link
Contributor

@mikecote mikecote commented May 6, 2020

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Plugin Functional Tests.test/plugin_functional/test_suites/core_plugins/application_status·ts.core plugins application status management allows to change the defaultPath of an application

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:01:49]         └-: core plugins
[00:01:49]           └-> "before all" hook
[00:04:33]           └-: application status management
[00:04:33]             └-> "before all" hook
[00:04:33]             └-> can change the navLink status at runtime
[00:04:33]               └-> "before each" hook: global before each
[00:04:33]               └-> "before each" hook
[00:04:33]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:33]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:33]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:33]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:33]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:04:33]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788629483 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:04:33]                 │
[00:04:33]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:33]                 │ debg ... sleep(700) start
[00:04:34]                 │ debg ... sleep(700) end
[00:04:34]                 │ debg returned from get, calling refresh
[00:04:34]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788629483 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:04:34]                 │
[00:04:34]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:34]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:34]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:34]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:34]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:36]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:04:36]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T18:10:32Z
[00:04:36]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:36]                 │
[00:04:36]                 │      "
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:36]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:36]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:36]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:36]                 │ debg ... sleep(501) start
[00:04:36]                 │ debg ... sleep(501) end
[00:04:36]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:36]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:36]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:39]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:39]               │ debg TestSubjects.exists(collapsibleNav)
[00:04:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:04:42]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:04:42]               │ debg TestSubjects.click(toggleNavButton)
[00:04:42]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:42]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:42]               │ debg TestSubjects.find(collapsibleNav)
[00:04:42]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:04:42]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:04:42]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:04:42]               │ debg TestSubjects.exists(collapsibleNav)
[00:04:42]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:04:45]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:04:46]               │ debg TestSubjects.click(toggleNavButton)
[00:04:46]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:46]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:46]               │ debg TestSubjects.find(collapsibleNav)
[00:04:46]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:04:46]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:04:46]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:04:46]               └- ✓ pass  (6.5s) "core plugins application status management can change the navLink status at runtime"
[00:04:46]             └-> shows an error when navigating to an inaccessible app
[00:04:46]               └-> "before each" hook: global before each
[00:04:46]               └-> "before each" hook
[00:04:46]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:46]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:46]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:46]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:46]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:04:46]                 │ debg browser[INFO] http://localhost:6121/app/kibana#/home 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:04:46]                 │
[00:04:46]                 │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:46]                 │ debg ... sleep(700) start
[00:04:46]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788642323 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:04:46]                 │
[00:04:46]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:47]                 │ debg ... sleep(700) end
[00:04:47]                 │ debg returned from get, calling refresh
[00:04:47]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788642323 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:04:47]                 │
[00:04:47]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:47]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:47]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:47]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:47]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:49]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:04:49]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T18:10:45Z
[00:04:49]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:49]                 │
[00:04:49]                 │      "
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:49]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:49]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:49]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:49]                 │ debg ... sleep(501) start
[00:04:49]                 │ debg ... sleep(501) end
[00:04:49]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:49]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:52]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:52]               │ debg TestSubjects.exists(appNotFoundPageContent)
[00:04:52]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appNotFoundPageContent"]') with timeout=2500
[00:04:52]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:04:52]               │ debg TestSubjects.exists(appStatusApp)
[00:04:52]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:04:55]               │ debg --- retry.tryForTime error: [data-test-subj="appStatusApp"] is not displayed
[00:04:55]               └- ✓ pass  (3.2s) "core plugins application status management shows an error when navigating to an inaccessible app"
[00:04:55]             └-> allows to navigate to an accessible app
[00:04:55]               └-> "before each" hook: global before each
[00:04:55]               └-> "before each" hook
[00:04:55]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:55]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:55]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:55]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:55]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:04:55]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788651999 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:04:55]                 │
[00:04:55]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:55]                 │ debg ... sleep(700) start
[00:04:56]                 │ debg ... sleep(700) end
[00:04:56]                 │ debg returned from get, calling refresh
[00:04:57]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:04:57]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T18:10:53Z
[00:04:57]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:57]                 │
[00:04:57]                 │      "
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:57]                 │ERROR browser[SEVERE] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 41648:18 TypeError: Failed to fetch
[00:04:57]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788651999 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:04:57]                 │
[00:04:57]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:57]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:57]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:57]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:57]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:58]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:04:58]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T18:10:54Z
[00:04:58]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:58]                 │
[00:04:58]                 │      "
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:58]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:58]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:58]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:58]                 │ debg ... sleep(501) start
[00:04:59]                 │ debg ... sleep(501) end
[00:04:59]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:59]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:01]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:02]               │ debg TestSubjects.exists(appNotFoundPageContent)
[00:05:02]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appNotFoundPageContent"]') with timeout=2500
[00:05:04]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:04]               │ debg --- retry.tryForTime error: [data-test-subj="appNotFoundPageContent"] is not displayed
[00:05:05]               │ debg TestSubjects.exists(appStatusApp)
[00:05:05]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:05]               └- ✓ pass  (3.1s) "core plugins application status management allows to navigate to an accessible app"
[00:05:05]             └-> allows to change the defaultPath of an application
[00:05:05]               └-> "before each" hook: global before each
[00:05:05]               └-> "before each" hook
[00:05:05]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:05:05]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:05:05]                 │ debg ... sleep(700) start
[00:05:05]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:05]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:05]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:05]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788661379 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:05:05]                 │
[00:05:05]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:05]                 │ debg ... sleep(700) end
[00:05:05]                 │ debg returned from get, calling refresh
[00:05:06]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588788661379 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:05:06]                 │
[00:05:06]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:06]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:05:06]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:05:06]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:06]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:07]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:05:07]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T18:11:03Z
[00:05:07]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:07]                 │
[00:05:07]                 │      "
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:07]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:07]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:07]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:05:07]                 │ debg ... sleep(501) start
[00:05:08]                 │ debg ... sleep(501) end
[00:05:08]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:05:08]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:10]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:11]               │ debg TestSubjects.exists(collapsibleNav)
[00:05:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:05:13]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:05:14]               │ debg TestSubjects.click(toggleNavButton)
[00:05:14]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:14]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:14]               │ debg TestSubjects.find(collapsibleNav)
[00:05:14]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:05:14]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:05:14]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:05:14]               │ debg TestSubjects.exists(collapsibleNav)
[00:05:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:05:17]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:05:17]               │ debg TestSubjects.click(toggleNavButton)
[00:05:17]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:17]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:17]               │ debg TestSubjects.find(collapsibleNav)
[00:05:17]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:05:17]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:05:17]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:05:17]               │ debg TestSubjects.exists(appStatusApp)
[00:05:17]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:17]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:17]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:17]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:17]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:17]               │ debg browser[INFO] http://localhost:6121/app/kibana#/home 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:05:17]               │
[00:05:17]               │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:20]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:05:20]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T18:11:15Z
[00:05:20]               │        Adding connection to http://localhost:6121/elasticsearch
[00:05:20]               │
[00:05:20]               │      "
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:20]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:20]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:20]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to home"
[00:05:20]               │ debg --- retry.tryForTime error: [data-test-subj="appStatusApp"] is not displayed
[00:05:21]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/core plugins application status management allows to change the defaultPath of an application.png"
[00:05:21]               │ info Current URL is: http://localhost:6121/app/kibana#/home
[00:05:21]               │ info Saving page source to: /dev/shm/workspace/kibana/test/plugin_functional/failure_debug/html/core plugins application status management allows to change the defaultPath of an application.html
[00:05:21]               └- ✖ fail: "core plugins application status management allows to change the defaultPath of an application"
[00:05:21]               │

Stack Trace

{ Error: expected false to sort of equal true
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (packages/kbn-expect/expect.js:244:8)
    at Context.it (test/plugin_functional/test_suites/core_plugins/application_status.ts:114:60) actual: 'false', expected: 'true', showDiff: true }

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

@mikecote mikecote merged commit a6339e4 into elastic:7.x May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants