Skip to content

Commit

Permalink
Fix AppnexusVideoTest to use cache-response-transformer (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanchyk authored Mar 13, 2020
1 parent dfac8a6 commit 2b53488
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
9 changes: 6 additions & 3 deletions src/test/java/org/prebid/server/it/AppnexusVideoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ public void openrtb2VideoShouldRespondWithBidsFromAppnexus() throws IOException,

// pre-bid cache
wireMockRule.stubFor(post(urlPathEqualTo("/cache"))
.withRequestBody(equalToJson(jsonFrom("openrtb2/video/test-cache-video-appnexus-request.json")))
.willReturn(aResponse().withBody(jsonFrom("openrtb2/video/test-cache-video-appnexus-response.json"))));
.withRequestBody(equalToJson(
jsonFrom("openrtb2/video/test-video-cache-request.json"), true, false))
.willReturn(aResponse()
.withTransformers("cache-response-transformer")
.withTransformerParameter("matcherName",
"openrtb2/video/test-video-cache-response-matcher.json")));

// when
final Response response = given(spec)
Expand All @@ -56,4 +60,3 @@ public void openrtb2VideoShouldRespondWithBidsFromAppnexus() throws IOException,
JSONAssert.assertEquals(expectedAuctionResponse, response.asString(), JSONCompareMode.NON_EXTENSIBLE);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"value": "some-test-ad-2"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"some-test-ad-3": "2202329f-f30b-424a-a82d-d8cfbf15eed6",
"some-test-ad": "f2f0a7d4-fa87-478f-8797-e57bd5c4b067",
"some-test-ad-2": "65fdb393-7344-4873-b825-1515aee4df40"
}

0 comments on commit 2b53488

Please sign in to comment.