Improvements to CSIT 90/137690/1
authoradheli.tavares <adheli.tavares@est.tech>
Mon, 25 Mar 2024 15:56:21 +0000 (15:56 +0000)
committeradheli.tavares <adheli.tavares@est.tech>
Wed, 10 Apr 2024 13:47:41 +0000 (14:47 +0100)
Issue-ID: POLICY-4868
Change-Id: If2fe23e18f500fc777091b26016180521e4fa852
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
compose/config/drools-applications/env/base.conf
compose/config/drools-applications/env/feature-pooling-messages.conf [moved from compose/config/drools-applications/env/feature-pooling-kafka.conf with 100% similarity]
compose/config/drools-pdp/env/base.conf
compose/config/xacml-pdp/defaultConfig.json
compose/docker-compose.yml
csit/resources/scripts/setup-drools-applications.sh
csit/run-project-csit.sh
helm/policy/components/policy-drools-pdp/templates/statefulset.yaml

index 76e4257..7f213ea 100644 (file)
@@ -55,12 +55,6 @@ JDBC_URL=jdbc:mariadb://mariadb:3306/
 JDBC_OPTS=
 MYSQL_CMD=
 
-# AAF
-
-AAF=false
-AAF_NAMESPACE=org.onap.policy
-AAF_HOST=aaf.api.simpledemo.onap.org
-
 # HTTP Servers
 
 HTTP_SERVER_HTTPS=false
index 2625b76..a0b2a92 100644 (file)
@@ -55,13 +55,6 @@ JDBC_URL=jdbc:mariadb://mariadb:3306/
 JDBC_OPTS=
 MYSQL_CMD=
 
-
-# AAF
-
-AAF=false
-AAF_NAMESPACE=org.onap.policy
-AAF_HOST=aaf.api.simpledemo.onap.org
-
 # HTTP Servers
 
 HTTP_SERVER_HTTPS=false
@@ -110,7 +103,6 @@ DCAE_CONSUMER_GROUP=dcae.policy.shared
 
 KAFKA_SERVERS=kafka:9092
 
-
 # AAI
 
 AAI_HOST=aai.api.simpledemo.onap.org
index ba587f1..6c72498 100644 (file)
@@ -8,7 +8,6 @@
         "userName": "policyadmin",
         "password": "zb!XztG34",
         "https": false,
-        "aaf": false,
         "prometheus": true
     },
     "policyApiParameters": {
@@ -16,8 +15,7 @@
         "port": 6969,
         "userName": "policyadmin",
         "password": "zb!XztG34",
-        "useHttps": false,
-        "aaf": false
+        "useHttps": false
     },
     "applicationParameters": {
         "applicationPath": "/opt/app/policy/pdpx/apps"
index 0264b29..3d7c146 100644 (file)
@@ -177,7 +177,7 @@ services:
       env_file:
         - ./config/drools-applications/env/base.conf
         - ./config/drools-applications/env/feature-healthcheck.conf
-        - ./config/drools-applications/env/feature-pooling-kafka.conf
+        - ./config/drools-applications/env/feature-pooling-messages.conf
       entrypoint: /opt/app/policy/bin/wait_for_port.sh
       command: [
         '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
@@ -392,11 +392,12 @@ services:
 
    zookeeper:
      image: confluentinc/cp-zookeeper:latest
+     container_name: zookeeper
      environment:
        ZOOKEEPER_CLIENT_PORT: 2181
        ZOOKEEPER_TICK_TIME: 2000
      ports:
-       - 2181:2181
+       - "2181:2181"
 
    kafka:
      image: confluentinc/cp-kafka:latest
@@ -404,8 +405,8 @@ services:
      depends_on:
        - zookeeper
      ports:
-       - 29092:29092
-       - 9092:9092
+       - "29092:29092"
+       - "9092:9092"
      environment:
        KAFKA_BROKER_ID: 1
        KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
index 94272e3..bfb3f67 100755 (executable)
@@ -29,7 +29,9 @@ export SUITES="drools-applications-test.robot"
 export KAFKA_IP="localhost:${KAFKA_PORT}"
 
 # wait for the app to start up
+"${SCRIPTS}"/wait_for_rest.sh localhost ${PAP_PORT}
 "${SCRIPTS}"/wait_for_rest.sh localhost ${DROOLS_APPS_PORT}
+"${SCRIPTS}"/wait_for_rest.sh localhost ${DROOLS_APPS_TELEMETRY_PORT}
 
 # give enough time for the controllers to come up
 sleep 15
index 32f80b6..07a3424 100755 (executable)
@@ -34,6 +34,7 @@ function on_exit(){
         docker_stats
 
         source_safely ${WORKSPACE}/compose/stop-compose.sh
+        rsync "${WORKSPACE}/compose/docker_compose.log" "${WORKSPACE}/csit/archives/${PROJECT}"
 
         if [[ ${WORKDIR} ]]; then
             rsync -av "${WORKDIR}/" "${WORKSPACE}/csit/archives/${PROJECT}"
index de14c4b..7ada63a 100644 (file)
@@ -104,9 +104,9 @@ spec:
             - mountPath: /tmp/policy-install/config/engine-system.properties
               name: drools-config
               subPath: engine-system.properties
-            - mountPath: /tmp/policy-install/config/feature-pooling-kafka.conf
+            - mountPath: /tmp/policy-install/config/feature-pooling-messages.conf
               name: drools-config
-              subPath: feature-pooling-kafka.conf
+              subPath: feature-pooling-messages.conf
             - mountPath: /tmp/policy-install/config/logback.xml
               name: drools-config
               subPath: logback.xml
@@ -133,8 +133,8 @@ spec:
               - key: engine-system.properties
                 path: engine-system.properties
                 mode: 0755
-              - key: feature-pooling-kafka.conf
-                path: feature-pooling-kafka.conf
+              - key: feature-pooling-messages.conf
+                path: feature-pooling-messages.conf
                 mode: 0755
               - key: logback.xml
                 path: logback.xml