Skip to content

chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 - #14

Merged
Slach merged 1 commit into
mainfrom
dependabot/go_modules/github.com/stretchr/testify-1.11.1
Sep 2, 2025
Merged

Slach merged 1 commit into
mainfrom
dependabot/go_modules/github.com/stretchr/testify-1.11.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 2, 2025

Copy link
Copy Markdown
Contributor

Bumps github.com/stretchr/testify from 1.11.0 to 1.11.1.

Release notes

Sourced from github.com/stretchr/testify's releases.

v1.11.1

This release fixes #1785 introduced in v1.11.0 where expected argument values implementing the stringer interface (String() string) with a method which mutates their value, when passed to mock.Mock.On (m.On("Method", <expected>).Return()) or actual argument values passed to mock.Mock.Called may no longer match one another where they previously did match. The behaviour prior to v1.11.0 where the stringer is always called is restored. Future testify releases may not call the stringer method at all in this case.

What's Changed

Full Changelog: stretchr/testify@v1.11.0...v1.11.1

Commits

Dependabot compatibility score

Dependabot 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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Sep 2, 2025
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 17392530904

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 85.732%

Totals Coverage Status
Change from base Build 17230366837: 0.0%
Covered Lines: 2109
Relevant Lines: 2460

💛 - Coveralls

@Slach
Slach merged commit 8c2e744 into main Sep 2, 2025
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/stretchr/testify-1.11.1 branch September 2, 2025 12:05
isushkov-akamai pushed a commit to isushkov-akamai/altinity-mcp that referenced this pull request Mar 30, 2026
…thub.com/stretchr/testify-1.11.1

chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants