IronCoreLabs / ironhide

Tool to easily encrypt and decrypt files to users and groups. Similar to GPG, but usable at scale.
GNU Affero General Public License v3.0
44 stars 6 forks source link

Test suite #66

Open skeet70 opened 1 year ago

skeet70 commented 1 year ago

Create a test suite that replicates the one we've lost.

We could accomplish this with secrets containing keys generated for a test user that would allow for full functionality of a user to test inputs and outputs against the IronCore service. This would probably the most useful set of tests as far as confirming end user functionality, but they'd be integration tests.

Another option would be to do what the original tests did and mock responses from the IronCore service, unit testing that expected commands function, send calls to the expected REST endpoints, and display the expected results given the canned responses. This may be harder given current Rust tooling.

https://bitheap.org/cram/ https://github.com/assert-rs/trycmd https://crates.io/crates/snapbox https://crates.io/crates/assert_cmd https://crates.io/crates/assert_fs

BobWall23 commented 1 year ago

Timebox to 5 - effort will depend on initial direction (mocking or integration test approach)