Skip to content

FINERACT-5706: Add unit tests for IpAddressUtils#5706

Open
shleshaG wants to merge 1 commit intoapache:developfrom
shleshaG:ipaddressutils-tests
Open

FINERACT-5706: Add unit tests for IpAddressUtils#5706
shleshaG wants to merge 1 commit intoapache:developfrom
shleshaG:ipaddressutils-tests

Conversation

@shleshaG
Copy link
Copy Markdown

Description

Added unit tests for IpAddressUtils.

Covered scenarios:

  • No request context
  • Missing IP attribute
  • Valid IP retrieval
  • Non-string attribute handling

All tests pass successfully.

Checklist

  • Write the commit message as per guidelines
  • Tests are passing successfully
  • Added unit tests for verification

@San-43
Copy link
Copy Markdown

San-43 commented Mar 28, 2026

@shleshaG Could you please update the PR title and commit message to follow our naming convention:
FINERACT-XXXX: Short description?
Also, please sign your commit as described in the CONTRIBUTING.md signing guide.

@shleshaG shleshaG changed the title Add unit tests for IpAddressUtils FINERACT-5706: Add unit tests for IpAddressUtils Mar 28, 2026
@shleshaG shleshaG force-pushed the ipaddressutils-tests branch from 8e9e189 to 5fa8955 Compare March 28, 2026 11:30
@shleshaG
Copy link
Copy Markdown
Author

@San-43 Updated commit message and signed the commit as requested. Thanks!

@shleshaG shleshaG force-pushed the ipaddressutils-tests branch 3 times, most recently from 4e57a8d to 4791351 Compare March 28, 2026 14:33
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not remove licence header

testLogic.run();
} finally {
RequestContextHolder.resetRequestAttributes(); // critical cleanup
RequestContextHolder.resetRequestAttributes();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It Doesnt do anything. Better to revert this file change entirely

@shleshaG shleshaG force-pushed the ipaddressutils-tests branch 7 times, most recently from ea5ffc2 to b31e66f Compare March 29, 2026 13:03
Signed-off-by: Shlesha <shlesha04@gmail.com>
@shleshaG shleshaG force-pushed the ipaddressutils-tests branch from b31e66f to 7d94545 Compare March 29, 2026 13:28
@shleshaG
Copy link
Copy Markdown
Author

@Aman-Mittal Reverted unintended changes to MathUtilTest. Now the PR only includes IpAddressUtils tests.

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.

3 participants