You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From x-pack folder run node scripts/mocha.js legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js.
Below is the output from the test. Notice UnhandledPromiseRejectionWarning warnings. I would expect the test to run without logging any warnings.
replaceInjectedVars uiExport
✓ sends xpack info if request is authenticated and license is not basic
✓ sends the xpack info if security plugin is disabled
✓ sends the xpack info if xpack license is basic
✓ respects the telemetry opt-in document when opted-out
✓ respects the telemetry opt-in document when opted-in
✓ indicates that telemetry is opted-out when not loading an application
✓ sends the originalInjectedVars if not authenticated
(node:18755) UnhandledPromiseRejectionWarning: Error: not found exception
at buildRequest (/Users/nathanreese/projects/kibana/x-pack/legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js:15:67)
at Context.buildRequest (/Users/nathanreese/projects/kibana/x-pack/legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js:138:21)
at callFn (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runnable.js:348:21)
at Test.Runnable.run (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runnable.js:340:7)
at Runner.runTest (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:443:10)
at /Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:549:12
at next (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:361:14)
at /Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:371:7
at next (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
(node:18755) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:18755) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✓ sends the originalInjectedVars if xpack info is unavailable
(node:18755) UnhandledPromiseRejectionWarning: Error: not found exception
at buildRequest (/Users/nathanreese/projects/kibana/x-pack/legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js:15:67)
at Context.buildRequest (/Users/nathanreese/projects/kibana/x-pack/legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js:148:21)
at callFn (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runnable.js:348:21)
at Test.Runnable.run (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runnable.js:340:7)
at Runner.runTest (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:443:10)
at /Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:549:12
at next (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:361:14)
at /Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:371:7
at next (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
(node:18755) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
✓ sends the originalInjectedVars (with xpackInitialInfo = undefined) if security is disabled, xpack info is unavailable
✓ sends the originalInjectedVars if the license check result is not available
(node:18755) UnhandledPromiseRejectionWarning: Error: not found exception
at buildRequest (/Users/nathanreese/projects/kibana/x-pack/legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js:15:67)
at Context.buildRequest (/Users/nathanreese/projects/kibana/x-pack/legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js:180:21)
at callFn (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runnable.js:348:21)
at Test.Runnable.run (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runnable.js:340:7)
at Runner.runTest (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:443:10)
at /Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:549:12
at next (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:361:14)
at /Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:371:7
at next (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/nathanreese/projects/kibana/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
(node:18755) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
10 passing (45ms)
The text was updated successfully, but these errors were encountered:
From x-pack folder run
node scripts/mocha.js legacy/plugins/xpack_main/server/lib/__tests__/replace_injected_vars.js
.Below is the output from the test. Notice
UnhandledPromiseRejectionWarning
warnings. I would expect the test to run without logging any warnings.The text was updated successfully, but these errors were encountered: