Skip to content

Conversation

@abhpandi
Copy link

Description

Adds the DuoAuthorization authorization API test class in the duo-example-admin module.

The class covers:

  • Happy-path authorization flow for Duo.
  • Error/exception scenarios returned by the authorization API.
  • Basic integration with the existing Duo admin example configuration.

Motivation and Context

Java test was not present for the MCP authorization api

It helps:

  • Verify that the authorization API is called with the expected parameters.
  • Catch regressions in the Duo authorization logic earlier.
  • Document expected behavior for both successful and failing authorization attempts.

How Has This Been Tested?

  • Executed the new test class locally:
    • mvn test -pl duo-example-admin
  • Verified that:
    • All new tests pass.
    • Existing tests in the module still pass.
  • Manually exercised the authorization flow to confirm behavior matches the tests.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant