aboutsummaryrefslogtreecommitdiffstats
path: root/helm
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2023-02-10 23:38:01 +0000
committerGerrit Code Review <gerrit@onap.org>2023-02-10 23:38:01 +0000
commit600a3002192da1ba2174c63d248a46dc27414397 (patch)
tree6bf9c171128c8b88612be371b4fb5d53deaf2f96 /helm
parentfcda69bd79b455b9ce3d1a9e426b84d7049ae28f (diff)
parentbe226256d85836a8a213f54f5b56c4da570d6473 (diff)
Merge "Fix test failures in K8s CSIT"
Diffstat (limited to 'helm')
-rw-r--r--helm/policy/components/policy-apex-pdp/resources/config/groups.json28
-rw-r--r--helm/policy/components/policy-models-simulator/resources/aairesponse/vfw-cnf-cds-test-1-vnf.json44
-rw-r--r--helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-modify-config.json33
-rw-r--r--helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-restart.json33
-rw-r--r--helm/policy/components/policy-models-simulator/resources/cdsresponse/controlloop-hostname-update-update-config.json35
-rw-r--r--helm/policy/components/policy-models-simulator/templates/configmap.yaml26
-rw-r--r--helm/policy/components/policy-models-simulator/templates/deployment.yaml14
-rw-r--r--helm/policy/components/policy-models-simulator/values.yaml6
-rwxr-xr-xhelm/run-test.sh4
-rw-r--r--helm/tests/api-test.robot22
-rw-r--r--helm/tests/data/onap.policies.apex.pnf.Test.json4
-rw-r--r--helm/tests/data/onap.policies.apex.pnf.metadataSet.Test.json4
-rw-r--r--helm/tests/data/onap.policies.apex.vnf.Test.json6
-rw-r--r--helm/tests/data/onap.policies.native.apex.Sampledomain.json4
-rw-r--r--helm/tests/pap-test.robot6
15 files changed, 241 insertions, 28 deletions
diff --git a/helm/policy/components/policy-apex-pdp/resources/config/groups.json b/helm/policy/components/policy-apex-pdp/resources/config/groups.json
new file mode 100644
index 00000000..bd5c2868
--- /dev/null
+++ b/helm/policy/components/policy-apex-pdp/resources/config/groups.json
@@ -0,0 +1,28 @@
+{
+ "groups": [
+ {
+ "name": "defaultGroup",
+ "version": "1.0.0",
+ "description": "The default group that registers all supported policy types and pdps.",
+ "pdpGroupState": "ACTIVE",
+ "pdpSubgroups": [
+ {
+ "pdpType": "apex",
+ "supportedPolicyTypes": [
+ {
+ "name": "onap.policies.controlloop.operational.common.Apex",
+ "version": "1.0.0"
+ },
+ {
+ "name": "onap.policies.native.Apex",
+ "version": "1.0.0"
+ }
+ ],
+ "currentInstanceCount": 0,
+ "desiredInstanceCount": 1,
+ "policies": []
+ }
+ ]
+ }
+ ]
+}
diff --git a/helm/policy/components/policy-models-simulator/resources/aairesponse/vfw-cnf-cds-test-1-vnf.json b/helm/policy/components/policy-models-simulator/resources/aairesponse/vfw-cnf-cds-test-1-vnf.json
new file mode 100644
index 00000000..2e2105f8
--- /dev/null
+++ b/helm/policy/components/policy-models-simulator/resources/aairesponse/vfw-cnf-cds-test-1-vnf.json
@@ -0,0 +1,44 @@
+{
+ "vnf-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0",
+ "vnf-name": "vfw-cnf-cds-test-1-vnf",
+ "vnf-type": "vfw_cnf_cds/null",
+ "service-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0",
+ "prov-status": "ACTIVE",
+ "orchestration-status": "Assigned",
+ "in-maint": false,
+ "is-closed-loop-disabled": false,
+ "resource-version": "1607506390862",
+ "model-invariant-id": "vTEST_XYZ",
+ "model-version-id": "vTEST",
+ "model-customization-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0",
+ "relationship-list": {
+ "relationship": [
+ {
+ "related-to": "service-instance",
+ "relationship-label": "org.onap.relationships.inventory.ComposedOf",
+ "related-link": "/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2",
+ "relationship-data": [
+ {
+ "relationship-key": "customer.global-customer-id",
+ "relationship-value": "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf"
+ },
+ {
+ "relationship-key": "service-subscription.service-type",
+ "relationship-value": "vFWDT"
+ },
+ {
+ "relationship-key": "service-instance.service-instance-id",
+ "relationship-value": "55322ada-145a-492e-b196-0d171539a4b2"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "service-instance.service-instance-name",
+ "property-value": "Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659"
+ }
+ ]
+ }
+ ]
+ }
+}
+
diff --git a/helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-modify-config.json b/helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-modify-config.json
new file mode 100644
index 00000000..4f03bbfa
--- /dev/null
+++ b/helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-modify-config.json
@@ -0,0 +1,33 @@
+{
+ "correlationUUID": null,
+ "commonHeader": {
+ "timestamp": "2020-12-16T10:29:00.450Z",
+ "originatorId": "POLICY",
+ "requestId": "f392e439-c176-411b-b972-8acadac0f8df",
+ "subRequestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "apex-example-cba",
+ "blueprintVersion": "1.0.0",
+ "actionName": "modify-config",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-12-16T10:29:01.737Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "modify-config-response": {
+ "execute-command-logs": [
+ "INFO:root:Arguments : Active,,"
+ ],
+ "prepare-environment-logs": [
+ "Installed pip packages:\n requirements.txt\n\n"
+ ]
+ }
+ }
+}
diff --git a/helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-restart.json b/helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-restart.json
new file mode 100644
index 00000000..694bc6df
--- /dev/null
+++ b/helm/policy/components/policy-models-simulator/resources/cdsresponse/apex-example-cba-restart.json
@@ -0,0 +1,33 @@
+{
+ "correlationUUID": null,
+ "commonHeader": {
+ "timestamp": "2020-12-16T10:30:46.213Z",
+ "originatorId": "POLICY",
+ "requestId": "f392e439-c176-411b-b972-8acadac0f8df",
+ "subRequestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "apex-example-cba",
+ "blueprintVersion": "1.0.0",
+ "actionName": "restart",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-12-16T10:30:46.828Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "restart-response": {
+ "execute-command-logs": [
+ "INFO:root:Arguments : Active,,"
+ ],
+ "prepare-environment-logs": [
+ "Installed pip packages:\n requirements.txt\n\n"
+ ]
+ }
+ }
+}
diff --git a/helm/policy/components/policy-models-simulator/resources/cdsresponse/controlloop-hostname-update-update-config.json b/helm/policy/components/policy-models-simulator/resources/cdsresponse/controlloop-hostname-update-update-config.json
new file mode 100644
index 00000000..7009a358
--- /dev/null
+++ b/helm/policy/components/policy-models-simulator/resources/cdsresponse/controlloop-hostname-update-update-config.json
@@ -0,0 +1,35 @@
+{
+ "commonHeader": {
+ "timestamp": "2020-08-24T14:45:07.491Z",
+ "originatorId": "CDS",
+ "requestId": "123456",
+ "subRequestId": "123-123",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "controlloop-hostname-update",
+ "blueprintVersion": "1.0.4",
+ "actionName": "update-config",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-08-24T14:45:12.863Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "update-config-response": {
+ "execute-command-logs": [
+ "INFO:root:<data xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"/>",
+ "INFO:root:configuring Device....",
+ "INFO:root:Done Device Configuration Successfully",
+ "INFO:root:Device Configuration After modification",
+ "INFO:root:http://10.101.200.10:32777/restconf/config/network-topology:network-topology/topology/topology-netconf/node/927b2580-36d9-4f13-8421-3c9d43b7a57e/yang-ext:mount",
+ "INFO:root:<data xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><system xmlns=\"urn:opendaylight:hostname\"><hostname>testhost-1212332324343</hostname></system></data>"
+ ],
+ "prepare-environment-logs": ["Installed pip packages:\n requirements.txt\n\n"]
+ }
+ }
+}
diff --git a/helm/policy/components/policy-models-simulator/templates/configmap.yaml b/helm/policy/components/policy-models-simulator/templates/configmap.yaml
index c0f75199..c15acf04 100644
--- a/helm/policy/components/policy-models-simulator/templates/configmap.yaml
+++ b/helm/policy/components/policy-models-simulator/templates/configmap.yaml
@@ -10,3 +10,29 @@ metadata:
data:
{{ tpl (.Files.Glob "resources/config/*.{json,xml}").AsConfig . | indent 2 }}
{{ tpl (.Files.Glob "resources/cds/*.{json,xml}").AsConfig . | indent 2 }}
+
+---
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "policy-models-simulator.fullname" . }}-cds-configmap
+ labels:
+ app: {{ include "policy-models-simulator.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/cdsresponse/*.{json,xml}").AsConfig . | indent 2 }}
+
+---
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "policy-models-simulator.fullname" . }}-aai-configmap
+ labels:
+ app: {{ include "policy-models-simulator.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/aairesponse/*.{json,xml}").AsConfig . | indent 2 }} \ No newline at end of file
diff --git a/helm/policy/components/policy-models-simulator/templates/deployment.yaml b/helm/policy/components/policy-models-simulator/templates/deployment.yaml
index c4d41a2d..a8eaca16 100644
--- a/helm/policy/components/policy-models-simulator/templates/deployment.yaml
+++ b/helm/policy/components/policy-models-simulator/templates/deployment.yaml
@@ -52,6 +52,12 @@ spec:
- mountPath: /opt/app/policy/simulators/etc/mounted/
name: simconfig
readOnly: true
+ - mountPath: /opt/app/policy/simulators/etc/mounted/cdsresponse/
+ name: cdsconfig
+ readOnly: true
+ - mountPath: /opt/app/policy/simulators/etc/mounted/aairesponse
+ name: aaiconfig
+ readOnly: true
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
@@ -71,3 +77,11 @@ spec:
configMap:
name: {{ include "policy-models-simulator.fullname" . }}-configmap
defaultMode: 0755
+ - name: cdsconfig
+ configMap:
+ name: {{ include "policy-models-simulator.fullname" . }}-cds-configmap
+ defaultMode: 0755
+ - name: aaiconfig
+ configMap:
+ name: {{ include "policy-models-simulator.fullname" . }}-aai-configmap
+ defaultMode: 0755
diff --git a/helm/policy/components/policy-models-simulator/values.yaml b/helm/policy/components/policy-models-simulator/values.yaml
index 9174b61e..03f5e8b2 100644
--- a/helm/policy/components/policy-models-simulator/values.yaml
+++ b/helm/policy/components/policy-models-simulator/values.yaml
@@ -49,14 +49,14 @@ service:
type: ClusterIP
name: message-router
portName: message-router
- externalPort2: 6667
- internalPort2: 6667
+ externalPort2: 6666
+ internalPort2: 6666
externalPort3: 6668
internalPort3: 6668
externalPort4: 6669
internalPort4: 6669
externalPort5: 6670
- internalPort5: 6670
+ internalPort5: 6670
externalPort6: 6680
internalPort6: 6680
externalPort7: 3904
diff --git a/helm/run-test.sh b/helm/run-test.sh
index d516340b..bb073c38 100755
--- a/helm/run-test.sh
+++ b/helm/run-test.sh
@@ -29,11 +29,11 @@ export POLICY_API_IP=policy-api
export POLICY_PAP_IP=policy-pap
export APEX_IP=policy-apex-pdp
export DMAAP_IP=message-router
-
+export SIM_IP=message-router
export ROBOT_VARIABLES=
ROBOT_VARIABLES="-v DATA:$DATA -v NODETEMPLATES:$NODETEMPLATES -v POLICY_RUNTIME_ACM_IP:$POLICY_RUNTIME_ACM_IP -v POLICY_API_IP:$POLICY_API_IP
--v POLICY_PAP_IP:$POLICY_PAP_IP -v APEX_IP:$APEX_IP -v DMAAP_IP:$DMAAP_IP"
+-v POLICY_PAP_IP:$POLICY_PAP_IP -v APEX_IP:$APEX_IP -v DMAAP_IP:$DMAAP_IP -v SIM_IP:$SIM_IP"
echo "Run Robot test"
echo ROBOT_VARIABLES="${ROBOT_VARIABLES}"
diff --git a/helm/tests/api-test.robot b/helm/tests/api-test.robot
index 5970e005..aac05ec8 100644
--- a/helm/tests/api-test.robot
+++ b/helm/tests/api-test.robot
@@ -115,17 +115,17 @@ Metrics
[Documentation] Verify policy-api is exporting prometheus metrics
${auth}= PolicyAdminAuth
${resp}= GetMetrics ${POLICY_API_IP} ${auth} /policy/api/v1/
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/api/v1/healthcheck",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/api/v1/statistics",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/api/v1/policies",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/api/v1/policies/{policyId}/versions/{policyVersion}",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policies/{policyId}/versions/{policyVersion}",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}",} 3.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/healthcheck",}
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/statistics",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policytypes",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policies",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policies/{policyId}/versions/{policyVersion}",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="200",uri="/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="200",uri="/policytypes",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policies/{policyId}/versions/{policyVersion}",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policytypes/{policyTypeId}/versions/{versionId}",} 3.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}",} 1.0
Should Contain ${resp.text} http_server_requests_seconds_sum
Should Contain ${resp.text} http_server_requests_seconds_max
Should Contain ${resp.text} spring_data_repository_invocations_seconds_count
diff --git a/helm/tests/data/onap.policies.apex.pnf.Test.json b/helm/tests/data/onap.policies.apex.pnf.Test.json
index 05522936..f73caa62 100644
--- a/helm/tests/data/onap.policies.apex.pnf.Test.json
+++ b/helm/tests/data/onap.policies.apex.pnf.Test.json
@@ -2791,7 +2791,7 @@
"carrierTechnology": "RESTREQUESTOR",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
"parameters": {
- "url": "http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}",
+ "url": "http://message-router:6666/aai/v16/network/pnfs/pnf/{pnfName}",
"httpMethod": "GET",
"httpCodeFilter": "[2-5][0-1][0-9]",
"httpHeaders": [
@@ -2859,7 +2859,7 @@
"carrierTechnology": "GRPC",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
"parameters": {
- "host": "grpc-sim",
+ "host": "message-router",
"port": 6680,
"username": "ccsdkapps",
"password": "ccsdkapps",
diff --git a/helm/tests/data/onap.policies.apex.pnf.metadataSet.Test.json b/helm/tests/data/onap.policies.apex.pnf.metadataSet.Test.json
index 20338fff..9dc425e3 100644
--- a/helm/tests/data/onap.policies.apex.pnf.metadataSet.Test.json
+++ b/helm/tests/data/onap.policies.apex.pnf.metadataSet.Test.json
@@ -60,7 +60,7 @@
"carrierTechnology": "RESTREQUESTOR",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
"parameters": {
- "url": "http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}",
+ "url": "http://message-router:6666/aai/v16/network/pnfs/pnf/{pnfName}",
"httpMethod": "GET",
"httpCodeFilter": "[2-5][0-1][0-9]",
"httpHeaders": [
@@ -128,7 +128,7 @@
"carrierTechnology": "GRPC",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
"parameters": {
- "host": "grpc-sim",
+ "host": "message-router",
"port": 6680,
"username": "ccsdkapps",
"password": "ccsdkapps",
diff --git a/helm/tests/data/onap.policies.apex.vnf.Test.json b/helm/tests/data/onap.policies.apex.vnf.Test.json
index 7886f84b..4a87011a 100644
--- a/helm/tests/data/onap.policies.apex.vnf.Test.json
+++ b/helm/tests/data/onap.policies.apex.vnf.Test.json
@@ -3073,7 +3073,7 @@
"carrierTechnology": "RESTREQUESTOR",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
"parameters": {
- "url": "http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}",
+ "url": "http://message-router:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}",
"httpMethod": "GET",
"httpCodeFilter": "[245][0-9][0-9]",
"httpHeaders": [
@@ -3154,7 +3154,7 @@
"carrierTechnology": "GRPC",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
"parameters": {
- "host": "grpc-sim",
+ "host": "message-router",
"port": 6680,
"username": "ccsdkapps",
"password": "ccsdkapps",
@@ -3174,7 +3174,7 @@
"carrierTechnology": "GRPC",
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
"parameters": {
- "host": "grpc-sim",
+ "host": "message-router",
"port": 6680,
"username": "ccsdkapps",
"password": "ccsdkapps",
diff --git a/helm/tests/data/onap.policies.native.apex.Sampledomain.json b/helm/tests/data/onap.policies.native.apex.Sampledomain.json
index d90ae08d..3edc9e84 100644
--- a/helm/tests/data/onap.policies.native.apex.Sampledomain.json
+++ b/helm/tests/data/onap.policies.native.apex.Sampledomain.json
@@ -7402,8 +7402,8 @@
"parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters",
"parameters": {
"standalone": true,
- "host": "0.0.0.0",
- "port": 23324
+ "host": "policy-apex-pdp",
+ "port": 6969
}
},
"eventProtocolParameters": {
diff --git a/helm/tests/pap-test.robot b/helm/tests/pap-test.robot
index c8c03014..6bc0c714 100644
--- a/helm/tests/pap-test.robot
+++ b/helm/tests/pap-test.robot
@@ -42,11 +42,11 @@ Metrics
[Documentation] Verify policy pap is exporting prometheus metrics
${auth}= PolicyAdminAuth
${resp}= GetMetrics ${POLICY_PAP_IP} ${auth} /policy/pap/v1/
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/pap/v1/healthcheck",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/policy/pap/v1/components/healthcheck",} 1.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/healthcheck",}
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/components/healthcheck",} 1.0
Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="save",repository="PdpGroupRepository",state="SUCCESS",} 1.0
Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="findByKeyName",repository="PdpGroupRepository",state="SUCCESS",} 1.0
- Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="findAll",repository="PolicyStatusRepository",state="SUCCESS",} 1.0
+ Should Contain ${resp.text} spring_data_repository_invocations_seconds_count{exception="None",method="findAll",repository="PolicyStatusRepository",state="SUCCESS",}
Statistics
[Documentation] Verify policy pap statistics