Repository navigation
chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 - #12
Merged
Slach merged 1 commit intoAug 26, 2025
Merged
Conversation
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.10.0...v1.11.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-version: 1.11.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Pull Request Test Coverage Report for Build 17229269950Details
💛 - Coveralls |
dependabot
Bot
deleted the
dependabot/go_modules/github.com/stretchr/testify-1.11.0
branch
August 26, 2025 06:51
isushkov-akamai
pushed a commit
to isushkov-akamai/altinity-mcp
that referenced
this pull request
Mar 30, 2026
…thub.com/stretchr/testify-1.11.0 chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0
BorisTyshkevich
added a commit
that referenced
this pull request
May 15, 2026
Self-review #3 turned up four real bugs, three documentation drifts, and three dead-code / consistency issues. No wire-shape change beyond the bug fixes; all behaviour-affecting fixes have regression tests. Bugs: - **identityClaims comment lied** (#5-dup). The "intentionally unused" comment + bare `_ = identityClaims` next to a block that DOES read identityClaims.ExpiresAt (used to derive `expires_in`) was an invitation for a future "clean up unused vars" PR to silently drop the upstream identity validation. Comment rewritten to name the three jobs the validation actually does; underscore drop assigned. - **cacheTTLFromHeader int64 overflow** (#7). `time.Duration(n) * time.Second` overflows when n > ~9.22e9, wrapping to a negative Duration that hit the "directive absent" sentinel branch and silently returned cimdDefaultCacheTTL (5m) instead of the intended cimdMaxCacheTTL (1h). Clamp n against int(cimdMaxCacheTTL/time.Second) before the multiply. Test rows added in TestCacheTTLFromHeader for max-age=9999999999 and max-age=int64.max. - **upstream 200 OK with RFC 6749 error body mapped to 502 server_error** (#8). Non-RFC-compliant IdPs and test stubs that return HTTP 200 + {"error":"invalid_grant"} hit our "no usable token" branch → 502 server_error. Replay-oracle contract assumes downstream sees invalid_grant. tokenResp struct gains Error / ErrorDescription fields; non-empty Error → downstream invalid_grant regardless of status. New TestOAuthTokenUpstream200WithErrorBody covers this. - **Content-Type prefix-match too permissive** (#9). strings.HasPrefix accepted application/json-ld, application/jsonpatch+json, etc. Replaced with isApplicationJSON helper that splits on ";", trims, case-folds, and exact-matches "application/json". TestIsApplicationJSON covers the new behaviour. UX / contract: - **/oauth/register 404 → 410 Gone + JSON** (#11). Legacy DCR clients hitting the route now get an RFC 7591 §3.2.2-shaped error body pointing them at CIMD, not Go's bare text/plain 404. New handleOAuthRegisterRemoved handler. TestOAuthRegisterGone. - **upstream_offline_access description rewritten** (#6). Previous desc tag claimed the flag "issues JWE-wrapped refresh tokens" — post-#115 it doesn't, and can't. Rewritten to explain the flag is upstream-scope-only and v1 issues no downstream refresh tokens regardless of its value. Dead code: - **#12 removals**: defaultRefreshTokenTTLSeconds (oauth_server.go), oauthRegistrationPath() method, OAuthConfig.RegistrationPath + YAML fixture + 2 test assertions, decodeStringSlice + TestDecodeStringSlice, statelessRegisteredClient.TokenEndpointAuthMethod (write-only field). statelessRegisteredClient is now one field. - **#14 dec.UseNumber no-op + string copy**: oauthex.ClientRegistrationResponse has a custom UnmarshalJSON that bypasses outer-decoder settings, so UseNumber() was a no-op and strings.NewReader(string(body)) was a wasted copy. json.Unmarshal(body, &doc) directly. Style: - **Named upstream HTTP timeout** (#1). oauthUpstreamHTTPTimeout = 10 * time.Second constant; both call sites use it. Docs / comments: - **oauthKidV1 comment** (#13). Said "client_id / refresh-token JWE artifacts" and "30-day window" — neither exists post-#115. Rewritten to name pending-auth (10 min) as the longest live legacy artifact and to indicate the SHA256(secret) fallback can be deleted in a follow-up after one rolling restart. - **mustJWESecret error string**: said "OAuth client registration and forward-mode token wrapping" → now "JWE-wrapped pending-auth state and downstream auth-code minting". - **oauth_server_test.go stale tombstone** removed. - **oidcScopesForAdvertisement** doc no longer mentions DCR responses. - **docs/oauth_authorization.md** banner explains the #115 cutover (DCR removed → CIMD only, no downstream refresh tokens, HA replay). Tests added or strengthened: TestCacheTTLFromHeader (+2 overflow rows), TestIsApplicationJSON (8 cases), TestValidateCIMDClientIDURL_Reject (+data:/javascript:/file: scheme rejects), TestOAuthRegisterGone, TestOAuthTokenRefreshGrantUnsupported, TestOAuthASMetadataShape, TestOAuthTokenUpstream200WithErrorBody. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Bumps github.com/stretchr/testify from 1.10.0 to 1.11.0.
Release notes
Sourced from github.com/stretchr/testify's releases.
... (truncated)
Commits
b7801fbMerge pull request #1778 from stretchr/dependabot/github_actions/actions/chec...69831f3build(deps): bump actions/checkout from 4 to 5a53be35Improve captureTestingT helperaafb604mock: improve formatting of error message7218e03improve error msg929a212Merge pull request #1758 from stretchr/dolmen/suite-faster-method-filteringbc7459esuite: faster filtering of methods (-testify.m)7d37b5csuite: refactor methodFilterc58bc90Merge pull request #1764 from stretchr/dolmen/suite-refactor-stats-for-readab...87101a6suite.Run: refactor handling of statsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)