Resolved bug present in building ueb sink. 69/19569/1
authorMagnusen, Drew (dm741q) <dm741q@att.com>
Wed, 18 Oct 2017 16:51:09 +0000 (11:51 -0500)
committerMagnusen, Drew (dm741q) <dm741q@att.com>
Wed, 18 Oct 2017 16:51:55 +0000 (11:51 -0500)
Logic inside the build method for IndexedUebTopicSinkFactory attempts
to retrieve the https property for the sink using the UEB_SOURCE_TOPICS
prefix, rather than the UEB_SINK_TOPICS prefix.

Issue-ID: POLICY-353
Change-Id: I7207d10bb7309555f49250d1eb99e91470c2f3bb
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
policy-endpoints/src/main/java/org/onap/policy/drools/event/comm/bus/UebTopicSinkFactory.java

index 10f56c4..2a20c31 100644 (file)
@@ -213,7 +213,7 @@ class IndexedUebTopicSinkFactory implements UebTopicSinkFactory {
                                        managed = Boolean.parseBoolean(managedString);
                                }
                                
-                               String useHttpsString = properties.getProperty(PolicyProperties.PROPERTY_UEB_SOURCE_TOPICS + "." + topic +
+                               String useHttpsString = properties.getProperty(PolicyProperties.PROPERTY_UEB_SINK_TOPICS + "." + topic +
                                                PolicyProperties.PROPERTY_HTTP_HTTPS_SUFFIX);
                                
                                //default is to use HTTP if no https property exists
@@ -223,7 +223,7 @@ class IndexedUebTopicSinkFactory implements UebTopicSinkFactory {
                                }
                                
                                
-                               String allowSelfSignedCertsString = properties.getProperty(PolicyProperties.PROPERTY_UEB_SOURCE_TOPICS + "." + topic +
+                               String allowSelfSignedCertsString = properties.getProperty(PolicyProperties.PROPERTY_UEB_SINK_TOPICS + "." + topic +
                                                PolicyProperties.PROPERTY_ALLOW_SELF_SIGNED_CERTIFICATES_SUFFIX);
 
                                        //default is to disallow self-signed certs