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

lib: provisioning error handling #206

Merged
merged 1 commit into from
Jul 17, 2015

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Jul 17, 2015

Error handling in provisioning was missing some errors which caused problems in tessel/t2-vm#24 (comment).

feross/standard has a rule that detects when you are not handling the err parameter in a callback. It's plenty useful, we should have something similar (or maybe switch to standard 👍).

@rwaldron
Copy link
Contributor

I tried to write tests for this but keygen is basically impossible to stub with sinon. So, instead of this I confirmed that the existing behavior is not broken, by walking through the following smoke tests:

  • t2 provision with no existing ~/.tessel/
  • t2 provision with existing ~/.tessel/
    • refused, as expected.
  • t2 provision -f with no existing ~/.tessel/ (intentional)
  • t2 provision -f with existing ~/.tessel/

Everything worked as expected

rwaldron added a commit that referenced this pull request Jul 17, 2015
@rwaldron rwaldron merged commit 2d5614f into tessel:master Jul 17, 2015
@LinusU LinusU deleted the provisioning-error-handling branch July 17, 2015 18:19
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.

2 participants