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

Fix failing tests #366

Merged
merged 2 commits into from
Apr 10, 2016
Merged

Fix failing tests #366

merged 2 commits into from
Apr 10, 2016

Conversation

reset
Copy link
Collaborator

@reset reset commented Apr 9, 2016

This PR improves logic of key generation by first checking if the path given is a valid path to a file on disk, then creates the parent directory before attempting to generate the keyfile in it.

It also fixes the documentation tests by marking some code blocks in the crypto module which were added as text instead of the default of rust. These example blocks were trying to get compiled ;)

gif-keyboard-4360703706338018848

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

}

// generate a single key
if let Err(e) = hcore::crypto::generate_origin_sig_key(test_key_name) {
panic!("Error generating keys {}", e)
panic!("Error generating keys, {}", e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra ,

@bookshelfdave
Copy link
Contributor

nice!
gif-keyboard-17946059514971576006

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@fnichol
Copy link
Collaborator

fnichol commented Apr 10, 2016

I rebased the comma removal proposed by Dave.

gif-keyboard-4830865314462957489

@fnichol
Copy link
Collaborator

fnichol commented Apr 10, 2016

@delivery approve

@chef-delivery chef-delivery merged commit b1577a8 into master Apr 10, 2016
@chef-delivery chef-delivery deleted the fix-failing-test branch April 10, 2016 23:34
@chef-delivery
Copy link
Contributor

Change: add009c3-e791-4aaf-96de-4aa2867fcde3 approved by: @fnichol

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.

4 participants