Expand the VoucherStore interface to support two-phase spending
Instead of immediately extracting passes, get them and later mark up the store with the outcome of the attempt to use them.
parent
935021b1
No related branches found
No related tags found
Showing
- src/_zkapauthorizer/_plugin.py 4 additions, 4 deletionssrc/_zkapauthorizer/_plugin.py
- src/_zkapauthorizer/model.py 182 additions, 3 deletionssrc/_zkapauthorizer/model.py
- src/_zkapauthorizer/schema.py 11 additions, 0 deletionssrc/_zkapauthorizer/schema.py
- src/_zkapauthorizer/spending.py 49 additions, 22 deletionssrc/_zkapauthorizer/spending.py
- src/_zkapauthorizer/tests/__init__.py 6 additions, 0 deletionssrc/_zkapauthorizer/tests/__init__.py
- src/_zkapauthorizer/tests/fixtures.py 46 additions, 0 deletionssrc/_zkapauthorizer/tests/fixtures.py
- src/_zkapauthorizer/tests/storage_common.py 2 additions, 2 deletionssrc/_zkapauthorizer/tests/storage_common.py
- src/_zkapauthorizer/tests/test_client_resource.py 3 additions, 1 deletionsrc/_zkapauthorizer/tests/test_client_resource.py
- src/_zkapauthorizer/tests/test_model.py 204 additions, 16 deletionssrc/_zkapauthorizer/tests/test_model.py
- src/_zkapauthorizer/tests/test_plugin.py 3 additions, 3 deletionssrc/_zkapauthorizer/tests/test_plugin.py
- src/_zkapauthorizer/tests/test_spending.py 130 additions, 31 deletionssrc/_zkapauthorizer/tests/test_spending.py
Loading
Please register or sign in to comment