Tweaks to drools-apps for new usecases controller 52/111852/1
authorJim Hahn <jrh3@att.com>
Fri, 28 Aug 2020 19:44:11 +0000 (15:44 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 28 Aug 2020 19:47:07 +0000 (15:47 -0400)
Made the following updates:
- modified feature-controlloop-utils to pull from the usecases
  controller instead of the frankfurt controller
- modified ONAPInstance in the xacml-pdp Decision request
- log Step2 property changes as info() instead of error()
- log Lock acquisition as info() instead of warn()

Issue-ID: POLICY-2748
Change-Id: I6b4b5877bbd6731acb761d09d0f0dec85561b163
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java
controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/LockData.java
controlloop/common/feature-controlloop-management/src/main/feature/config/event-manager.properties
controlloop/common/feature-controlloop-utils/src/assembly/assemble_zip.xml

index c0116c9..1212855 100644 (file)
@@ -247,7 +247,7 @@ public class ControlLoopEventManager implements StepContext, Serializable {
      */
     @Override
     public void setProperty(String name, Serializable value) {
-        logger.error("set property {}={} manager={}", name, value, this);
+        logger.info("set property {}={} manager={}", name, value, this);
         properties.put(name, value);
     }
 
index 91b5325..119d146 100644 (file)
@@ -126,7 +126,7 @@ public class LockData implements LockCallback {
 
     @Override
     public synchronized void lockAvailable(Lock lock) {
-        logger.warn("lock granted on {} for {}", targetEntity, requestId);
+        logger.info("lock granted on {} for {}", targetEntity, requestId);
         theLock = lock;
 
         OperationOutcome outcome = makeOutcome();
index b10b897..9b28e66 100644 (file)
@@ -34,7 +34,7 @@ actor.service.GUARD.disabled=${envd:GUARD_DISABLED:false}
 actor.service.GUARD.clientName=GUARD
 actor.service.GUARD.onapName=Policy
 actor.service.GUARD.onapComponent=Drools PDP
-actor.service.GUARD.onapInstance=Frankfurt
+actor.service.GUARD.onapInstance=Usecases
 actor.service.GUARD.operations.Decision.path=decision
 
 actor.service.AAI.clientName=AAI
index 70421a3..465e11c 100644 (file)
             <excludes/>
         </fileSet>
         <fileSet>
-            <directory>../controller-frankfurt/src/test/resources/config</directory>
+            <directory>../controller-usecases/src/test/resources/config</directory>
             <outputDirectory>config</outputDirectory>
             <fileMode>0644</fileMode>
             <excludes/>
             <includes>
-                <include>frankfurt-http-client.properties</include>
+                <include>usecases-http-client.properties</include>
             </includes>
         </fileSet>
         <fileSet>