github.com/prebid/prebid-server/v2@v2.18.0/adapters/lm_kiviads/lmkiviads_test.go (about)

     1  package lmkiviads
     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.BidderSmartHub,
    15  		config.Adapter{
    16  			Endpoint: "http://pbs.kiviads.live/?pid={{.SourceId}}&host={{.Host}}",
    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, "lmkiviadstest", bidder)
    27  }