Align agentless mock with the UFC CDN response#7315
Merged
Conversation
Contributor
|
|
|
leoromanovsky
marked this pull request as ready for review
July 15, 2026 21:52
leoromanovsky
enabled auto-merge (squash)
July 15, 2026 21:56
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7dfd17502d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
nccatoni
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The staging UFC CDN does not return a raw UFC document. Its managed server endpoint is:
The successful body is a JSON:API envelope with
data.typeset touniversal-flag-configurationand the existing UFC document underdata.attributes:{"data":{"id":"1","type":"universal-flag-configuration","attributes":{"createdAt":"...","environment":{"name":"Staging"},"flags":{}}}}The agentless mock needs to reproduce that wire contract. Otherwise SDK implementations could pass system-tests against a response shape that the managed CDN never emits. This is the matching fixture change for dd-trace-java#11892.
Changes
/api/v2/feature-flagging/config/rules-based/serverpath.DD-API-KEYheader.Decisions
tests/parametric/test_ffe/flags-v1.jsonas raw UFC because Remote Configuration tests consume it directly; only the agentless HTTP response is wrapped.data.idas opaque while requiringdata.type == universal-flag-configuration.Validation
System-tests fixture proof:
Matching local Java proof for dd-trace-java#11892:
The Java tests cover the exact managed CDN URL,
DD-API-KEY, JSON:API unwrapping, type validation, malformed-envelope rejection, last-known-good behavior, and the explicitly configured raw-UFC compatibility path.