Skip to content

Commit

Permalink
internal-endpoint-testing: handle x-choreo-test-session-id header cor…
Browse files Browse the repository at this point in the history
…s config

Signed-off-by: Lahiru De Silva <lahirude@wso2.com>
  • Loading branch information
NomadXD committed Jan 23, 2024
1 parent 2eefbde commit 526d38f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ func TestGetCorsPolicy(t *testing.T) {
err := routeWithoutCors.GetTypedPerFilterConfig()[wellknown.CORS].UnmarshalTo(corsConfig1)

assert.Nilf(t, err, "Error while parsing Cors Configuration %v", corsConfig1)
assert.Equal(t, "x-choreo-test-session-id", corsConfig1.GetAllowHeaders(), "Cors Allow headers mismatch")
assert.Empty(t, corsConfig1.GetAllowHeaders(), "Cors AllowHeaders should be empty.")
assert.Empty(t, corsConfig1.GetAllowCredentials(), "Cors AllowCredentials should be empty.")
assert.Empty(t, corsConfig1.GetAllowMethods(), "Cors AllowMethods should be empty.")
assert.Empty(t, corsConfig1.GetAllowOriginStringMatch(), "Cors AllowOriginStringMatch should be empty.")
Expand Down

0 comments on commit 526d38f

Please sign in to comment.