-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,5 +3,6 @@ | |
| /** Payload type emitted by {@link QueueSource}. */ | ||
| public enum QueuePayloadType { | ||
| DATA, | ||
| ERROR | ||
| ERROR, | ||
| FATAL | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |
| import dev.openfeature.contrib.providers.flagd.resolver.rpc.cache.CacheType; | ||
| import dev.openfeature.sdk.Value; | ||
| import java.io.IOException; | ||
| import java.util.List; | ||
| import java.util.Objects; | ||
| import org.testcontainers.shaded.com.fasterxml.jackson.databind.ObjectMapper; | ||
|
|
||
|
|
@@ -37,6 +38,8 @@ public static Object convert(String value, String type) throws ClassNotFoundExce | |
| } | ||
| case "CacheType": | ||
| return CacheType.valueOf(value.toUpperCase()).getValue(); | ||
| case "StringList": | ||
| return List.of(value); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
| case "Object": | ||
| return Value.objectToValue(new ObjectMapper().readValue(value, Object.class)); | ||
| } | ||
|
|
||
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