For the autopkgtest in TODO #2 I'm considering something simple like: Preparing a corresponding (static) JSON response file and serving it via a simple web server:
$ python3 -m http.server Then calling hwctl on that localhost mock server, querying a relevant endpoint and comparing the hwctl output to the static JSON repsonse. $ HW_API_URL="localhost:8000" hwctl -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2072561 Title: [MIR] rust-hwlib To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/2072561/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs