github.com/prebid/prebid-server/v2@v2.18.0/adapters/iqx/iqxtest_test.go (about) 1 package iqx 2 3 import ( 4 "testing" 5 6 "github.com/prebid/prebid-server/v2/adapters/adapterstest" 7 "github.com/prebid/prebid-server/v2/config" 8 "github.com/prebid/prebid-server/v2/openrtb_ext" 9 "github.com/stretchr/testify/assert" 10 ) 11 12 func TestJsonSamples(t *testing.T) { 13 bidder, buildErr := Builder( 14 openrtb_ext.BidderIQX, 15 config.Adapter{ 16 Endpoint: "http://rtb.iqzone.com/?pid={{.SourceId}}&host={{.Host}}&pbs=1", 17 }, 18 config.Server{ 19 ExternalUrl: "http://hosturl.com", 20 GvlID: 1, 21 DataCenter: "2", 22 }, 23 ) 24 25 assert.NoError(t, buildErr) 26 adapterstest.RunJSONBidderTest(t, "iqzonextest", bidder) 27 }