From 313c6a119da5a6addce59d7f36194c5caa477698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulbaki=20=C3=87am?= <71071893+bakicam@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:12:13 +0300 Subject: [PATCH] add test headers to test json --- adapters/admatic/admatictest/exemplary/banner.json | 14 ++++++++++++++ .../admatictest/exemplary/multiple-imps.json | 14 ++++++++++++++ adapters/admatic/admatictest/exemplary/native.json | 14 ++++++++++++++ .../admatictest/exemplary/optional-params.json | 14 ++++++++++++++ adapters/admatic/admatictest/exemplary/video.json | 14 ++++++++++++++ .../admatictest/supplemental/bad-request.json | 14 ++++++++++++++ .../supplemental/multiple-imps-with-error.json | 14 ++++++++++++++ .../supplemental/response-200-without-body.json | 14 ++++++++++++++ .../admatictest/supplemental/response-204.json | 14 ++++++++++++++ .../admatictest/supplemental/server-error.json | 14 ++++++++++++++ 10 files changed, 140 insertions(+) diff --git a/adapters/admatic/admatictest/exemplary/banner.json b/adapters/admatic/admatictest/exemplary/banner.json index 5950034a61..d61576b02e 100644 --- a/adapters/admatic/admatictest/exemplary/banner.json +++ b/adapters/admatic/admatictest/exemplary/banner.json @@ -24,6 +24,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id-banner", diff --git a/adapters/admatic/admatictest/exemplary/multiple-imps.json b/adapters/admatic/admatictest/exemplary/multiple-imps.json index 8738fbb7f9..031b68ccee 100644 --- a/adapters/admatic/admatictest/exemplary/multiple-imps.json +++ b/adapters/admatic/admatictest/exemplary/multiple-imps.json @@ -41,6 +41,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id-banner", diff --git a/adapters/admatic/admatictest/exemplary/native.json b/adapters/admatic/admatictest/exemplary/native.json index 455406d05c..60b7ed31f2 100644 --- a/adapters/admatic/admatictest/exemplary/native.json +++ b/adapters/admatic/admatictest/exemplary/native.json @@ -19,6 +19,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id-native", diff --git a/adapters/admatic/admatictest/exemplary/optional-params.json b/adapters/admatic/admatictest/exemplary/optional-params.json index e1652c3089..3c704008e5 100644 --- a/adapters/admatic/admatictest/exemplary/optional-params.json +++ b/adapters/admatic/admatictest/exemplary/optional-params.json @@ -26,6 +26,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id-banner", diff --git a/adapters/admatic/admatictest/exemplary/video.json b/adapters/admatic/admatictest/exemplary/video.json index 58f5e89810..4b5cb4cab4 100644 --- a/adapters/admatic/admatictest/exemplary/video.json +++ b/adapters/admatic/admatictest/exemplary/video.json @@ -21,6 +21,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id", diff --git a/adapters/admatic/admatictest/supplemental/bad-request.json b/adapters/admatic/admatictest/supplemental/bad-request.json index 90f6ebd6c9..ad1fbdf6ad 100644 --- a/adapters/admatic/admatictest/supplemental/bad-request.json +++ b/adapters/admatic/admatictest/supplemental/bad-request.json @@ -25,6 +25,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id", diff --git a/adapters/admatic/admatictest/supplemental/multiple-imps-with-error.json b/adapters/admatic/admatictest/supplemental/multiple-imps-with-error.json index b23c794c1b..343ee211f0 100644 --- a/adapters/admatic/admatictest/supplemental/multiple-imps-with-error.json +++ b/adapters/admatic/admatictest/supplemental/multiple-imps-with-error.json @@ -41,6 +41,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id-banner", diff --git a/adapters/admatic/admatictest/supplemental/response-200-without-body.json b/adapters/admatic/admatictest/supplemental/response-200-without-body.json index 6cded7606e..5423c311f9 100644 --- a/adapters/admatic/admatictest/supplemental/response-200-without-body.json +++ b/adapters/admatic/admatictest/supplemental/response-200-without-body.json @@ -25,6 +25,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id", diff --git a/adapters/admatic/admatictest/supplemental/response-204.json b/adapters/admatic/admatictest/supplemental/response-204.json index 849cc85e89..0ed00b3a91 100644 --- a/adapters/admatic/admatictest/supplemental/response-204.json +++ b/adapters/admatic/admatictest/supplemental/response-204.json @@ -25,6 +25,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id", diff --git a/adapters/admatic/admatictest/supplemental/server-error.json b/adapters/admatic/admatictest/supplemental/server-error.json index 91bb22733b..51107c42cb 100644 --- a/adapters/admatic/admatictest/supplemental/server-error.json +++ b/adapters/admatic/admatictest/supplemental/server-error.json @@ -25,6 +25,20 @@ "httpCalls": [ { "expectedRequest": { + "headers": { + "Content-Type": [ + "application/json;charset=utf-8" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "test-user-agent" + ], + "X-Forwarded-For": [ + "123.123.123.123" + ] + }, "uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr", "body": { "id": "test-request-id",