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>
3 files changed
tree: c4f022bda0bb54a7c71dd5dc0af6b0857708fa1b
  1. capabilities/
  2. common-logging/
  3. common-parameters/
  4. gson/
  5. integrity-audit/
  6. integrity-monitor/
  7. pdp-common/
  8. policy-endpoints/
  9. project-configs/
  10. utils/
  11. utils-test/
  12. .gitattributes
  13. .gitignore
  14. .gitreview
  15. INFO.yaml
  16. LICENSE.txt
  17. pom.xml
  18. README.md
  19. version.properties
README.md

Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains ONAP common code, which is shared by 'policy-drools-pdp' and 'policy-engine'. To build it:

  1. using Maven 3
  2. git clone http://gerrit.onap.org/r/oparent and copy oparent/settings.xml to ~/.m2
  3. mvn clean install