github.com/prebid/prebid-server@v0.275.0/adapters/ownadx/ownadx_test.go (about) 1 package ownadx 2 3 import ( 4 "github.com/prebid/prebid-server/adapters/adapterstest" 5 "github.com/prebid/prebid-server/config" 6 "github.com/prebid/prebid-server/openrtb_ext" 7 "github.com/stretchr/testify/assert" 8 "testing" 9 ) 10 11 func TestJsonSamples(t *testing.T) { 12 bidder, buildErr := Builder(openrtb_ext.BidderOwnAdx, config.Adapter{ 13 Endpoint: "https://pbs.prebid-ownadx.com/bidder/bid/{{.AccountID}}/{{.ZoneID}}?token={{.SourceId}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) 14 15 assert.NoError(t, buildErr) 16 adapterstest.RunJSONBidderTest(t, "ownadxtest", bidder) 17 }