Skip to content

test: add missing unit test for maxConsecutiveCharacters (OKTA-1228272) - #1702

Open
prachi-okta wants to merge 1 commit into
masterfrom
fix/missing-max-consecutive-chars-test
Open

test: add missing unit test for maxConsecutiveCharacters (OKTA-1228272)#1702
prachi-okta wants to merge 1 commit into
masterfrom
fix/missing-max-consecutive-chars-test

Conversation

@prachi-okta

Copy link
Copy Markdown
Contributor

Issue(s)

Closes a test-coverage gap on OKTA-1228272 (already fixed in #1699, but never got a dedicated unit test).

Description

Auditing all Java SDK bug tickets assigned to the reporter (per the OKTA-1228xxx series) for fix + test completeness turned up one gap: maxConsecutiveCharacters was added to PasswordPolicyPasswordSettingsComplexity in #1699, but no test verified it round-trips correctly (neither that it's populated on deserialization, nor that it's included on serialization).

Adds PasswordPolicyPasswordSettingsComplexityTest covering both directions.

Category

  • Bugfix
  • Enhancement
  • New Feature
  • Library Upgrade
  • Configuration Change
  • Versioning Change
  • Unit or Integration Test(s)
  • Documentation

Signoff

  • I have submitted a CLA for this PR (N/A - internal Okta contributor)
  • Each commit message explains what the commit does
  • I have updated documentation to explain what my PR does
  • My code is covered by tests if required
  • I did not edit any automatically generated files

AI Attribution: ai-agent-authored

…TA-1228272)

The maxConsecutiveCharacters field was added to
PasswordPolicyPasswordSettingsComplexity in #1699, but never got a
dedicated regression test. Add one covering both directions: a caller
value is no longer silently dropped on deserialization, and it's
correctly included on serialization.

Co-Authored-By: Claude Code
@prachi-okta
prachi-okta requested a review from aniket-okta July 21, 2026 09:35
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