Repository navigation
TEST: Give the cloud's reason when a live 51Did test gets no 51Did - #239
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,
everyUsageReadsBackTheTermsAndFlagsTheServiceWroteandconsentStringSetsTheUsageIsIndirectBit. 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:DidClientLiveTestskeeps the cloud's reason with the identifiers it reads, fromidprobglobalnullreasonand thenidproblicnullreason.LiveCloudKeyshas the two product names and the message, which points at the accessible properties address to see the products a key carries.LiveCloudKeysTestscover reading the reason and the message, with and without a reason.Tests
mvn clean test -Pdevinpipeline/pipeline.didon JDK 17 and on JDK 8: 206 tests, 0 failures, 12 skipped, which are the live tests, as no key was set.ValueCloudTestsin 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.
verifyFullThenRedeemWithTheLicence_ReadsTheVerdictandanIdentifierForAnotherAddress_ReportsEveryFactorinDidClientLiveTests.java, fail rather than skip when the key gets no marketing 51Did, aseveryUsageReadsBackTheTermsAndFlagsTheServiceWrotealready does and as the Python, Node.js and .NET tests do. They callAssume.assumeTrueat lines 169 to 172 and 244 to 247.fodidsection names CloudV5FODiD in its message, where the key is missing FODid. Node.js names FODid in that case..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.ValueCloudTestsin IP Intelligence errors when no key is set, where the other cloud tests skip. That is a separate change.