diff --git a/src/main/java/org/prebid/server/bidder/rhythmone/RhythmoneBidder.java b/src/main/java/org/prebid/server/bidder/rhythmone/RhythmoneBidder.java deleted file mode 100644 index 7f4f642c5c3..00000000000 --- a/src/main/java/org/prebid/server/bidder/rhythmone/RhythmoneBidder.java +++ /dev/null @@ -1,146 +0,0 @@ -package org.prebid.server.bidder.rhythmone; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.node.ObjectNode; -import com.iab.openrtb.request.BidRequest; -import com.iab.openrtb.request.Imp; -import com.iab.openrtb.response.BidResponse; -import com.iab.openrtb.response.SeatBid; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.prebid.server.bidder.Bidder; -import org.prebid.server.bidder.model.BidderBid; -import org.prebid.server.bidder.model.BidderCall; -import org.prebid.server.bidder.model.BidderError; -import org.prebid.server.bidder.model.HttpRequest; -import org.prebid.server.bidder.model.Result; -import org.prebid.server.exception.PreBidException; -import org.prebid.server.json.DecodeException; -import org.prebid.server.json.JacksonMapper; -import org.prebid.server.proto.openrtb.ext.ExtPrebid; -import org.prebid.server.proto.openrtb.ext.request.rhythmone.ExtImpRhythmone; -import org.prebid.server.proto.openrtb.ext.response.BidType; -import org.prebid.server.util.BidderUtil; -import org.prebid.server.util.HttpUtil; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Objects; - -public class RhythmoneBidder implements Bidder { - - private static final TypeReference> RHYTHMONE_EXT_TYPE_REFERENCE = - new TypeReference<>() { - }; - - private final String endpointUrl; - private final JacksonMapper mapper; - - public RhythmoneBidder(String endpointUrl, JacksonMapper mapper) { - this.endpointUrl = HttpUtil.validateUrl(Objects.requireNonNull(endpointUrl)); - this.mapper = Objects.requireNonNull(mapper); - } - - @Override - public Result>> makeHttpRequests(BidRequest bidRequest) { - final List errors = new ArrayList<>(); - - String composedUrl = null; - final List modifiedImps = new ArrayList<>(); - for (Imp imp : bidRequest.getImp()) { - try { - final ExtImpRhythmone parsedImpExt = parseAndValidateImpExt(imp); - - if (composedUrl == null) { - composedUrl = "%s/%s/0/%s?z=%s&s2s=true".formatted( - endpointUrl, - parsedImpExt.getPlacementId(), - parsedImpExt.getPath(), - parsedImpExt.getZone()); - } - final ExtImpRhythmone modifiedImpExt = parsedImpExt.toBuilder().s2s(true).build(); - final Imp modifiedImp = imp.toBuilder().ext(impExtToObjectNode(modifiedImpExt)).build(); - modifiedImps.add(modifiedImp); - } catch (PreBidException e) { - errors.add(BidderError.badInput(e.getMessage())); - } - } - - if (composedUrl == null) { - return Result.of(Collections.emptyList(), errors); - } - - final BidRequest outgoingRequest = bidRequest.toBuilder().imp(modifiedImps).build(); - - return Result.of(Collections.singletonList(BidderUtil.defaultRequest(outgoingRequest, composedUrl, mapper)), - errors); - } - - private ExtImpRhythmone parseAndValidateImpExt(Imp imp) { - final ExtImpRhythmone impExt; - try { - impExt = mapper.mapper().convertValue(imp.getExt(), RHYTHMONE_EXT_TYPE_REFERENCE).getBidder(); - } catch (IllegalArgumentException e) { - throw new PreBidException( - "ext data not provided in imp id=%s. Abort all Request".formatted(imp.getId()), e); - } - - if (StringUtils.isBlank(impExt.getPlacementId()) || StringUtils.isBlank(impExt.getZone()) - || StringUtils.isBlank(impExt.getPath())) { - throw new PreBidException( - "placementId | zone | path not provided in imp id=%s. Abort all Request".formatted(imp.getId())); - } - return impExt; - } - - private ObjectNode impExtToObjectNode(ExtImpRhythmone extImpRhythmone) { - final ObjectNode impExt; - try { - impExt = mapper.mapper().valueToTree(ExtPrebid.of(null, extImpRhythmone)); - } catch (IllegalArgumentException e) { - throw new PreBidException("Failed to create imp.ext with error: " + e.getMessage()); - } - return impExt; - } - - @Override - public Result> makeBids(BidderCall httpCall, BidRequest bidRequest) { - try { - final BidResponse bidResponse = mapper.decodeValue(httpCall.getResponse().getBody(), BidResponse.class); - return Result.withValues(extractBids(httpCall.getRequest().getPayload(), bidResponse)); - } catch (DecodeException | PreBidException e) { - return Result.withError(BidderError.badServerResponse(e.getMessage())); - } - } - - private static List extractBids(BidRequest bidRequest, BidResponse bidResponse) { - return bidResponse == null || CollectionUtils.isEmpty(bidResponse.getSeatbid()) - ? Collections.emptyList() - : bidsFromResponse(bidRequest, bidResponse); - } - - private static List bidsFromResponse(BidRequest bidRequest, BidResponse bidResponse) { - return bidResponse.getSeatbid().stream() - .filter(Objects::nonNull) - .map(SeatBid::getBid) - .filter(Objects::nonNull) - .flatMap(Collection::stream) - .map(bid -> BidderBid.of(bid, getBidType(bid.getImpid(), bidRequest.getImp()), bidResponse.getCur())) - .toList(); - } - - private static BidType getBidType(String impId, List imps) { - for (Imp imp : imps) { - if (imp.getId().equals(impId)) { - if (imp.getBanner() != null) { - return BidType.banner; - } else if (imp.getVideo() != null) { - return BidType.video; - } - } - } - return BidType.banner; - } -} diff --git a/src/main/java/org/prebid/server/proto/openrtb/ext/request/rhythmone/ExtImpRhythmone.java b/src/main/java/org/prebid/server/proto/openrtb/ext/request/rhythmone/ExtImpRhythmone.java deleted file mode 100644 index bc8b76e5aa9..00000000000 --- a/src/main/java/org/prebid/server/proto/openrtb/ext/request/rhythmone/ExtImpRhythmone.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.prebid.server.proto.openrtb.ext.request.rhythmone; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Value; - -/** - * Defines the contract for bidrequest.imp[i].ext.rhythmone - */ -@Builder(toBuilder = true) -@Value -public class ExtImpRhythmone { - - @JsonProperty("placementId") - String placementId; - - String zone; - - String path; - - @JsonProperty("S2S") - Boolean s2s; -} diff --git a/src/main/java/org/prebid/server/spring/config/bidder/RhythmoneConfiguration.java b/src/main/java/org/prebid/server/spring/config/bidder/RhythmoneConfiguration.java deleted file mode 100644 index d151d0e5cdb..00000000000 --- a/src/main/java/org/prebid/server/spring/config/bidder/RhythmoneConfiguration.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.prebid.server.spring.config.bidder; - -import org.prebid.server.bidder.BidderDeps; -import org.prebid.server.bidder.rhythmone.RhythmoneBidder; -import org.prebid.server.json.JacksonMapper; -import org.prebid.server.spring.config.bidder.model.BidderConfigurationProperties; -import org.prebid.server.spring.config.bidder.util.BidderDepsAssembler; -import org.prebid.server.spring.config.bidder.util.UsersyncerCreator; -import org.prebid.server.spring.env.YamlPropertySourceFactory; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.PropertySource; - -import javax.validation.constraints.NotBlank; - -@Configuration -@PropertySource(value = "classpath:/bidder-config/rhythmone.yaml", factory = YamlPropertySourceFactory.class) -public class RhythmoneConfiguration { - - private static final String BIDDER_NAME = "rhythmone"; - - @Bean("rhythmoneConfigurationProperties") - @ConfigurationProperties("adapters.rhythmone") - BidderConfigurationProperties configurationProperties() { - return new BidderConfigurationProperties(); - } - - @Bean - BidderDeps rhythmoneBidderDeps(BidderConfigurationProperties rhythmoneConfigurationProperties, - @NotBlank @Value("${external-url}") String externalUrl, - JacksonMapper mapper) { - - return BidderDepsAssembler.forBidder(BIDDER_NAME) - .withConfig(rhythmoneConfigurationProperties) - .usersyncerCreator(UsersyncerCreator.create(externalUrl)) - .bidderCreator(config -> new RhythmoneBidder(config.getEndpoint(), mapper)) - .assemble(); - } -} diff --git a/src/main/resources/bidder-config/rhythmone.yaml b/src/main/resources/bidder-config/rhythmone.yaml deleted file mode 100644 index 2b61ef5f544..00000000000 --- a/src/main/resources/bidder-config/rhythmone.yaml +++ /dev/null @@ -1,19 +0,0 @@ -adapters: - rhythmone: - endpoint: http://tag.1rx.io/rmp - meta-info: - maintainer-email: support@rhythmone.com - app-media-types: - - banner - - video - site-media-types: - - banner - - video - supported-vendors: - vendor-id: 36 - usersync: - cookie-family-name: rhythmone - redirect: - url: https://sync.1rx.io/usersync2/rmphb?gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&redir={{redirect_url}} - support-cors: false - uid-macro: '[RX_UUID]' diff --git a/src/main/resources/static/bidder-params/rhythmone.json b/src/main/resources/static/bidder-params/rhythmone.json deleted file mode 100644 index 5e4655ce8a7..00000000000 --- a/src/main/resources/static/bidder-params/rhythmone.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Rhythmone Adapter Params", - "description": "A schema which validates params accepted by the Rhythmone adapter", - "type": "object", - "properties": { - "placementId": { - "type": "string", - "description": "An ID which is used to frame Rhythmone ad tag", - "minLength": 1 - }, - "path": { - "type": "string", - "description": "An ID which is used to frame Rhythmone ad tag", - "minLength": 1 - }, - "zone": { - "type": "string", - "description": "An ID which is used to frame Rhythmone ad tag", - "minLength": 1 - } - }, - "required": [ - "placementId", - "path", - "zone" - ] -} \ No newline at end of file diff --git a/src/test/java/org/prebid/server/bidder/rhythmone/RhythmoneBidderTest.java b/src/test/java/org/prebid/server/bidder/rhythmone/RhythmoneBidderTest.java deleted file mode 100644 index e2772267e0e..00000000000 --- a/src/test/java/org/prebid/server/bidder/rhythmone/RhythmoneBidderTest.java +++ /dev/null @@ -1,263 +0,0 @@ -package org.prebid.server.bidder.rhythmone; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.iab.openrtb.request.Banner; -import com.iab.openrtb.request.BidRequest; -import com.iab.openrtb.request.Imp; -import com.iab.openrtb.request.Video; -import com.iab.openrtb.response.Bid; -import com.iab.openrtb.response.BidResponse; -import com.iab.openrtb.response.SeatBid; -import io.vertx.core.http.HttpMethod; -import org.junit.Test; -import org.prebid.server.VertxTest; -import org.prebid.server.bidder.model.BidderBid; -import org.prebid.server.bidder.model.BidderCall; -import org.prebid.server.bidder.model.BidderError; -import org.prebid.server.bidder.model.HttpRequest; -import org.prebid.server.bidder.model.HttpResponse; -import org.prebid.server.bidder.model.Result; -import org.prebid.server.proto.openrtb.ext.ExtPrebid; -import org.prebid.server.proto.openrtb.ext.request.rhythmone.ExtImpRhythmone; -import org.prebid.server.util.HttpUtil; - -import java.util.List; -import java.util.Map; -import java.util.function.Function; - -import static java.util.Collections.singletonList; -import static java.util.function.Function.identity; -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; -import static org.assertj.core.api.Assertions.tuple; -import static org.prebid.server.proto.openrtb.ext.response.BidType.banner; -import static org.prebid.server.proto.openrtb.ext.response.BidType.video; - -public class RhythmoneBidderTest extends VertxTest { - - private static final String ENDPOINT_URL = "http://test.domain.com/rmp"; - - private final RhythmoneBidder target = new RhythmoneBidder(ENDPOINT_URL, jacksonMapper); - - @Test - public void creationShouldFailOnInvalidEndpointUrl() { - assertThatIllegalArgumentException().isThrownBy(() -> new RhythmoneBidder("invalid_ulr", jacksonMapper)); - } - - @Test - public void makeHttpRequestsShouldReturnErrorIfImpExtCouldNotBeParsed() { - // given - final BidRequest bidRequest = givenBidRequest( - impBuilder -> impBuilder - .id("123") - .ext(mapper.valueToTree(ExtPrebid.of(null, mapper.createArrayNode())))); - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getErrors()).hasSize(1) - .containsOnly(BidderError.badInput("ext data not provided in imp id=123. Abort all Request")); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeHttpRequestsShouldReturnErrorIfImpExtBidderCouldNotBeParsed() { - // given - final BidRequest bidRequest = givenBidRequest( - impBuilder -> impBuilder - .id("123") - .ext(mapper.valueToTree(ExtPrebid.of(null, - mapper.valueToTree(ExtImpRhythmone.builder().build()))))); - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getErrors()).hasSize(1) - .containsOnly(BidderError.badInput( - "placementId | zone | path not provided in imp id=123. Abort all Request")); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeHttpRequestsShouldSetImpExtFieldS2STrue() { - // given - final BidRequest bidRequest = givenBidRequest(identity()); - - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getValue()).hasSize(1) - .extracting(bidRequestHttpRequest -> - mapper.readValue(bidRequestHttpRequest.getBody(), BidRequest.class)) - .flatExtracting(BidRequest::getImp) - .extracting(Imp::getExt) - .extracting(node -> node.get("bidder")) - .extracting(bidder -> mapper.convertValue(bidder, ExtImpRhythmone.class)) - .extracting(ExtImpRhythmone::getS2s) - .containsOnly(true); - } - - @Test - public void makeHttpRequestsShouldFillMethodAndUrlAndExpectedHeaders() { - // given - final BidRequest bidRequest = givenBidRequest(identity()); - - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getValue()).doesNotContainNull() - .hasSize(1).element(0) - .returns(HttpMethod.POST, HttpRequest::getMethod) - .returns("http://test.domain.com/rmp/placementId/0/somePath?z=zone1&s2s=true", HttpRequest::getUri); - assertThat(result.getValue().get(0).getHeaders()).isNotNull() - .extracting(Map.Entry::getKey, Map.Entry::getValue) - .containsOnly( - tuple(HttpUtil.CONTENT_TYPE_HEADER.toString(), "application/json;charset=utf-8"), - tuple(HttpUtil.ACCEPT_HEADER.toString(), "application/json")); - } - - @Test - public void makeBidsShouldReturnErrorIfResponseBodyCouldNotBeParsed() { - // given - final BidderCall httpCall = givenHttpCall(null, "invalid body"); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).hasSize(1); - assertThat(result.getErrors().get(0).getMessage()).startsWith("Failed to decode: Unrecognized token"); - assertThat(result.getErrors().get(0).getType()).isEqualTo(BidderError.Type.bad_server_response); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeBidsShouldReturnEmptyListIfBidResponseIsNull() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall(null, - mapper.writeValueAsString(null)); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeBidsShouldReturnEmptyListIfBidResponseSeatBidIsNull() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall(null, - mapper.writeValueAsString(BidResponse.builder().build())); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeBidsShouldReturnBannerBidIfImpIdNotEqualToBidImpId() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall( - givenBidRequest(impBuilder -> impBuilder.id("123") - .banner(Banner.builder().build())), - mapper.writeValueAsString( - givenBidResponse(bidBuilder -> bidBuilder.impid("321")))); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()) - .containsOnly(BidderBid.of(Bid.builder().impid("321").build(), banner, "USD")); - } - - @Test - public void makeBidsShouldReturnBannerBidIfRequestImpHasBannerAndVideo() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall( - givenBidRequest(builder -> builder.id("123") - .video(Video.builder().build()) - .banner(Banner.builder().build())), - mapper.writeValueAsString( - givenBidResponse(bidBuilder -> bidBuilder.impid("123")))); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()) - .containsOnly(BidderBid.of(Bid.builder().impid("123").build(), banner, "USD")); - } - - @Test - public void makeBidsShouldReturnVideoBidIfBidRequestHasVideoAndNoBanner() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall( - givenBidRequest(builder -> builder.id("123") - .video(Video.builder().build())), - mapper.writeValueAsString( - givenBidResponse(bidBuilder -> bidBuilder.impid("123")))); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()) - .containsOnly(BidderBid.of(Bid.builder().impid("123").build(), video, "USD")); - } - - private static BidRequest givenBidRequest( - Function bidRequestCustomizer, - Function impCustomizer, - Function extCustomizer) { - - return bidRequestCustomizer.apply(BidRequest.builder() - .imp(singletonList(givenImp(impCustomizer, extCustomizer)))) - .build(); - } - - private static BidRequest givenBidRequest(Function impCustomizer) { - return givenBidRequest(identity(), impCustomizer, identity()); - } - - private static Imp givenImp( - Function impCustomizer, - Function extCustomizer) { - - return impCustomizer.apply(Imp.builder() - .id("123") - .ext(mapper.valueToTree(ExtPrebid.of(null, - extCustomizer.apply(ExtImpRhythmone.builder()) - .placementId("placementId") - .path("somePath") - .zone("zone1") - .build())))) - .build(); - } - - private static BidResponse givenBidResponse(Function bidCustomizer) { - return BidResponse.builder() - .cur("USD") - .seatbid(singletonList(SeatBid.builder() - .bid(singletonList(bidCustomizer.apply(Bid.builder()).build())) - .build())) - .build(); - } - - private static BidderCall givenHttpCall(BidRequest bidRequest, String body) { - return BidderCall.succeededHttp( - HttpRequest.builder().payload(bidRequest).build(), - HttpResponse.of(200, null, body), - null); - } -} diff --git a/src/test/java/org/prebid/server/it/RhythmoneTest.java b/src/test/java/org/prebid/server/it/RhythmoneTest.java deleted file mode 100644 index b5dcfb54d23..00000000000 --- a/src/test/java/org/prebid/server/it/RhythmoneTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.prebid.server.it; - -import io.restassured.response.Response; -import org.json.JSONException; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.prebid.server.model.Endpoint; -import org.springframework.test.context.junit4.SpringRunner; - -import java.io.IOException; - -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson; -import static com.github.tomakehurst.wiremock.client.WireMock.post; -import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo; -import static java.util.Collections.singletonList; - -@RunWith(SpringRunner.class) -public class RhythmoneTest extends IntegrationTest { - - @Test - public void openrtb2AuctionShouldRespondWithBidsFromRhythmone() throws IOException, JSONException { - // given002 - WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/rhythmone-exchange/72721/0/mvo")) - .withRequestBody(equalToJson(jsonFrom("openrtb2/rhythmone/test-rhythmone-bid-request.json"))) - .willReturn(aResponse().withBody(jsonFrom("openrtb2/rhythmone/test-rhythmone-bid-response.json")))); - - // when - final Response response = responseFor("openrtb2/rhythmone/test-auction-rhythmone-request.json", - Endpoint.openrtb2_auction); - - // then - assertJsonEquals("openrtb2/rhythmone/test-auction-rhythmone-response.json", response, - singletonList("rhythmone")); - } -} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-auction-rhythmone-request.json b/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-auction-rhythmone-request.json deleted file mode 100644 index f97e3b383a4..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-auction-rhythmone-request.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "id": "request_id", - "imp": [ - { - "id": "imp_id", - "banner": { - "w": 300, - "h": 250 - }, - "ext": { - "rhythmone": { - "placementId": "72721", - "path": "mvo", - "zone": "1r" - } - } - } - ], - "tmax": 5000, - "regs": { - "ext": { - "gdpr": 0 - } - } -} \ No newline at end of file diff --git a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-auction-rhythmone-response.json b/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-auction-rhythmone-response.json deleted file mode 100644 index b73132f3ad4..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-auction-rhythmone-response.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "id": "request_id", - "seatbid": [ - { - "bid": [ - { - "id": "bid_id", - "impid": "imp_id", - "price": 2.25, - "adm": "adm002", - "adid": "29681110", - "adomain": [ - "video-example.com" - ], - "cid": "1001", - "crid": "crid002", - "cat": [ - "IAB2" - ], - "w": 640, - "h": 480, - "ext": { - "prebid": { - "type": "banner" - }, - "origbidcpm": 2.25 - } - } - ], - "seat": "rhythmone", - "group": 0 - } - ], - "cur": "USD", - "ext": { - "responsetimemillis": { - "rhythmone": "{{ rhythmone.response_time_ms }}" - }, - "prebid": { - "auctiontimestamp": 0 - }, - "tmaxrequest": 5000 - } -} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-rhythmone-bid-request.json b/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-rhythmone-bid-request.json deleted file mode 100644 index 05c0e5d4117..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-rhythmone-bid-request.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "id": "request_id", - "imp": [ - { - "id": "imp_id", - "secure": 1, - "banner": { - "w": 300, - "h": 250 - }, - "ext": { - "bidder": { - "placementId": "72721", - "zone": "1r", - "path": "mvo", - "S2S": true - } - } - } - ], - "source": { - "tid": "${json-unit.any-string}" - }, - "site": { - "domain": "www.example.com", - "page": "http://www.example.com", - "publisher": { - "domain": "example.com" - }, - "ext": { - "amp": 0 - } - }, - "device": { - "ua": "userAgent", - "ip": "193.168.244.1" - }, - "at": 1, - "tmax": "${json-unit.any-number}", - "cur": [ - "USD" - ], - "regs": { - "ext": { - "gdpr": 0 - } - }, - "ext": { - "prebid": { - "server": { - "externalurl": "http://localhost:8080", - "gvlid": 1, - "datacenter": "local", - "endpoint": "/openrtb2/auction" - } - } - } -} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-rhythmone-bid-response.json b/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-rhythmone-bid-response.json deleted file mode 100644 index 1e64715f896..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/rhythmone/test-rhythmone-bid-response.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id": "request_id", - "seatbid": [ - { - "bid": [ - { - "id": "bid_id", - "impid": "imp_id", - "price": 2.25, - "cid": "1001", - "crid": "crid002", - "adid": "29681110", - "adm": "adm002", - "cat": [ - "IAB2" - ], - "adomain": [ - "video-example.com" - ], - "h": 480, - "w": 640 - } - ] - } - ], - "bidid": "bid_id" -} \ No newline at end of file diff --git a/src/test/resources/org/prebid/server/it/test-application.properties b/src/test/resources/org/prebid/server/it/test-application.properties index d1847d69e90..79b93087825 100644 --- a/src/test/resources/org/prebid/server/it/test-application.properties +++ b/src/test/resources/org/prebid/server/it/test-application.properties @@ -288,8 +288,6 @@ adapters.richaudience.enabled=true adapters.richaudience.endpoint=http://localhost:8090/richaudience-exchange adapters.rise.enabled=true adapters.rise.endpoint=http://localhost:8090/rise-exchange -adapters.rhythmone.enabled=true -adapters.rhythmone.endpoint=http://localhost:8090/rhythmone-exchange adapters.rtbhouse.enabled=true adapters.rtbhouse.endpoint=http://localhost:8090/rtbhouse-exchange adapters.rubicon.enabled=true