Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
c61727fb
Commit
c61727fb
authored
5 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Support other redeemers in tahoe_configs Hypothesis strategy
parent
fd71f989
No related branches found
Branches containing commit
No related tags found
1 merge request
!59
Unblinded token web interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/tests/strategies.py
+31
-12
31 additions, 12 deletions
src/_zkapauthorizer/tests/strategies.py
with
31 additions
and
12 deletions
src/_zkapauthorizer/tests/strategies.py
+
31
−
12
View file @
c61727fb
...
...
@@ -133,16 +133,6 @@ def minimal_tahoe_configs(storage_client_plugins=None):
)
def
tahoe_configs
():
"""
Build complete Tahoe-LAFS configurations including the zkapauthorizer
client plugin section.
"""
return
minimal_tahoe_configs
({
u
"
privatestorageio-zkapauthz-v1
"
:
client_configurations
(),
})
def
node_nicknames
():
"""
Builds Tahoe-LAFS node nicknames.
...
...
@@ -174,12 +164,41 @@ def server_configurations(signing_key_path):
})
def
client_configurations
():
def
client_
ristrettoredeemer_
configurations
():
"""
Build configuration values for the client-side plugin.
Build
Ristretto-using
configuration values for the client-side plugin.
"""
return
just
({
u
"
ristretto-issuer-root-url
"
:
u
"
https://issuer.example.invalid/
"
,
u
"
redeemer
"
:
u
"
ristretto
"
,
})
def
client_dummyredeemer_configurations
():
"""
Build DummyRedeemer-using configuration values for the client-side plugin.
"""
return
just
({
u
"
redeemer
"
:
u
"
dummy
"
,
})
def
client_nonredeemer_configurations
():
"""
Build NonRedeemer-using configuration values for the client-side plugin.
"""
return
just
({
u
"
redeemer
"
:
u
"
non
"
,
})
def
tahoe_configs
(
zkapauthz_v1_configuration
=
client_dummyredeemer_configurations
()):
"""
Build complete Tahoe-LAFS configurations including the zkapauthorizer
client plugin section.
"""
return
minimal_tahoe_configs
({
u
"
privatestorageio-zkapauthz-v1
"
:
zkapauthz_v1_configuration
,
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment