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

fix(owner-tool): use the new API to export ovs #675

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

runcom
Copy link
Contributor

@runcom runcom commented Sep 30, 2024

This change allows the use of the new REST API to export either a single ov or multiple (tar-ed up).
Tested with the following:

$ ./target/debug/fdo-owner-tool export-manufacturer-vouchers --device-guid ba934a85-d55e-4930-0595-faeaa6090ddf http://localhost:8080
$ ./target/debug/fdo-owner-tool export-manufacturer-vouchers --device-guid ba934a85-d55e-4930-0595-faeaa6090ddf --path /home/amurdaca http://localhost:8080
$ ./target/debug/fdo-owner-tool export-manufacturer-vouchers http://localhost:8080 

@miabbott
Copy link
Contributor

I'd love to see some unit tests for this. We lacked unit tests in #673, too. We can do better! 💪

@runcom
Copy link
Contributor Author

runcom commented Sep 30, 2024

I'd love to see some unit tests for this. We lacked unit tests in #673, too. We can do better! 💪

these functionalities are (to me) better covered with functional tests (which both this and #673 already have) - the remaining part is rust's warp wrapping which I'm not sure we need to cover (as we already run the tool, effectively excercising the paths here)

@runcom runcom force-pushed the owner-tool-export branch from 5d35b66 to 50f5c22 Compare October 3, 2024 12:14
test/fdo-postgres.sh Dismissed Show dismissed Hide dismissed
test/fmf/tests/onboarding/run-onboarding.sh Dismissed Show dismissed Hide dismissed
@runcom runcom force-pushed the owner-tool-export branch 2 times, most recently from 7b32e9e to 7202ee7 Compare October 3, 2024 13:22
@runcom
Copy link
Contributor Author

runcom commented Oct 3, 2024

ready for review now!

This change allows the use of the new REST API to export either a single
ov or multiple (tar-ed up).

Signed-off-by: Antonio Murdaca <[email protected]>
@runcom runcom force-pushed the owner-tool-export branch from 7202ee7 to 0c6b2c5 Compare October 3, 2024 14:07
@runcom runcom merged commit b599aec into fdo-rs:main Oct 4, 2024
24 checks passed
@runcom runcom deleted the owner-tool-export branch October 4, 2024 10:30
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.

3 participants