Skip to content

Commit

Permalink
prc
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-nilesh-chate committed Feb 22, 2024
1 parent cb5ff78 commit dabc8bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions endpoints/cookie_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2292,13 +2292,13 @@ func TestSetCookieDeprecationHeader(t *testing.T) {
expectedCookieDeprecationHeader bool
}{
{
name: "receive-cookie-deprecation not present in request but account is nil",
name: "not-present-account-nil", // receive-cookie-deprecation not present in request but account is nil
request: getTestRequest(false),
responseWriter: httptest.NewRecorder(),
expectedCookieDeprecationHeader: false,
},
{
name: "receive-cookie-deprecation not present in request but CookieDeprecation is disabled",
name: "not-present-cookiedeprecation-disabled", // receive-cookie-deprecation not present in request but CookieDeprecation is disabled
request: getTestRequest(false),
responseWriter: httptest.NewRecorder(),
account: &config.Account{
Expand All @@ -2313,7 +2313,7 @@ func TestSetCookieDeprecationHeader(t *testing.T) {
expectedCookieDeprecationHeader: false,
},
{
name: "receive-cookie-deprecation present in request and CookieDeprecation is disabled",
name: "present-cookiedeprecation-disabled", // receive-cookie-deprecation present in request and CookieDeprecation is disabled
request: getTestRequest(true),
responseWriter: httptest.NewRecorder(),
account: &config.Account{
Expand All @@ -2328,7 +2328,7 @@ func TestSetCookieDeprecationHeader(t *testing.T) {
expectedCookieDeprecationHeader: false,
},
{
name: "receive-cookie-deprecation present in request and CookieDeprecation is enabled",
name: "present-cookiedeprecation-enabled", // receive-cookie-deprecation present in request and CookieDeprecation is enabled
request: getTestRequest(true),
responseWriter: httptest.NewRecorder(),
account: &config.Account{
Expand All @@ -2345,13 +2345,13 @@ func TestSetCookieDeprecationHeader(t *testing.T) {
expectedCookieDeprecationHeader: false,
},
{
name: "receive-cookie-deprecation present in request and account is nil",
name: "present-account-nil", // receive-cookie-deprecation present in request and account is nil
request: getTestRequest(true),
responseWriter: httptest.NewRecorder(),
expectedCookieDeprecationHeader: false,
},
{
name: "receive-cookie-deprecation not present in request and CookieDeprecation is enabled for account",
name: "not-present-cookiedeprecation-enabled", // receive-cookie-deprecation not present in request and CookieDeprecation is enabled for account
request: getTestRequest(false),
responseWriter: httptest.NewRecorder(),
account: &config.Account{
Expand All @@ -2367,8 +2367,8 @@ func TestSetCookieDeprecationHeader(t *testing.T) {
expectedCookieDeprecationHeader: true,
},
{
name: "failed to read receive-cookie-deprecation from request but CookieDeprecation is enabled",
request: &http.Request{}, // nil cookie. error: http: named cookie not present
name: "failed-to-read-cookiedeprecation-enabled", // failed to read receive-cookie-deprecation from request but CookieDeprecation is enabled
request: &http.Request{}, // nil cookie. error: http: named cookie not present
responseWriter: httptest.NewRecorder(),
account: &config.Account{
Privacy: config.AccountPrivacy{
Expand Down

0 comments on commit dabc8bb

Please sign in to comment.