Fix intermittent unit test failures reseterquestor

When consumers and producers are paired as in the case of the REST
Rquestor, both sides must come up and be wired together in the
initiation phase of apex-pdp before the consumers and producers start
handling envents.

In the ApexActivator class, the consumers were started immediately after
they were initialized meaning that a consumer could return events to a
producer that had not started yet.

This change fixes the ApexActivator so that it waits until all consumers
and producers are initialized before starting event handling.

It also fixes the timings on RestRequestor tests and tidies up the unit
tests.

Issue-ID: POLICY-2469
Change-Id: Ib66d9531bf21f2a879ab33795aded4f48e7bfbc6
Signed-off-by: liamfallon <liam.fallon@est.tech>
9 files changed
tree: 574cd253996b6aaec30a7b44b76fd776a70b2295
  1. auth/
  2. client/
  3. context/
  4. core/
  5. examples/
  6. model/
  7. packages/
  8. plugins/
  9. releases/
  10. services/
  11. src/
  12. testsuites/
  13. tools/
  14. .gitignore
  15. .gitreview
  16. BUILD.adoc
  17. docker_build.sh
  18. docker_merge.sh
  19. docker_verify.sh
  20. INFO.yaml
  21. LICENSE.txt
  22. pom.xml
  23. README.md
  24. version.properties
README.md

Copyright (C) 2016-2018 Ericsson. 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 the ONAP Policy APEX PDP Engine code. The settings file only needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment.

To build it using Maven 3, run: mvn clean install