consul icon indicating copy to clipboard operation
consul copied to clipboard

Refactor sidecar_service method to separate port assignment

Open skpratt opened this issue 2 years ago • 0 comments

Description

This separates the port assignment logic out into a helper. That way it can later be moved to a different step in the registration process.

Testing & Reproduction steps

  • Refactor, no functionality changes intended.
  • Unit test also refactored into separate tests.

Links

Follow-on PR

PR Checklist

  • [x] updated test coverage
  • [N/A] external facing docs updated
  • [N/A] not a security concern

skpratt avatar Aug 08 '22 18:08 skpratt