package insticator

import (
	"testing"

	"github.com/prebid/prebid-server/v4/adapters/adapterstest"
	"github.com/prebid/prebid-server/v4/config"
	"github.com/prebid/prebid-server/v4/openrtb_ext"
)

func TestJsonSamples(t *testing.T) {
	bidder, buildErr := Builder(openrtb_ext.BidderInsticator, config.Adapter{
		Endpoint:         "https://insticator.example.com/v1/pbs",
		ExtraAdapterInfo: `{"app_endpoint": "https://insticator-app.example.com/v1/pbs"}`,
	},
		config.Server{ExternalUrl: "https://insticator.example.com/v1/pbs", GvlID: 1, DataCenter: "2"})

	if buildErr != nil {
		t.Fatalf("Builder returned unexpected error %v", buildErr)
	}

	adapterstest.RunJSONBidderTest(t, "insticatortest", bidder)
}
