Use UUID for topic consumer instance 93/122393/2
authorJim Hahn <jrh3@att.com>
Thu, 1 Jul 2021 14:21:23 +0000 (10:21 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 1 Jul 2021 15:44:04 +0000 (11:44 -0400)
commit5cb9040fa117aad26cf9bc543e2d2ea7261a731a
tree1eab729947ae769ef256451aab7da26f34e00dee
parent749ee9da67d32ca8e33169607fcd7139632b29e7
Use UUID for topic consumer instance

Modified the code so that if the consumer group is defined, but the
consumer instance is not, then policy-endpoints will generate a UUID for
the consumer instance.
Made the logic a little more straight-forward in response to a review
comment.

Issue-ID: POLICY-3405
Change-Id: If74440bdb01525bc463a28e5b8a9a2eca89a855a
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedBusTopicSource.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedBusTopicSourceTest.java