-
Notifications
You must be signed in to change notification settings - Fork 62
fix(flagd): no retry for certain error codes, implement test steps #1624
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
base: main
Are you sure you want to change the base?
fix(flagd): no retry for certain error codes, implement test steps #1624
Conversation
...lagd/src/test/java/dev/openfeature/contrib/providers/flagd/e2e/steps/config/ConfigSteps.java
Outdated
Show resolved
Hide resolved
| .statusCode(200); | ||
| } | ||
|
|
||
| @Then("the client is in {} state") |
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.
we should do the renaming of this step as described here open-feature/flagd-testbed#306 before merging
| case "CacheType": | ||
| return CacheType.valueOf(value.toUpperCase()).getValue(); | ||
| case "StringList": | ||
| return List.of(value); |
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.
Not sure about the structure of the step, but i would assume, that there can be multiple values within the string, and that we maybe should split and trim it, before creating a list.
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.
Yes, i also think so, but I wasn't sure of what the separator to use here. Have we agreed on one?
| * Defaults to empty list | ||
| */ | ||
| @Builder.Default | ||
| private List<String> nonRetryableStatusCodes = new ArrayList<>(); |
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.
As within the documentation the option has a dedicated name, we should keep to the specification, so this property has the same name in all the providers.
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.
Yup, makes sense.
6f89ff0 to
057751b
Compare
Signed-off-by: lea konvalinka <lea.konvalinka@dynatrace.com>
Signed-off-by: lea konvalinka <lea.konvalinka@dynatrace.com>
f7f1d97 to
f0a1db2
Compare
This PR
Related Issues
open-feature/go-sdk-contrib#756
Discussion on this issue is still ongoing
Notes
Follow-up Tasks
How to test