Merge ~bowenfan/snapstore-client:SN2278-model_service_auth_and_cli_skeleton into snapstore-client:main
Status: | Merged |
---|---|
Approved by: | Bowen Fan |
Approved revision: | 02f92010a1ce54568500c909815f4e8be2be9044 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~bowenfan/snapstore-client:SN2278-model_service_auth_and_cli_skeleton |
Merge into: | snapstore-client:main |
Diff against target: |
532 lines (+339/-6) 12 files modified
conftest.py (+22/-2) store_admin/cli/model_service.py (+19/-0) store_admin/cli/runner.py (+9/-1) store_admin/logic/accounts.py (+17/-0) store_admin/logic/login.py (+15/-1) store_admin/logic/model_service.py (+45/-0) store_admin/logic/stores.py (+3/-1) store_admin/logic/tests/conftest.py (+59/-0) store_admin/logic/tests/test_login.py (+54/-0) store_admin/logic/tests/test_model_service.py (+74/-0) store_admin/logic/tests/test_stores.py (+3/-1) store_admin/webservices.py (+19/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deep Fowdar | Approve | ||
Review via email: mp+457208@code.launchpad.net |
Commit message
Add snapstore-client support for publishergw and model service
Upon first login to an airgapped proxy, snapstore-client will now
exchange the configured store admin macaroon for the offline publishergw
admin auth macaroon. The exchanged macaroon will be saved in the client
config and used automatically for subsequent publishergw requests.
Also add initial CLI for model service model creation and logic
webservices layers dependencies.
Description of the change
This MP is part 1 of 5 for adding model service support to snapstore-client.
1: Add publishergw support and a skeleton for model service
2: Add remaining create CLI functions
3: List
4: Update
5: Delete
MPs 2-5 will be raised shortly.
CLI commands have been implemented, as much as possible, to follow this command structure guidance doc: https:/
On-prem model service spec: https:/
Updating diff...
An updated diff will be available in a few minutes. Reload to see the changes.
Thanks for this! I've left one comment in the diff