ValidateEndpointsPorts() was only used in e2e service tests. So this moves the function to the tests.