-
Notifications
You must be signed in to change notification settings - Fork 753
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
Adapter Name Case Insensitive: EID Permissions #3187
Adapter Name Case Insensitive: EID Permissions #3187
Conversation
@@ -103,6 +103,7 @@ func NewAmpEndpoint( | |||
storedRespFetcher, | |||
hookExecutionPlanBuilder, | |||
tmaxAdjustments, | |||
openrtb_ext.NormalizeBidderName, |
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.
Sorry. I hate to add yet another parameter here, but I can't test it properly otherwise.
@@ -765,7 +769,7 @@ func (deps *endpointDeps) validateRequest(req *openrtb_ext.RequestWrapper, isAmp | |||
} | |||
} | |||
|
|||
var aliases map[string]string | |||
var requestAliases map[string]string |
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.
Making clear these are request aliases, not hardcoded aliases. Request alias names are still case sensitive.
knownBidders: map[string]openrtb_ext.BidderName{"a": openrtb_ext.BidderName("a")}, | ||
knownAliases: map[string]string{"c": "c"}, | ||
expectedError: errors.New(`unrecognized bidder "A"`), | ||
}, |
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.
Test case is no longer valid.
{ | ||
"id": "id1" | ||
} | ||
] |
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.
Doesn't really matter for these tests, but the eids structure was wrong.
Discovered there is still work needed after manually validating #3141