Skip to content

Run the live 51Did redemption tests with the 51Did license key - #116

Merged
Automation51D merged 5 commits into
mainfrom
feature/51did-license-key
Oct 21, 2026
Merged

Automation51D merged 5 commits into
mainfrom
feature/51did-license-key

Conversation

@justadreamer

Copy link
Copy Markdown
Contributor

Why

The live cloud 51Did workflow passed no license key, so the server-side half of the creator context check (redeeming a sealed result with a license key) never ran in CI. Both BrowserCreatorContextLiveTests tests skipped on every run. They also skipped for a second reason: the service no longer creates a 51Did for a browser-shaped request until the page has also reported 51D_ProfileIds, 51D_IsVisible and 51D_HasWebDriver, and the skip message cut that reason off.

What changed

  • .github/workflows/cloud-51did.yml: adds the _51DEGREES_RESOURCE_KEY_51DID variable and the _51DEGREES_LICENSE_KEY_51DID secret. Each iteration sets _51DEGREES_LICENSE_KEY from the license key with the same suffix as its resource key, because the service only opens a sealed result for a license key of the account whose resource key sealed it. Pytest runs with -rs so each skip says why, and the log names which license key (if any) each iteration used.
  • fiftyone_pipeline_did/tests/test_did_client_live.py: the browser-shaped requests send the three snippet results the service now waits for, and a refused create reports the full probabilistic null reason.

Testing

Dispatched on this branch: https://github.com/51Degrees/pipeline-python/actions/runs/39592610680. With _51DEGREES_RESOURCE_KEY_51DID and _51DEGREES_LICENSE_KEY_51DID all 6 live tests pass, including test_a_page_creates_reads_back_verifies_and_redeems (verified) and test_another_browser_redeems_as_a_mismatch_naming_every_factor (mismatch, all nine factors). BESPOKE, with no license key, redeems as unreadable and then skips, as before. BASIC is not entitled to marketing usages, so its browser tests still skip.

Without a license key the browser creator context tests skip, so
redeeming a sealed result was never exercised in CI.
Redemption only opens a sealed result for a license key of the account
whose resource key sealed it, so the 51Did license key is run with the
51Did resource key rather than read alongside every key.
@Automation51D
Automation51D merged commit 7815e6e into main Oct 21, 2026
3 checks passed
@Automation51D
Automation51D deleted the feature/51did-license-key branch October 21, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants