@@ -34,8 +34,6 @@ class SecondaryCacheSpec : ShouldSpec({
3434 specPrebidCacheConfig = BaseSpec .prebidCacheConfig.getBaseAerospikeConfig(true) +
3535 BaseSpec .prebidCacheConfig.getSecondaryCacheConfig(webCacheContainerUri)
3636 prebidCacheApi = BaseSpec .getPrebidCacheApi(specPrebidCacheConfig)
37- val requestObject = RequestObject .getDefaultJsonRequestObject().apply { puts[0 ].key = getRandomUuid() }
38- prebidCacheApi.postCache(requestObject, "no")
3937 }
4038
4139 afterSpec {
@@ -59,7 +57,7 @@ class SecondaryCacheSpec : ShouldSpec({
5957
6058 // and: Request to secondary cache was sent
6159 val secondaryCacheRecordedRequests =
62- webCacheContainerClient.getSecondaryCacheRecordedRequests (requestObject.puts[0].key!!)
60+ webCacheContainerClient.checkRecordedRequests (requestObject.puts[0].key!!)
6361 secondaryCacheRecordedRequests?.size shouldBe 1
6462
6563 // and: Request contained secondaryCache=yes query parameter
@@ -89,7 +87,7 @@ class SecondaryCacheSpec : ShouldSpec({
8987
9088 // and: Request to secondary cache was sent
9189 val secondaryCacheRecordedRequests =
92- webCacheContainerClient.getSecondaryCacheRecordedRequests (requestObject.puts[0].key!!)
90+ webCacheContainerClient.checkRecordedRequests (requestObject.puts[0].key!!)
9391 secondaryCacheRecordedRequests?.size shouldBe 1
9492
9593 // and: Secondary cache request 'expiry' parameter matches to the PBC request 'ttlseconds' parameter
@@ -116,7 +114,7 @@ class SecondaryCacheSpec : ShouldSpec({
116114
117115 // and: Request to secondary cache was sent
118116 val secondaryCacheRecordedRequests =
119- webCacheContainerClient.getSecondaryCacheRecordedRequests (requestObject.puts[0].key!!)
117+ webCacheContainerClient.checkRecordedRequests (requestObject.puts[0].key!!)
120118 secondaryCacheRecordedRequests?.size shouldBe 1
121119
122120 // and: Secondary cache request 'expiry' parameter matches to the Prebid Cache 'cache.expiry.sec' config property
@@ -146,7 +144,7 @@ class SecondaryCacheSpec : ShouldSpec({
146144
147145 // and: Request to secondary cache was sent
148146 val secondaryCacheRecordedRequests =
149- webCacheContainerClient.getSecondaryCacheRecordedRequests (requestObject.puts[0].key!!)
147+ webCacheContainerClient.checkRecordedRequests (requestObject.puts[0].key!!)
150148 secondaryCacheRecordedRequests?.size shouldBe 1
151149
152150 // and: Secondary cache request 'expiry' parameter matches to the Prebid Cache 'cache.max.expiry' config property
@@ -176,7 +174,7 @@ class SecondaryCacheSpec : ShouldSpec({
176174
177175 // and: Request to secondary cache was sent
178176 val secondaryCacheRecordedRequests =
179- webCacheContainerClient.getSecondaryCacheRecordedRequests (requestObject.puts[0].key!!)
177+ webCacheContainerClient.checkRecordedRequests (requestObject.puts[0].key!!)
180178 secondaryCacheRecordedRequests?.size shouldBe 1
181179
182180 // and: Secondary cache request 'expiry' parameter matches to the Prebid Cache 'cache.min.expiry' config property
0 commit comments