From 37a9c35a777ecd6f5d2951caa901fbc3d27329e5 Mon Sep 17 00:00:00 2001 From: Saurabh Narkhede <108730956+pm-saurabh-narkhede@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:33:12 +0530 Subject: [PATCH] UOE-11149: Fix Tests-Send Encoded SSPBurl in bid.Burl (#909) --- modules/pubmatic/openwrap/tracker/native_test.go | 2 +- modules/pubmatic/openwrap/tracker/video_test.go | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/pubmatic/openwrap/tracker/native_test.go b/modules/pubmatic/openwrap/tracker/native_test.go index 3c8a030d445..5b1d1ef1b37 100644 --- a/modules/pubmatic/openwrap/tracker/native_test.go +++ b/modules/pubmatic/openwrap/tracker/native_test.go @@ -36,7 +36,7 @@ func Test_injectNativeCreativeTrackers(t *testing.T) { }, endpoint: models.EndpointAppLovinMax, }, - wantBurl: `t.pubmatic.com/track?tid=1234&owsspburl=http://burl.com`, + wantBurl: `t.pubmatic.com/track?tid=1234&owsspburl=http%3A%2F%2Fburl.com`, wantAdm: `
`, wantErr: false, }, diff --git a/modules/pubmatic/openwrap/tracker/video_test.go b/modules/pubmatic/openwrap/tracker/video_test.go index 3995b480092..b8629f1afc9 100644 --- a/modules/pubmatic/openwrap/tracker/video_test.go +++ b/modules/pubmatic/openwrap/tracker/video_test.go @@ -311,7 +311,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracking URL&owsspburl=https://burl.com", + wantBurl: "Tracking URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ``, wantErr: false, }, @@ -334,7 +334,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracker URL&owsspburl=https://burl.com", + wantBurl: "Tracker URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ``, wantErr: false, }, @@ -357,7 +357,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracker URL&owsspburl=https://burl.com", + wantBurl: "Tracker URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ``, wantErr: false, }, @@ -380,7 +380,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracker URL&owsspburl=https://burl.com", + wantBurl: "Tracker URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ``, wantErr: false, }, @@ -403,7 +403,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracker URL&owsspburl=https://burl.com", + wantBurl: "Tracker URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ``, wantErr: false, }, @@ -426,7 +426,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracker URL&owsspburl=https://burl.com", + wantBurl: "Tracker URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ``, wantErr: false, }, @@ -448,7 +448,7 @@ func TestInjectVideoCreativeTrackers(t *testing.T) { Endpoint: models.EndpointAppLovinMax, }, }, - wantBurl: "Tracker URL&owsspburl=https://burl.com", + wantBurl: "Tracker URL&owsspburl=https%3A%2F%2Fburl.com", wantAdm: ` `, wantErr: false, },