~suligap/snapstore-client:store-export

Last commit made on 2022-03-31
Get this branch:
git clone -b store-export 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:
store-export
Repository:
lp:~suligap/snapstore-client

Recent commits

63b5713... by Przemysław Suliga

Add assertions.get_snap_revision_stream()

This is a prerequisite for fetching snap revisions.

55d4ddd... by Przemysław Suliga

Bump responses dev dependency 0.14.0 -> 0.20.0

0.15.0 added a useful responses.matchers.header_matcher()

9202e7b... by Przemysław Suliga

Raise StoreRequestError from assertions.get()

Instead of returning None when there was a requests error.

98d2a82... by Przemysław Suliga

Add max_format param to assertions.get()

Default is -1 which means latest.

102e4b2... by Wouter van Bommel

Add support to register an proxy

Registering a proxy when it is managed by the charm, has to be done via an alternative way. This is implemented by the register function added to the store-admin.

The optional parameter --offline is used to download the store assertion, which is needed if a proxy is run an offline (not internet connected) mode.

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

d1bc0a5... by Wouter van Bommel

Updated test case and added session validation

Due to an earlier change the validation of every call on a requests
session object got lost. So this is now added.

Updated a test call to confirm that correct parameters are passed on.

406864c... by Wouter van Bommel

Minor tweaks based on feedback

3a9019a... by Wouter van Bommel

Redo request exception handling

Based on review feedback, make the request handling more generic. So
removed all handling to a central place.

ae153f4... by Wouter van Bommel

More tweaks after review feedback

Also updated the pytest config to be in line with other projects and
updated the dependencies.

ee3859e... by Wouter van Bommel

Update after feedback

Updated documentation, use a context manager around file writing and
simplify the handling of requests errors