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] [Alerting] migrates acceptance and functional test fixtures to KP (#64888) #65430

Merged
merged 1 commit into from
May 6, 2020

Conversation

gmmorris
Copy link
Contributor

@gmmorris gmmorris commented May 6, 2020

Backports the following commits to 7.x:

…astic#64888)

This PR migrates the vast majority of Alerting legacy code to the Kibana Platform.

This includes:

1. Removed legacy Task Manager
2. Migrates Fixture plugins in Alerting, Triggers UI and Task Manager Perf

This does not includes:

1. The PagerDuty simulator due to a lack of support for custom responses in the platform. issue opened. elastic#65045
2. The Webhooks simulator due to a lack of support for custom authorisation. Requires investigation.
# Conflicts:
#	renovate.json5
#	x-pack/index.js
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label May 6, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@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 2 times on tracked branches: https://github.com/elastic/kibana/issues/65423

[00:00:00]       │
[00:01:45]         └-: core plugins
[00:01:45]           └-> "before all" hook
[00:04:28]           └-: application status management
[00:04:28]             └-> "before all" hook
[00:04:28]             └-> can change the navLink status at runtime
[00:04:28]               └-> "before each" hook: global before each
[00:04:28]               └-> "before each" hook
[00:04:28]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:28]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:29]                 │ 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:29]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T09:32:00Z
[00:04:29]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:29]                 │
[00:04:29]                 │      "
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:29]                 │ERROR browser[SEVERE] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 8759:20 TypeError: Failed to fetch
[00:04:29]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757520796 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:29]                 │
[00:04:29]                 │ 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:29]                 │ debg ... sleep(700) start
[00:04:29]                 │ debg ... sleep(700) end
[00:04:29]                 │ debg returned from get, calling refresh
[00:04:30]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:30]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:30]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:30]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:30]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757520796 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:30]                 │
[00:04:30]                 │ 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:31]                 │ 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:31]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T09:32:03Z
[00:04:31]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:31]                 │
[00:04:31]                 │      "
[00:04:31]                 │ 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:31]                 │ 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:31]                 │ 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:31]                 │ 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:31]                 │ 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:31]                 │ 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:31]                 │ 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:31]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:31]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:31]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:31]                 │ debg ... sleep(501) start
[00:04:32]                 │ debg ... sleep(501) end
[00:04:32]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:32]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:34]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:35]               │ debg TestSubjects.exists(collapsibleNav)
[00:04:35]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:04:37]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:04:38]               │ debg TestSubjects.click(toggleNavButton)
[00:04:38]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:38]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:38]               │ debg TestSubjects.find(collapsibleNav)
[00:04:38]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:04:38]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:04:38]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:04:38]               │ debg TestSubjects.exists(collapsibleNav)
[00:04:38]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:04:41]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:04:41]               │ debg TestSubjects.click(toggleNavButton)
[00:04:41]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:41]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:41]               │ debg TestSubjects.find(collapsibleNav)
[00:04:41]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:04:41]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:04:41]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:04:41]               └- ✓ pass  (6.5s) "core plugins application status management can change the navLink status at runtime"
[00:04:41]             └-> shows an error when navigating to an inaccessible app
[00:04:41]               └-> "before each" hook: global before each
[00:04:41]               └-> "before each" hook
[00:04:41]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:41]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:41]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:41]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:41]                 │ 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:41]                 │ 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:41]                 │
[00:04:41]                 │ 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:41]                 │ debg ... sleep(700) start
[00:04:41]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757533584 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:41]                 │
[00:04:41]                 │ 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:42]                 │ debg ... sleep(700) end
[00:04:42]                 │ debg returned from get, calling refresh
[00:04:43]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757533584 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:43]                 │
[00:04:43]                 │ 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:43]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:43]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:43]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:43]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:44]                 │ 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:44]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T09:32:16Z
[00:04:44]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:44]                 │
[00:04:44]                 │      "
[00:04:44]                 │ 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:44]                 │ 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:44]                 │ 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:44]                 │ 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:44]                 │ 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:44]                 │ 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:44]                 │ 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:44]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:44]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:44]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:44]                 │ debg ... sleep(501) start
[00:04:45]                 │ debg ... sleep(501) end
[00:04:45]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:45]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:47]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:48]               │ debg TestSubjects.exists(appNotFoundPageContent)
[00:04:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appNotFoundPageContent"]') with timeout=2500
[00:04:48]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:04:48]               │ debg TestSubjects.exists(appStatusApp)
[00:04:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:04:51]               │ debg --- retry.tryForTime error: [data-test-subj="appStatusApp"] is not displayed
[00:04:51]               └- ✓ pass  (3.2s) "core plugins application status management shows an error when navigating to an inaccessible app"
[00:04:51]             └-> allows to navigate to an accessible app
[00:04:51]               └-> "before each" hook: global before each
[00:04:51]               └-> "before each" hook
[00:04:51]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:51]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:51]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:51]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:51]                 │ 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:51]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757543427 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:51]                 │
[00:04:51]                 │ 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:51]                 │ debg ... sleep(700) start
[00:04:52]                 │ debg ... sleep(700) end
[00:04:52]                 │ debg returned from get, calling refresh
[00:04:53]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757543427 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:53]                 │
[00:04:53]                 │ 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:53]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:53]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:53]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:54]                 │ 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:54]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T09:32:26Z
[00:04:54]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:54]                 │
[00:04:54]                 │      "
[00:04:54]                 │ 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:54]                 │ 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:54]                 │ 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:54]                 │ 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:54]                 │ 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:54]                 │ 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:54]                 │ 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:54]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:54]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:54]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:54]                 │ debg ... sleep(501) start
[00:04:54]                 │ debg ... sleep(501) end
[00:04:54]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:54]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:54]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:57]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:58]               │ debg TestSubjects.exists(appNotFoundPageContent)
[00:04:58]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appNotFoundPageContent"]') with timeout=2500
[00:05:00]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:00]               │ debg --- retry.tryForTime error: [data-test-subj="appNotFoundPageContent"] is not displayed
[00:05:01]               │ debg TestSubjects.exists(appStatusApp)
[00:05:01]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:01]               └- ✓ pass  (3.1s) "core plugins application status management allows to navigate to an accessible app"
[00:05:01]             └-> allows to change the defaultPath of an application
[00:05:01]               └-> "before each" hook: global before each
[00:05:01]               └-> "before each" hook
[00:05:01]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:05:01]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:05:01]                 │ debg ... sleep(700) start
[00:05:01]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:01]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:01]                 │ 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:01]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757552938 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:01]                 │
[00:05:01]                 │ 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:01]                 │ debg ... sleep(700) end
[00:05:01]                 │ debg returned from get, calling refresh
[00:05:02]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588757552938 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:02]                 │
[00:05:02]                 │ 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:02]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:05:02]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:05:02]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:02]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:03]                 │ 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:03]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T09:32:35Z
[00:05:03]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:03]                 │
[00:05:03]                 │      "
[00:05:03]                 │ 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:03]                 │ 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:03]                 │ 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:03]                 │ 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:03]                 │ 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:03]                 │ 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:03]                 │ 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:03]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:03]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:03]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:05:03]                 │ debg ... sleep(501) start
[00:05:04]                 │ debg ... sleep(501) end
[00:05:04]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:05:04]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:07]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:07]               │ debg TestSubjects.exists(collapsibleNav)
[00:05:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:05:10]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:05:10]               │ debg TestSubjects.click(toggleNavButton)
[00:05:10]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:10]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:10]               │ debg TestSubjects.find(collapsibleNav)
[00:05:10]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:05:10]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:05:10]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:05:10]               │ debg TestSubjects.exists(collapsibleNav)
[00:05:10]               │ 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:13]               │ debg TestSubjects.click(toggleNavButton)
[00:05:13]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:13]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:13]               │ debg TestSubjects.find(collapsibleNav)
[00:05:13]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:05:13]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:05:13]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:05:14]               │ debg TestSubjects.exists(appStatusApp)
[00:05:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:14]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:14]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:14]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:14]               │ 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:14]               │ 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:14]               │
[00:05:14]               │ 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:16]               │ 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:16]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T09:32:47Z
[00:05:16]               │        Adding connection to http://localhost:6121/elasticsearch
[00:05:16]               │
[00:05:16]               │      "
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2484:20 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:16]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:16]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:16]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to home"
[00:05:16]               │ debg --- retry.tryForTime error: [data-test-subj="appStatusApp"] is not displayed
[00:05:17]               │ 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:17]               │ info Current URL is: http://localhost:6121/app/kibana#/home
[00:05:17]               │ 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:17]               └- ✖ fail: "core plugins application status management allows to change the defaultPath of an application"
[00:05:17]               │

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

@gmmorris gmmorris merged commit e61d50c into elastic:7.x May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:APM All issues that need APM UI Team support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants