Skip to content

Commit

Permalink
Add new test cases for Blue bidder parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelfabelopencircle committed Dec 4, 2024
1 parent d32141c commit 072d686
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adapters/blue/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/prebid/prebid-server/v3/openrtb_ext"
)

// This file actually intends to test static/bidder-params/blue.json TODO: MUST BE CREATED
func TestValidParams(t *testing.T) {
validator, err := openrtb_ext.NewBidderParamsValidator("../../static/bidder-params")
if err != nil {
Expand Down Expand Up @@ -37,6 +36,7 @@ func TestInvalidParams(t *testing.T) {
var validParams = []string{
`{"publisherId":"1234"}`,
`{"publisherId":"1234", "placementId":"12345"}`,
`{"publisherId":"", "placementId":""}`,
}

var invalidParams = []string{
Expand All @@ -47,4 +47,5 @@ var invalidParams = []string{
`4.2`,
`[]`,
`{}`,
`{"placementId":"12345"}`,
}

0 comments on commit 072d686

Please sign in to comment.