-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e034cae
commit 796ee57
Showing
15 changed files
with
252 additions
and
72 deletions.
There are no files selected for viewing
17 changes: 0 additions & 17 deletions
17
src/main/java/org/prebid/server/bidder/liftoff/model/LiftoffImpressionExt.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/org/prebid/server/bidder/vungle/model/VungleImpressionExt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.prebid.server.bidder.vungle.model; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.prebid.server.proto.openrtb.ext.request.ExtImpPrebid; | ||
import org.prebid.server.proto.openrtb.ext.request.vungle.ExtImpVungle; | ||
|
||
@Builder(toBuilder = true) | ||
@Getter | ||
public class VungleImpressionExt { | ||
|
||
ExtImpPrebid prebid; | ||
|
||
ExtImpVungle bidder; | ||
|
||
ExtImpVungle vungle; | ||
} |
4 changes: 2 additions & 2 deletions
4
...tb/ext/request/liftoff/ExtImpLiftoff.java → ...nrtb/ext/request/vungle/ExtImpVungle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...main/resources/bidder-config/liftoff.yaml → src/main/resources/bidder-config/vungle.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sources/static/bidder-params/liftoff.json → ...esources/static/bidder-params/vungle.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.prebid.server.it; | ||
|
||
import com.github.tomakehurst.wiremock.client.WireMock; | ||
import io.restassured.response.Response; | ||
import org.json.JSONException; | ||
import org.junit.jupiter.api.Test; | ||
import org.prebid.server.model.Endpoint; | ||
|
||
import java.io.IOException; | ||
|
||
import static java.util.Collections.singletonList; | ||
|
||
public class VungleTest extends IntegrationTest { | ||
|
||
@Test | ||
public void openrtb2AuctionShouldRespondWithBidsFromVungle() throws IOException, JSONException { | ||
// given | ||
WIRE_MOCK_RULE.stubFor(WireMock.post(WireMock.urlPathEqualTo("/vungle-exchange")) | ||
.withRequestBody(WireMock.equalToJson( | ||
jsonFrom("openrtb2/vungle/test-vungle-bid-request.json"))) | ||
.willReturn(WireMock.aResponse().withBody( | ||
jsonFrom("openrtb2/vungle/test-vungle-bid-response.json")))); | ||
|
||
// when | ||
final Response response = responseFor("openrtb2/vungle/test-auction-vungle-request.json", | ||
Endpoint.openrtb2_auction); | ||
|
||
// then | ||
assertJsonEquals("openrtb2/vungle/test-auction-vungle-response.json", response, singletonList("vungle")); | ||
} | ||
} |
Oops, something went wrong.