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
de981cc3
Commit
de981cc3
authored
3 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
some comment improvements
parent
dc21970a
No related branches found
Branches containing commit
No related tags found
1 merge request
!255
Add configuration for lease maintenance behavior
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/tests/test_plugin.py
+4
-5
4 additions, 5 deletions
src/_zkapauthorizer/tests/test_plugin.py
with
4 additions
and
5 deletions
src/_zkapauthorizer/tests/test_plugin.py
+
4
−
5
View file @
de981cc3
...
...
@@ -607,17 +607,16 @@ class LeaseMaintenanceServiceTests(TestCase):
# First build the simple lease maintenance configuration object that
# represents the example to test.
lease_maintenance_configurations
().
flatmap
(
# Then generate build a function that will get us a Tahoe
# configuration that includes at least that lease maintenance
# configuration.
# Then build a function that will get us a Tahoe configuration
# that includes at least that lease maintenance configuration.
lambda
lease_maint_config
:
tahoe_configs
(
zkapauthz_v1_configuration
=
client_lease_maintenance_configurations
(
just
(
lease_maint_config
),
),
).
map
(
# Then bundle up both pieces to pass to the function. By
# preserving the
simple
lease maintenance configuration
and
# making it available to the test, the test logic is much
# preserving the lease maintenance configuration
model object
#
and
making it available to the test, the test logic is much
# simplified (eg, we don't have to read values out of the
# Tahoe configuration to figure out what example we're working
# on).
...
...
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