balena-os / leviathan

A distributed hardware testing framework
https://balena-os.github.io/leviathan
Apache License 2.0
22 stars 6 forks source link

Handle rejection if ResinOS is not able to log in #188

Open horia-delicoti opened 6 years ago

horia-delicoti commented 6 years ago

If the resinos fails to login, the test suite fails with:

Teardown...
Removing application: mochaTest_rfaAy
Delete SSH key with label: mochaTest_rfaAy
Delete SSH key with label: mochaTest_rfaAy
Delete SSH key with label: mochaTest_rfaAy
Delete SSH key with label: mochaTest_rfaAy
Delete SSH key with label: mochaTest_rfaAy
(node:79) UnhandledPromiseRejectionWarning: Error: operation timed out after 6014 ms, 5 tries with error: You have to log in
    at /usr/app/node_modules/bluebird-retry/lib/bluebird-retry.js:109:35
    at tryCatcher (/usr/app/node_modules/bluebird/js/release/util.js:16:23)
    at /usr/app/node_modules/bluebird/js/release/catch_filter.js:24:41
    at tryCatcher (/usr/app/node_modules/bluebird/js/release/util.js:16:23)

Also, very important, we get the password and the email in plain site if the test fails to login.

horia-delicoti commented 6 years ago

@jviotti @telphan Very important ^