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

Test suite #66

Open
skeet70 opened this issue Nov 1, 2022 · 1 comment
Open

Test suite #66

skeet70 opened this issue Nov 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@skeet70
Copy link
Member

skeet70 commented Nov 1, 2022

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

@skeet70 skeet70 added the enhancement New feature or request label Nov 1, 2022
@BobWall23
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants