Repository navigation
UTS: correct wrong/nonexistent spec-point references in rest/unit Test IDs - #539
Open
owenpearson wants to merge 4 commits into
Open
owenpearson wants to merge 4 commits into
owenpearson wants to merge 4 commits into
Conversation
…t IDs Several Test IDs cited spec points that are wrong or absent from features.md (e.g. TK3-TK6 do not exist). Relabels them to the correct existing spec points and updates the generated completion-status.md accordingly. Closes #525 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Test IDs are copied into derived tests in several SDKs, so a rename has a downstream cost. Keep the renames where the old id names a different requirement, and revert those where the old id is coarse but not wrong: the type-level ids TD1, TK1 and TE1, and the parent-family ids TI and RSL1k. Their section headings keep the more specific spec point. File the authOptions test under RSA10e rather than RSA10j. It asserts that an authCallback in the authOptions argument is used to obtain the token, which is RSA10e's text, and it avoids a second RSA10j/...-0 id once #541 lands. RSA10j is no longer tested in this file, so it leaves the spec points list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- error_types.md: the nested-cause test cited TI5, which is about log entries; the cause attribute is TI1. - authorize.md: the RSA10l test checks that a token request error propagates out of authorize(), which RSA10i covers through RSA8; RSA10l is the deprecated authorise alias (see #575). Refile it as RSA10i/...-1 and drop RSA10l from the spec points list. - completion-status.md: RSA10 is only partly covered, and authorize.md also covers RSA16c. Restore TI3, TI5 and TI6 to the ErrorInfo row, attributing TI5 to the realtime test that covers it. - writing-test-specs.md: correct the spec points in the file tree for error_types.md and token_types.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under RSL1k3 the library generates no ids when any message in the batch has one, so the batch mixes client-supplied and absent ids, not client and library ids. The Test ID is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
Several UTS Test IDs in
uts/rest/unitcite spec points that name the wrong requirement or don't exist infeatures.md. This PR files those tests under the correct existing spec points and updatescompletion-status.mdand the file tree inwriting-test-specs.mdto match. No assertions change, andfeatures.mdis not edited.Renaming policy
Test IDs are copied into derived tests in ably-python, ably-js, Dart and .NET, so every rename means tag edits in those repos. A Test ID is renamed only when its spec point names a different requirement. A type-level id (
TD1,TK1,TE1) or a parent-family id (TI,RSL1k) is less specific than it could be, but it isn't wrong. Those Test IDs stay as they are. Only their section headings and the spec-point lists name the more specific point.Old → new Test IDs (10)
SDK repos can apply this table mechanically to their
UTS:tags. No other Test ID changes.rest/unit/RSA10e/authorize-saves-params-0rest/unit/RSA10g/authorize-saves-params-0rest/unit/RSA10g/authorize-updates-token-details-0rest/unit/RSA16c/authorize-updates-token-details-0rest/unit/RSA10h/authorize-replaces-auth-options-0rest/unit/RSA10e/authorize-replaces-auth-options-0rest/unit/RSA10j/authorize-replaces-existing-token-0rest/unit/RSA10a/authorize-replaces-existing-token-1rest/unit/RSA10l/authorize-error-propagated-0rest/unit/RSA10i/authorize-error-propagated-1rest/unit/RSL1k2/message-id-format-0rest/unit/RSL1k1/message-id-format-1rest/unit/RSL1k2/serial-increments-batch-1rest/unit/RSL1k1/serial-increments-batch-2rest/unit/RSL1k3/unique-base-ids-0rest/unit/RSL1k1/unique-base-ids-3rest/unit/RSL1k3/no-id-when-disabled-1rest/unit/RSL1k1/no-id-when-disabled-4rest/unit/RSL1k2/same-id-on-retry-2rest/unit/RSL1k1/same-id-on-retry-5The
-<n>suffix is the 0-based index within a spec point in the file, so it changes when a test joins a spec point that already has tests (RSA10a,RSA10i,RSL1k1).Why each one changes
RSA10e(authOptions with a means of getting a token)tokenParamspassed toauthorize()are stored and reusedRSA10gRSA10g(arguments stored as defaults)auth.tokenDetailsholds the new token afterauthorize()RSA16cRSA10h(Auth#clientIdas default)authCallbackin theauthOptionsargument is used to get the tokenRSA10e(its literal text)RSA10j(signature, arguments supersede)authorize()gets a fresh tokenRSA10aRSA10l(deprecatedauthorisealias)authorize()RSA10i(follows RSA8), as proposed in #575RSL1k2/RSL1k3×5 (client-supplied ids)<base>:<serial>ids: their format, serials, a unique base per publish, none generated when the option is disabled, and the same id reused on retryRSL1k1Kept as is: Test ID unchanged, heading or spec-point list corrected (7)
rest/unit/TD1/token-details-attributes-0TD2-TD6(TD1 is the type; the attribute labels were off by one)rest/unit/TK1/token-params-attributes-0TK2, TK2a-TK2e(TK3–TK6don't exist)rest/unit/TE1/token-request-attributes-0TE2-TE5(theTE2/TE4swap is fixed)rest/unit/TI/errorinfo-from-json-0TI2rest/unit/TI/ably-exception-wraps-errorinfo-2TI2rest/unit/RSL1k/client-id-preserved-0RSL1k2rest/unit/RSL1k/mixed-ids-in-batch-1RSL1k3, reworded to "Mixed client-supplied and absent IDs in batch" (under RSL1k3 the library generates no ids)The attribute labels inside
error_types.mdare collapsed toTI1(TI1, TI4forhref), and the nested-cause test now citesTI1instead ofTI5.Other changes
authorize.mdspec points:RSA10h,RSA10jandRSA10lare dropped, because none of them is tested in this file any more, andRSA16cis added.completion-status.md:RSA10is now Partial (RSA10a, b, e, g, i, k).RSA16row also creditsauthorize.mdfor RSA16c.TI1–TI6is Partial:error_types.mdcovers TI1, TI2 and TI4, andrealtime/unit/auth/token_expiry_non_renewable_test.mdcovers TI5. Nothing tests TI3 or TI6.TK1–TK6becomesTK1, TK2, TK2a–TK2e.writing-test-specs.md: the file tree's spec points forerror_types.mdandtoken_types.mdare corrected.RSL1k1, as in the RTS4 rename (3f95977).Interaction with other PRs
rest/unit/RSA10j/authorize-supersedes-authoptions-key-0. This PR no longer mints anRSA10jid, so the two merge cleanly with no duplicate.RSA10i/authorize-preserves-key-0. If it merges as is,RSA10i/authorize-error-propagated-1becomes the onlyRSA10itest in the file, with no-0. The spec-point list here also won't includeRSA10j.authOptionsargument drops the key) is not addressed here.Merge order: merge after the mock-HTTP PR (#534, which shares
auth/authorize.md) and the publish-body PR (#537, which shareschannel/idempotency.md), and rebase after those.Closes #525
🤖 Generated with Claude Code