-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make the primary properties of the policies verifyable #756
Comments
Can you please provide some feedback? |
I appreciate the patience you have shown. COVID-19 has meant some refocus of my personal priorities away from OSS at this time. The underlying point is a good one. The configuration process for Polly is expected to change for the next major version (which would affect the specifics you proposed). We will consider whether there are any ways to address the goal in that version. |
Health is the number one priority nowadays, so no worries. :) I could not found anything about v8's new configuration process under the v8 pull request. Where can I find any information about that? |
This in the roadmap is an early sketch for the possible v8 syntax. This is likely to lead to a configuration class encapsulating all the configuration properties for a given policy type (eg |
I'd also like to see this; for the purpose of unit testing that my initialization of Polly was done correctly and the right configurations for my policy was set. |
Hi @reisenberger, is there any progress regarding this feature suggestion? |
@reisenberger is there any news regarding issue? |
There is no progress regarding this issue. |
@martincostello Shall I close it? Or does it make any sense to wait even further? |
Looking at the comments from Dylan above, it sounds like this will be addressed in v8. However, v8 development is currently on hiatus so I can't say when it would specifically be addressed. |
Any word on v8 progress? |
V8 alpha is released where the validation is addressed. Check the new package: And samples: |
Please make it possible to verify policies' main properties.
Let's suppose I want to create a combined policy where I want to put together a Retry, Circuit Breaker and Timeout policies to surround my HttpClients.
The configuration class:
The initialization of the policy registry:
I want to be able to catch these sort of issues:
Current solution:
If I want to test for example the Timeout policy's Timeout then I can do something like this:
Helpers:
As you can see I highly rely on the actual implementation in order to be able to verify it.
To make thing worst, I can do this sort of sorcery only for the following properties:
So I can't make sure that the circuit break policy was set up correctly.
Proposals:
The text was updated successfully, but these errors were encountered: