~suligap/snapstore-client:airgap-related-bugfixes

Last commit made on 2020-04-09
Get this branch:
git clone -b airgap-related-bugfixes https://git.launchpad.net/~suligap/snapstore-client
Only Przemysław Suliga can upload to this branch. If you are Przemysław Suliga please log in for upload directions.

Branch merges

Branch information

Name:
airgap-related-bugfixes
Repository:
lp:~suligap/snapstore-client

Recent commits

9c22a42... by Przemysław Suliga

Add missing package_type field to various API calls

A required package_type field was added to some API endpoints along the
way.

This fixes calls to:

- snapdevicegw/snaps/update
- snapdevicegw/revisions/create
- snapdevicegw/channelmaps/filter
- snapdevicegw/channelmaps/update

A better fix could be to include snapstore-schemas here for better testing.

63cd217... by Przemysław Suliga

Ignore missing snap revision uploads

Tarballs produced by `snap-store-proxy fetch-snaps` can contain
channel-maps with more revisions than snap files of those revisions.

Skip missing revisions if they're not included in the tarball while
trying to push snap files to an airgapped proxy.

TODO: This function is not tested and should probably be, but lots of
the code is repeated with the one from snap-store-proxy, so we might
want to fix that by deduplicating it into a library.

d2771f2... by Przemysław Suliga

UTF-8 encode assertions payload before pushing

Fixes a missing requests request body utf-8 encode.

6332c7e... by Tom Wardill

Add control and upload for an offline proxy

Merged from https://code.launchpad.net/~twom/snapstore-client/+git/snapstore-client/+merge/364917

00476d8... by Tom Wardill

Extract a tar file before upload

935fb22... by Tom Wardill

Rename upload to push

0d85442... by Tom Wardill

Add basic README instructions

dd76e1e... by Tom Wardill

Lint error

12c75da... by Tom Wardill

Use env password as default

737c252... by Tom Wardill

Add tests for upload functionality