-
Notifications
You must be signed in to change notification settings - Fork 53
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
chore: Add hook support to contract tests #257
Conversation
This pull request has been linked to Shortcut Story #237269: Add evaluation-hook capability to contract tests. |
bdeea90
to
2bf50de
Compare
2bf50de
to
7a62bac
Compare
contract-tests/hook.rb
Outdated
payload = { | ||
evaluationHookContext: { | ||
flagKey: hook_context.key, | ||
context: @context_filter.filter(hook_context.context), |
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.
Why the filtered context?
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.
The SDK has no other way of converting a context into a hash other than attribute redaction. We haven't needed it yet, and unless the tests require some special handling of private attributes (which seems odd), I figured I could get away with this.
(latest updates to the contract test PR) |
Thanks. Updated! |
No description provided.