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

Set TLS verification according to VAULT_SKIP_VERIFY #32

Merged
merged 4 commits into from Apr 28, 2022

Conversation

mrioqueiroz
Copy link
Contributor

@mrioqueiroz mrioqueiroz commented Apr 26, 2022

Hi,

This is an attempt to fix the issue #31.

The difference here (when compared to strconv.ParseBool) is that in the original Vault implementation any other value returns an error, and here I'm keeping the default as true (at least for now) to avoid modifying the function's signature.

I added serial_test to dev-dependencies to make the tests related to this feature run sequentially, and avoid one test to overwrite the VAULT_SKIP_VERIFY value previously set by the other.

Please let me know if there is anything I need to fix.

@jmgilman
Copy link
Owner

jmgilman commented Apr 28, 2022

Thanks for the PR. Can you address the clippy and format errors? Also, I just merged #30 which adds a test file for testing client code (tests/client.rs). Can you please move your tests to that file?

@mrioqueiroz
Copy link
Contributor Author

Sure. I will do that today.

@jmgilman jmgilman merged commit c7a2edd into jmgilman:master Apr 28, 2022
@jmgilman
Copy link
Owner

Thanks for the PR!

@mrioqueiroz mrioqueiroz deleted the feature/parseVaultSkipVerify branch April 28, 2022 23: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.

None yet

2 participants