Add code to allocate server ports 27/79927/4
authorJim Hahn <jrh3@att.com>
Thu, 7 Mar 2019 16:30:16 +0000 (11:30 -0500)
committerJim Hahn <jrh3@att.com>
Fri, 8 Mar 2019 13:47:36 +0000 (08:47 -0500)
commit2e69b0ad5a696df714cc30c8c47f7a15f9582e6a
treec4f022bda0bb54a7c71dd5dc0af6b0857708fa1b
parent23a3dc4ece2f1533fe1d6b627b5db05e7754a70c
Add code to allocate server ports

Added code to find available server ports.
Also added a trust manager that always trusts certificates.

Made trust manager private so we can allocate new ones in the future,
if we decide it isn't safe to re-use the same one over and over.

Modified test code to allocate a port rather than assuming 8180 was
not in use.  Also modified retry parameters in other tests.

Added another allocPort() that takes an IP address and then modified
the other two to use that so the code does not have to be duplicated,
while providing more functionality.

Change-Id: I08cf18d923af46b1310d8496498bb1d4a0690b6e
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/client/internal/JerseyClient.java
utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java
utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java