Closed nhey closed 3 years ago
I agree that having the Option<>
better matches the way the API describes usage. Are you just setting the token when you create the client and then calling unwrap? I don't think this needs a separate test case since you'd effectively just be testing Vault at that point (testing the token is sent in the request header is already tested numerous times by the other tests).
Yes, that is exactly what I am doing. In that case I will leave the PR as it is for your review.
in order to unwrap said token without authenticating first.
From the
sys/wrapping/unwrap
api docs (https://www.vaultproject.io/api-docs/system/wrapping-unwrap#wrapping-unwrap):I have tested that it works. Should I add a test case to the cargo tests?