Fix CSITs for Kohn release 34/131534/1
authorliamfallon <liam.fallon@est.tech>
Tue, 18 Oct 2022 13:04:06 +0000 (14:04 +0100)
committerliamfallon <liam.fallon@est.tech>
Tue, 18 Oct 2022 13:04:09 +0000 (14:04 +0100)
Newer versions of dependencies brought in some small updates to
configuraiton.

Also a script called start-container.sh has been added to bring up a
single Policy Framework container and its dependencies.

Issue-ID: POLICY-4393
Change-Id: I17bac4d75600431fdee74592be4700761a3f8fe7
Signed-off-by: liamfallon <liam.fallon@est.tech>
12 files changed:
csit/common-library.robot
csit/config/apex-pdp/OnapPfConfig.json
csit/config/clamp/HttpParticipantParameters.yaml
csit/config/clamp/KubernetesParticipantParameters.yaml
csit/config/clamp/PolicyParticipantParameters.yaml
csit/config/distribution/defaultConfig.json
csit/config/drools-applications/env/base.conf
csit/config/drools-pdp/env/base.conf
csit/config/xacml-pdp/defaultConfig.json
csit/docker-compose-all.yml
csit/run-project-csit.sh
csit/start-containter.sh [new file with mode: 0755]

index b90f854..42d3ed1 100644 (file)
@@ -11,7 +11,7 @@ PolicyAdminAuth
     [return]  ${policyadmin}
 
 HealthCheckAuth
-    ${healthcheck}=   Create list   healthcheck    zb!XztG34
+    ${healthcheck}=   Create list   policyadmin    zb!XztG34
     [return]  ${healthcheck}
 
 PerformPostRequest
index 5760259..57ca720 100644 (file)
@@ -3,7 +3,7 @@
      "restServerParameters": {
         "host": "0.0.0.0",
         "port": 6969,
-        "userName": "healthcheck",
+        "userName": "policyadmin",
         "password": "zb!XztG34",
         "https": false,
         "prometheus": true
index 1576888..038e97a 100644 (file)
@@ -3,6 +3,11 @@ spring:
     user:
       name: participantUser
       password: zb!XztG34
+  autoconfigure:
+    exclude: >
+      org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
+      org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
+      org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
 security:
   enable-csrf: false
 participant:
index c13f815..d9c3326 100644 (file)
@@ -3,6 +3,11 @@ spring:
     user:
       name: participantUser
       password: zb!XztG34
+  autoconfigure:
+    exclude: >
+      org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
+      org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
+      org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
 security:
   enable-csrf: false
 
index acaaebb..8db98a7 100644 (file)
@@ -3,7 +3,11 @@ spring:
     user:
       name: participantUser
       password: zb!XztG34
-
+  autoconfigure:
+    exclude: >
+      org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
+      org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
+      org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
 participant:
   pdpGroup: defaultGroup
   pdpType: apex
index 7f09c6b..c8451eb 100644 (file)
@@ -3,7 +3,7 @@
     "restServerParameters":{
         "host":"0.0.0.0",
         "port":6969,
-        "userName":"healthcheck",
+        "userName":"policyadmin",
         "password":"zb!XztG34",
         "https": false,
         "prometheus": true
index 68ac61f..ca944db 100644 (file)
@@ -96,7 +96,7 @@ GUARD_DISABLED=false
 PDP_HOST=policy-xacml-pdp
 PDP_PORT=6969
 PDP_CONTEXT_URI=policy/pdpx/v1/
-PDP_USERNAME=healthcheck
+PDP_USERNAME=policyadmin
 PDP_PASSWORD=zb!XztG34
 PDP_HTTPS=false
 
@@ -127,7 +127,7 @@ SO_PORT=6669
 SO_CONTEXT_URI=
 SO_URL=http://message-router:6669/
 SO_USERNAME=InfraPortalClient
-SO_PASSWORD=password1$
+SO_PASSWORD='password1$'
 
 # VFC
 
index 3b8160e..98cc10f 100644 (file)
@@ -125,7 +125,7 @@ SO_PORT=8080
 SO_CONTEXT_URI=onap/so/infra/
 SO_URL=http://vm1.mso.simpledemo.onap.org:8080/onap/so/infra
 SO_USERNAME=InfraPortalClient
-SO_PASSWORD=password1$
+SO_PASSWORD='password1$'
 
 # VFC
 
index a4bcc5e..d6f3bd9 100644 (file)
@@ -5,7 +5,7 @@
     "restServerParameters": {
         "host": "0.0.0.0",
         "port": 6969,
-        "userName": "healthcheck",
+        "userName": "policyadmin",
         "password": "zb!XztG34",
         "https": false,
         "aaf": false,
index 9e6666f..d8f485b 100644 (file)
@@ -74,6 +74,8 @@ services:
        - 6670
        - 3904
        - 6680
+      ports:
+       - 30227:3904
    api:
       image: ${CONTAINER_LOCATION}onap/policy-api:${POLICY_API_VERSION}
       container_name: policy-api
@@ -124,6 +126,7 @@ services:
       hostname: policy-xacml-pdp
       ports:
        - 30441:6969
+       - 30999:3904
       volumes:
        - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
        - ./config/xacml-pdp/logback.xml:/opt/app/policy/pdpx/etc/logback.xml:ro
index fd20c6a..6a4a9bb 100755 (executable)
@@ -132,7 +132,6 @@ function source_safely() {
 
 if $(docker images | grep -q "onap\/policy-api")
 then
-    echo where
     export CONTAINER_LOCATION=$(
         docker images |
         grep onap/policy-api |
diff --git a/csit/start-containter.sh b/csit/start-containter.sh
new file mode 100755 (executable)
index 0000000..3b1b167
--- /dev/null
@@ -0,0 +1,47 @@
+# ============LICENSE_START====================================================
+# Copyright (C) 2022 Nordix Foundation.
+# =============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END======================================================
+
+
+if [ "$#" -ne 1 ]
+then
+  echo "Usage: $0 <container-name>"
+  exit 1
+fi
+
+export PROJECT=$1
+
+if $(docker images | grep -q "onap\/policy-api")
+then
+    export CONTAINER_LOCATION=$(
+        docker images |
+        grep onap/policy-api |
+        head -1 |
+        sed 's/onap\/policy-api.*$//'
+    )
+else
+    export CONTAINER_LOCATION="nexus3.onap.org:10001/"
+fi
+
+SCRIPTS=$(git rev-parse --show-toplevel)
+export SCRIPTS="${SCRIPTS}"/csit
+
+source "${SCRIPTS}"/get-versions.sh
+
+docker-compose -f "${SCRIPTS}"/docker-compose-all.yml up $*
+
+echo "Clamp GUI: https://localhost:2445/clamp"