lp://staging/~kissiel/checkbox/validation-rework
- Get this branch:
- bzr branch lp://staging/~kissiel/checkbox/validation-rework
Branch merges
- Sylvain Pineau (community): Approve
-
Diff: 969 lines (+222/-242)12 files modifiedplainbox/plainbox/impl/unit/category.py (+6/-22)
plainbox/plainbox/impl/unit/concrete_validators.py (+57/-0)
plainbox/plainbox/impl/unit/exporter.py (+12/-22)
plainbox/plainbox/impl/unit/file.py (+2/-7)
plainbox/plainbox/impl/unit/job.py (+48/-72)
plainbox/plainbox/impl/unit/manifest.py (+11/-14)
plainbox/plainbox/impl/unit/packaging.py (+6/-6)
plainbox/plainbox/impl/unit/template.py (+8/-8)
plainbox/plainbox/impl/unit/testplan.py (+21/-32)
plainbox/plainbox/impl/unit/unit.py (+14/-47)
plainbox/plainbox/impl/unit/unit_with_id.py (+7/-12)
plainbox/plainbox/impl/unit/validators.py (+30/-0)
Branch information
Recent revisions
- 4514. By Maciej Kisielewski
-
plainbox:unit: make validation work on validator instances ONLY
Previously field_validators of any unit could be a IFieldValidator instance, a
IFieldValidator descendant, or a list containg any of the previous two.
This was unintuitive, and as measurements shown, subotimal.This patch replaces all that with instances.
It introduces concrete_validators module that contains commonly used
validators, so callees don't have to re-instantiate them.Signed-off-by: Maciej Kisielewski <email address hidden>
- 4513. By Maciej Kisielewski
-
plainbox:
unit:manifest apply MemberOf validator Signed-off-by: Maciej Kisielewski <email address hidden>
- 4512. By Maciej Kisielewski
-
plainbox:unit:file: use MemberOfFieldVa
lidator in File validator Signed-off-by: Maciej Kisielewski <email address hidden>
- 4511. By Maciej Kisielewski
-
plainbox:unit:job: use MemberOf validator in job validation
Signed-off-by: Maciej Kisielewski <email address hidden>
- 4510. By Maciej Kisielewski
-
plainbox:
unit:validators : add MemberOfFieldVa lidator That should be used to check whether value is known (like a plugin type)
Signed-off-by: Maciej Kisielewski <email address hidden>
- 4508. By Sylvain Pineau
-
"automatic merge of lp:~sylvain-pineau/checkbox/mute_job_ouput_flag/ by tarmac [r=pierre-equoy][bug=1626031][author=
sylvain- pineau] " - 4507. By Pierre Equoy
-
"automatic merge of lp:~pierre-equoy/checkbox/1560319-packaging-meta-data/ by tarmac [r=sylvain-pineau][bug=1560319][author=
pierre- equoy]" - 4506. By Chris Wayne
-
"automatic merge of lp:~cwayne18/checkbox/snappy-restart-fix/ by tarmac [r=sylvain-
pineau] [bug=][ author= cwayne18] " - 4505. By Pierre Equoy
-
"automatic merge of lp:~pierre-equoy/checkbox/1625884-remove-job-description-if-job-automatically-skipped/ by tarmac [r=sylvain-pineau][bug=1625884][author=
pierre- equoy]"
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/checkbox