-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [#100] Add ConfigurationStep for Service model #99
Conversation
7541613
to
62cb25c
Compare
85b7850
to
fb28f8a
Compare
@swrichards I think this is ready for a first review, though we'll probably keep it in draft until it's functional in a PR in another project (Open Forms for example)? |
# TODO these should probably be defined in simple_certmanager and referred to? | ||
# client_certificate: FilePath = DjangoModelRef(Service, "client_certificate") | ||
# server_certificate: FilePath = DjangoModelRef(Service, "server_certificate") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm checking with Sjoerd if Dimpact uses these currently, if not this might be something for later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sjoerd told me that Dimpact doesn't use this currently, so I'm leaving this out of scope for now
59b2602
to
5af30fd
Compare
5af30fd
to
7f0c147
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see more tests with a minimal YAML entry and one with all possible properties configured so that it's obvious when the minimal format is extended in the future, as that is a future breaking change that devops needs to act on
6bb68b2
to
f6cdb10
Compare
@sergei-maertens added tests for this and also added |
adef24a
to
f81f32d
Compare
e749ac4
to
79b917c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few small things from my side.
bcfa9f2
to
d260acb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨
which can load any number of Services, configured in a YAML file
* use lowercase for root level keys in YAML files (e.g. `zgw_consumers_config_enable`) * use `identifier` instead of `slug` in config files * add `setup_config_` prefix to test files * remove `is_configured` and `validate_result`
and add a test for idempotency
d260acb
to
2e4516a
Compare
Closes #100
django-setup-configuration
as an optional dependency viapip install zgw-consumers[setup-configuration]
ServiceConfigurationStep
that can be reused in projects that use zgw-consumers