Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resolver interface and implementations #332

Merged
merged 2 commits into from
Aug 31, 2024

Commits on Aug 30, 2024

  1. Add CcmBridge#getNodeIpAddress(int)

    Adds tiny utility method to CcmBridge.
    Bouncheck committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    b767887 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. Add Resolver interface and implementations

    Adds a middleman between driver and all direct calls to InetAddress.
    This is meant to help with testing in case there is a need to substitute
    name resolution with resolution by specific ip address without modifying
    system environment or providing custom DNS server.
    
    Default implementation redirects all calls to InetAddress class which
    should not introduce change in behaviour.
    One introduced downside is that if the methods are to be customizable
    then the interface cannot have them `static`.
    
    Adds also implementation of MockResolver that has its own mapping of hostnames
    to addresses.
    
    Adds MockResolverIT.
    Bouncheck committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    ee82cf3 View commit details
    Browse the repository at this point in the history