Skip to content

TEST: Give the cloud's reason when a live 51Did test gets no 51Did - #239

Merged
jwrosewell merged 1 commit into
rcfrom
test/did-live-not-entitled-reason
Nov 24, 2026
Merged

jwrosewell merged 1 commit into
rcfrom
test/did-live-not-entitled-reason

Conversation

@jwrosewell

@jwrosewell jwrosewell commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Why

On the release pull request (#190), every Build and Test entry of run 45340223961 and the Cloud 51Did run 45340222676 failed two live 51Did tests for the Bespoke resource key, everyUsageReadsBackTheTermsAndFlagsTheServiceWrote and consentStringSetsTheUsageIsIndirectBit. The message said the key did not carry the fodid product. It did, as its non-marketing 51Did tests passed. The Node.js tests on the same key printed the cloud's own reason, that the marketing usages need the CloudV5FODiD product. The Java tests dropped that reason and named the wrong product.

What changes

Tests only, in pipeline/pipeline.did:

  • DidClientLiveTests keeps the cloud's reason with the identifiers it reads, from idprobglobalnullreason and then idproblicnullreason.
  • Each failure and skip for a missing 51Did gives that reason, or "no reason given", and names the product the usage needs. That is FODid for a non-marketing 51Did, and CloudV5FODiD for the standard and personalized usages and for consent strings, as the Node.js and Python tests do.
  • LiveCloudKeys has the two product names and the message, which points at the accessible properties address to see the products a key carries.
  • New LiveCloudKeysTests cover reading the reason and the message, with and without a reason.

Tests

  • mvn clean test -Pdev in pipeline/pipeline.did on JDK 17 and on JDK 8: 206 tests, 0 failures, 12 skipped, which are the live tests, as no key was set.
  • Against a local stand-in for the cloud that answers with no 51Did and the cloud's reason, the live tests failed before this change naming the fodid product, and after it with the cloud's reason and the CloudV5FODiD product.
  • At rc d22baa1 with no key, the rest of the build's unit, integration and performance stages pass on Linux with JDK 17, apart from ValueCloudTests in IP Intelligence, which errors without a key where the other cloud tests skip.

Before this leaves draft

Not ready to merge until these are done.

  1. The two redeem tests, verifyFullThenRedeemWithTheLicence_ReadsTheVerdict and anIdentifierForAnotherAddress_ReportsEveryFactor in DidClientLiveTests.java, fail rather than skip when the key gets no marketing 51Did, as everyUsageReadsBackTheTermsAndFlagsTheServiceWrote already does and as the Python, Node.js and .NET tests do. They call Assume.assumeTrue at lines 169 to 172 and 244 to 247.
  2. A module build and test run at this head. No compiler has run on it yet.
  3. The hosted Cloud 51Did and Release Pull Request runs with the current Bespoke key. This change does not make a key without CloudV5FODiD pass, it only makes the failure say why.
  4. A marketing request whose answer has no fodid section names CloudV5FODiD in its message, where the key is missing FODid. Node.js names FODid in that case.
  5. .github/workflows/cloud-51did.yml (lines 7 and 100) still says the keys carry only the fodid product, and does not name CloudV5FODiD for the marketing usages.
  6. Java skips where .NET fails when the host has no creator context (lines 183, 257 and 310), and the whole class skips when no resource key is set, where Node.js and Python fail. That is a separate change.
  7. ValueCloudTests in IP Intelligence errors when no key is set, where the other cloud tests skip. That is a separate change.

When the cloud answers without a 51Did, it says why in
idprobglobalnullreason or idproblicnullreason. The live 51Did tests
dropped that reason and always named the fodid product, so a key with
FODid but without CloudV5FODiD failed with a message naming the product
it had.

The tests now keep the reason with the identifiers and put it in each
failure and skip, with "no reason given" when there is none. They name
FODid for a non-marketing 51Did, and CloudV5FODiD for the standard and
personalized usages and for consent strings, as the Node.js and Python
tests do. New unit tests cover reading the reason and the message.
@jwrosewell
jwrosewell marked this pull request as ready for review November 24, 2026 19:29
@jwrosewell
jwrosewell merged commit 467a74c into rc Nov 24, 2026
5 checks passed
@jwrosewell
jwrosewell deleted the test/did-live-not-entitled-reason branch November 24, 2026 19:30
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.

1 participant