8000 Two same tests in KcOidcBrokerTokenExchangeTest · Issue #40106 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Two same tests in KcOidcBrokerTokenExchangeTest #40106
Closed
@mposolda

Description

@mposolda

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

token-exchange

Describe the bug

Since 3aac1eb4 there are two exactly same test methods in the KcOidcBrokerTokenExchangeTest . Methods are:

  • testExternalInternalTokenExchange()
  • testExternalInternalTokenExchangeUsingIssuer()

Was it testExternalInternalTokenExchangeUsingIssuer() updated by accident?
It looks that either the testExternalInternalTokenExchangeUsingIssuer() should be updated as it was before or test should be removed if it i problematic. To me, it would makes sense to update it as it was before (at least it seems that it works when I've updated it back, but I may be missing something....)

Using issuer instead of IDP-alias is something, which we support in the external-internal token exchange and hence makes sense to have it tested (See AbstractTokenExchangeProvider.locateExchangeExternalTokenByAlias )

Version

nightly (from 2025-05-30)

Regression

  • The issue is a regression

Expected behavior

Test for the scenario with external-internal token exchange when parameter subject_issuer references IDP issuer instead of IDP alias

Actual behavior

Test testExternalInternalTokenExchangeUsingIssuer() is testing alias and tests exactly the same as testExternalInternalTokenExchange()

How to Reproduce?

See above

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0