Commit 4d7ced21 authored by David Van Cleve's avatar David Van Cleve Committed by Commit Bot

Trust Tokens: Add more browser tests covering redemption

This change expands the Trust Tokens browser tests to cover additional
redemption-related cases:

redemption to issuer with no tokens -> expect error
redemption after successful issuance, to other issuer -> expect error
redemption after successful issuance, against same issuer
  -> should handle server error, failing the operation
successful issuance, redemption, another redemption
  -> should hit SRR cache
successful issuance, redemption, issuer-prompted refresh
  -> should execute redemption despite SRR cache
successful issuance, redemption, refresh prompted from non-issuer
  context -> should error

issuance from origins A+B, cors mode redemption to origin A, redirect to
origin B
  -> redemption succeeds, using origin B as issuer
issuance from origin A yielding exactly 1 token, cors mode redemption to
origin A, redirect to origin A
  -> redemption succeeds (same token is sent)
issuance from origin A, no-cors mode redemption to origin A, redirect to
origin B
  -> redemption succeeds, obtain origin A SRR

A prior change (crrev.com/c/2308860) expanded coverage by adding more
issuance-related tests; a subsequent change will add more signing tests.

Bug: 1071293
Change-Id: Iaa654c99162dbaa735b3b9fe2e3aad359e9c27ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2309007
Commit-Queue: David Van Cleve <davidvc@chromium.org>
Reviewed-by: default avatarCharlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805485}
parent 17953da0
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment