-
Notifications
You must be signed in to change notification settings - Fork 0
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
134: add inventory service tests #87
base: main
Are you sure you want to change the base?
Conversation
…olo-host into 134-add-inventory-test-suite
use super::*; | ||
|
||
#[tokio::test] | ||
async fn test_handle_authenticated_inventory_update() -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename the tests to this pattern
should_update_inventory_when_authenticated()
should_{action}_when_{state}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with that pattern, but we don't have any agreement about this yet and it is not a standard across this repo. I'm going to defer this particular request to another PR based on a team decision, as whatever pattern we decide on should be applied to all tests in this repo (and probably have a reciprocal pr in the holo-host-private).
…ory service call; fix logs
* use macro * replace trait call fn with call macro
Closes #134
NB: In the name of smaller PRs, I've separated out the tests from the main inventory PR. To review the inventory work itself, checkout out pr #86 .