aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plans/policy/apex-pdp/setup.sh55
-rw-r--r--plans/policy/apex-pdp/teardown.sh23
-rw-r--r--plans/policy/apex-pdp/testplan.txt3
-rw-r--r--plans/policy/api/setup.sh64
-rwxr-xr-xplans/policy/api/teardown.sh20
-rw-r--r--plans/policy/api/testplan.txt3
-rw-r--r--plans/policy/distribution/setup.sh66
-rw-r--r--plans/policy/distribution/teardown.sh23
-rw-r--r--plans/policy/distribution/testplan.txt3
-rwxr-xr-xplans/policy/drools-applications/setup.sh68
-rwxr-xr-xplans/policy/drools-applications/teardown.sh23
-rw-r--r--plans/policy/drools-applications/testplan.txt3
-rwxr-xr-xplans/policy/drools-pdp/setup.sh49
-rwxr-xr-xplans/policy/drools-pdp/teardown.sh20
-rw-r--r--plans/policy/drools-pdp/testplan.txt3
-rw-r--r--plans/policy/pap/setup.sh55
-rw-r--r--plans/policy/pap/teardown.sh21
-rw-r--r--plans/policy/pap/testplan.txt3
-rw-r--r--plans/policy/xacml-pdp/setup.sh64
-rw-r--r--plans/policy/xacml-pdp/teardown.sh20
-rw-r--r--plans/policy/xacml-pdp/testplan.txt3
-rw-r--r--scripts/policy/config/apex-pdp/OnapPfConfig.json42
-rw-r--r--scripts/policy/config/db/db.conf16
-rwxr-xr-xscripts/policy/config/db/db.sh22
-rw-r--r--scripts/policy/config/distribution/defaultConfig.json72
-rwxr-xr-xscripts/policy/config/drools-apps/custom/features.pre.sh18
-rw-r--r--scripts/policy/config/drools-apps/custom/standalone-settings.xml57
-rw-r--r--scripts/policy/config/drools-apps/env/base.conf132
-rw-r--r--scripts/policy/config/drools-apps/env/feature-healthcheck.conf18
-rw-r--r--scripts/policy/config/drools-apps/env/feature-pooling-dmaap.conf17
-rwxr-xr-xscripts/policy/config/drools/custom/noop.pre.sh22
-rw-r--r--scripts/policy/config/drools/env/base.conf132
-rw-r--r--scripts/policy/config/pap/defaultConfig.json64
-rw-r--r--scripts/policy/config/policy-csit.conf7
-rw-r--r--scripts/policy/config/sim-all/simParameters.json109
-rw-r--r--scripts/policy/config/xacml-pdp/defaultConfig.json38
-rw-r--r--scripts/policy/detmVers.sh80
-rw-r--r--scripts/policy/docker-compose-all.yml190
-rw-r--r--scripts/policy/drools-apps/deploy.drools.policies.json27
-rw-r--r--scripts/policy/drools-apps/deploy.xacml.policies.json27
-rwxr-xr-xscripts/policy/drools-apps/make_topic.sh33
-rwxr-xr-xscripts/policy/drools-apps/onset.sh32
-rw-r--r--scripts/policy/drools-apps/vcpeOnset.json16
-rw-r--r--scripts/policy/drools-apps/vdnsOnset.json16
-rw-r--r--scripts/policy/drools-apps/vfwOnset.json17
-rwxr-xr-xscripts/policy/drools-apps/wait_topic.sh61
-rw-r--r--scripts/policy/get-models-examples.sh27
-rw-r--r--scripts/policy/policy-distribution/config/distribution/csar/sample_csar_with_apex_policy.csarbin96868 -> 0 bytes
-rwxr-xr-xscripts/policy/wait_for_port.sh39
-rw-r--r--tests/policy/apex-pdp/apex-pdp-test.robot58
-rw-r--r--tests/policy/apex-pdp/data/event.json11
-rw-r--r--tests/policy/apex-pdp/data/onap.policies.native.Apex.tosca.json7436
-rw-r--r--tests/policy/apex-pdp/data/pdp_update.json17
-rw-r--r--tests/policy/api/api-test.robot204
-rw-r--r--tests/policy/api/data/onap.policy.monitoring.tcagen2.v1.json211
-rw-r--r--tests/policy/api/data/onap.policy.monitoring.tcagen2.v2.json206
-rw-r--r--tests/policy/distribution/data/event.json11
-rw-r--r--tests/policy/distribution/distribution-test.robot45
-rw-r--r--tests/policy/drools-applications/drools-applications-test.robot275
-rw-r--r--tests/policy/drools-pdp/drools-pdp-test.robot17
-rw-r--r--tests/policy/pap/data/create.group.request.json37
-rw-r--r--tests/policy/pap/data/deploy.group.request.json19
-rw-r--r--tests/policy/pap/pap-test.robot137
-rw-r--r--tests/policy/xacml-pdp/data/onap.policy.guard.decision.request.json16
-rw-r--r--tests/policy/xacml-pdp/data/onap.policy.monitoring.decision.request.json9
-rw-r--r--tests/policy/xacml-pdp/data/onap.policy.naming.decision.request.json13
-rw-r--r--tests/policy/xacml-pdp/data/onap.policy.optimization.decision.request.json15
-rw-r--r--tests/policy/xacml-pdp/data/vCPE.policy.input.tosca.deploy.json5
-rw-r--r--tests/policy/xacml-pdp/xacml-pdp-test.robot217
69 files changed, 0 insertions, 10882 deletions
diff --git a/plans/policy/apex-pdp/setup.sh b/plans/policy/apex-pdp/setup.sh
deleted file mode 100644
index 02238e90..00000000
--- a/plans/policy/apex-pdp/setup.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2018 Ericsson. All rights reserved.
-#
-# Modifications copyright (c) 2019 Nordix Foundation.
-# Modifications Copyright (C) 2020 AT&T Intellectual Property.
-# ================================================================================
-# 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=========================================================
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-sudo apt-get -y install libxml2-utils
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d apex-pdp
-
-unset http_proxy https_proxy
-
-POLICY_API_IP=`get-instance-ip.sh policy-api`
-POLICY_PAP_IP=`get-instance-ip.sh policy-pap`
-MARIADB_IP=`get-instance-ip.sh mariadb`
-APEX_IP=`get-instance-ip.sh policy-apex-pdp`
-DMAAP_IP=`get-instance-ip.sh policy.api.simpledemo.onap.org`
-
-echo PAP IP IS ${POLICY_PAP_IP}
-echo MARIADB IP IS ${MARIADB_IP}
-echo API IP IS ${POLICY_API_IP}
-echo APEX IP IS ${APEX_IP}
-echo DMAAP_IP IS ${DMAAP_IP}
-
-# wait for the app to start up
-${SCRIPTS}/policy/wait_for_port.sh ${APEX_IP} 6969
-
-ROBOT_VARIABLES=""
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v APEX_IP:${APEX_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_API_IP:${POLICY_API_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_PAP_IP:${POLICY_PAP_IP}"
diff --git a/plans/policy/apex-pdp/teardown.sh b/plans/policy/apex-pdp/teardown.sh
deleted file mode 100644
index 86416e6e..00000000
--- a/plans/policy/apex-pdp/teardown.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2018 Ericsson. All rights reserved.
-#
-# Modifications copyright (c) 2019 Nordix Foundation.
-# Modifications Copyright (C) 2020 AT&T Intellectual Property.
-# ================================================================================
-# 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=========================================================
-
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/apex-pdp/testplan.txt b/plans/policy/apex-pdp/testplan.txt
deleted file mode 100644
index 07096cfa..00000000
--- a/plans/policy/apex-pdp/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/apex-pdp/apex-pdp-test.robot
diff --git a/plans/policy/api/setup.sh b/plans/policy/api/setup.sh
deleted file mode 100644
index 550337e9..00000000
--- a/plans/policy/api/setup.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-
-# Select branch
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-
-sudo apt-get -y install libxml2-utils
-bash ${SCRIPTS}/policy/get-models-examples.sh
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-DATA=${WORKSPACE}/models/models-examples/src/main/resources/policies
-
-# create a couple of variations of the policy definitions
-sed -e 's!Measurement_vGMUX!ADifferentValue!' \
- ${DATA}/vCPE.policy.monitoring.input.tosca.json \
- >${DATA}/vCPE.policy.monitoring.input.tosca.v1_2.json
-
-sed -e 's!"version": "1.0.0"!"version": "2.0.0"!' \
- -e 's!"policy-version": 1!"policy-version": 2!' \
- ${DATA}/vCPE.policy.monitoring.input.tosca.json \
- >${DATA}/vCPE.policy.monitoring.input.tosca.v2.json
-
-echo ${POLICY_API_VERSION}
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d api
-
-
-unset http_proxy https_proxy
-
-POLICY_API_IP=`get-instance-ip.sh policy-api`
-MARIADB_IP=`get-instance-ip.sh mariadb`
-
-echo API IP IS ${POLICY_API_IP}
-echo MARIADB IP IS ${MARIADB_IP}
-
-# wait for the app to start up
-${SCRIPTS}/policy/wait_for_port.sh ${POLICY_API_IP} 6969
-
-ROBOT_VARIABLES=""
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_API_IP:${POLICY_API_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DATA:${DATA}"
diff --git a/plans/policy/api/teardown.sh b/plans/policy/api/teardown.sh
deleted file mode 100755
index 6942e353..00000000
--- a/plans/policy/api/teardown.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/api/testplan.txt b/plans/policy/api/testplan.txt
deleted file mode 100644
index 1bfec142..00000000
--- a/plans/policy/api/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/api/api-test.robot
diff --git a/plans/policy/distribution/setup.sh b/plans/policy/distribution/setup.sh
deleted file mode 100644
index 73226140..00000000
--- a/plans/policy/distribution/setup.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2018 Ericsson. All rights reserved.
-#
-# Modifications copyright (c) 2019 Nordix Foundation.
-# Modifications Copyright (C) 2020 AT&T Intellectual Property.
-# ================================================================================
-# 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=========================================================
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-sudo apt-get -y install libxml2-utils
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-SCRIPT_DIR=${SCRIPTS}/policy/policy-distribution
-
-# Remaking the csar file in case if the file got corrupted
-zip -F ${SCRIPT_DIR}/config/distribution/csar/sample_csar_with_apex_policy.csar --out ${SCRIPT_DIR}/config/distribution/csar/csar_temp.csar
-
-# Remake temp directory
-rm -rf ${SCRIPT_DIR}/config/distribution/temp
-mkdir ${SCRIPT_DIR}/config/distribution/temp
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d distribution
-
-unset http_proxy https_proxy
-
-POLICY_API_IP=`get-instance-ip.sh policy-api`
-POLICY_PAP_IP=`get-instance-ip.sh policy-pap`
-MARIADB_IP=`get-instance-ip.sh mariadb`
-APEX_IP=`get-instance-ip.sh policy-apex-pdp`
-DMAAP_IP=`get-instance-ip.sh policy.api.simpledemo.onap.org`
-POLICY_DISTRIBUTION_IP=`get-instance-ip.sh policy-distribution`
-
-echo PAP IP IS ${POLICY_PAP_IP}
-echo MARIADB IP IS ${MARIADB_IP}
-echo API IP IS ${POLICY_API_IP}
-echo APEX IP IS ${APEX_IP}
-echo DMAAP_IP IS ${DMAAP_IP}
-echo POLICY_DISTRIBUTION_IP IS ${POLICY_DISTRIBUTION_IP}
-
-# wait for the app to start up
-${SCRIPTS}/policy/wait_for_port.sh ${POLICY_DISTRIBUTION_IP} 6969
-
-ROBOT_VARIABLES=""
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v APEX_IP:${APEX_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SCRIPT_DIR:${SCRIPT_DIR}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_DISTRIBUTION_IP:${POLICY_DISTRIBUTION_IP}"
diff --git a/plans/policy/distribution/teardown.sh b/plans/policy/distribution/teardown.sh
deleted file mode 100644
index 86416e6e..00000000
--- a/plans/policy/distribution/teardown.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2018 Ericsson. All rights reserved.
-#
-# Modifications copyright (c) 2019 Nordix Foundation.
-# Modifications Copyright (C) 2020 AT&T Intellectual Property.
-# ================================================================================
-# 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=========================================================
-
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/distribution/testplan.txt b/plans/policy/distribution/testplan.txt
deleted file mode 100644
index bfd8192e..00000000
--- a/plans/policy/distribution/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/distribution/distribution-test.robot
diff --git a/plans/policy/drools-applications/setup.sh b/plans/policy/drools-applications/setup.sh
deleted file mode 100755
index c4cbfa60..00000000
--- a/plans/policy/drools-applications/setup.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/bash
-#
-# ===========LICENSE_START====================================================
-# Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-
-# OS upgrades
-
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-SCR2=${WORKSPACE}/scripts/policy/drools-apps
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-sudo apt-get -y install libxml2-utils
-bash ${SCRIPTS}/policy/get-models-examples.sh
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d drools-apps
-
-unset http_proxy https_proxy
-
-DROOLS_IP=`get-instance-ip.sh drools-apps`
-API_IP=`get-instance-ip.sh policy-api`
-PAP_IP=`get-instance-ip.sh policy-pap`
-XACML_IP=`get-instance-ip.sh policy-xacml-pdp`
-SIM_IP=`get-instance-ip.sh policy.api.simpledemo.onap.org`
-export SIM_IP
-
-echo DROOLS IP IS ${DROOLS_IP}
-echo API IP IS ${API_IP}
-echo PAP IP IS ${PAP_IP}
-echo XACML IP IS ${XACML_IP}
-echo SIMULATORS IP IS ${SIM_IP}
-
-# wait for the app to start up
-${SCRIPTS}/policy/wait_for_port.sh ${DROOLS_IP} 6969
-
-# give enough time for the controllers to come up
-sleep 15
-
-DATA=${WORKSPACE}/models/models-examples/src/main/resources/policies
-
-ROBOT_VARIABLES=""
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SCR2:${SCR2}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DATA:${DATA}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DROOLS_IP:${DROOLS_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v API_IP:${API_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v PAP_IP:${PAP_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v XACML_IP:${XACML_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SIM_IP:${SIM_IP}"
diff --git a/plans/policy/drools-applications/teardown.sh b/plans/policy/drools-applications/teardown.sh
deleted file mode 100755
index 67de4a1a..00000000
--- a/plans/policy/drools-applications/teardown.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-#
-# ===========LICENSE_START====================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-
-mkdir -p $WORKSPACE/archives/
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml logs > $WORKSPACE/archives/docker-compose-drools-apps.log
-
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/drools-applications/testplan.txt b/plans/policy/drools-applications/testplan.txt
deleted file mode 100644
index 3878a4e2..00000000
--- a/plans/policy/drools-applications/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/drools-applications
diff --git a/plans/policy/drools-pdp/setup.sh b/plans/policy/drools-pdp/setup.sh
deleted file mode 100755
index 6b951356..00000000
--- a/plans/policy/drools-pdp/setup.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright 2017-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-
-# OS upgrades
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-# Component Versions
-
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-sudo apt-get -y install libxml2-utils
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d drools
-
-POLICY_DROOLS_IP=`get-instance-ip.sh drools`
-MARIADB_IP=`get-instance-ip.sh mariadb`
-
-echo DROOLS IP IS ${POLICY_DROOLS_IP}
-echo MARIADB IP IS ${MARIADB_IP}
-
-# wait for the app to start up - looking for telemtry service on port 9696
-${SCRIPTS}/policy/wait_for_port.sh ${POLICY_DROOLS_IP} 9696
-
-# give enough time for the controllers to come up
-sleep 15
-
-ROBOT_VARIABLES="-v POLICY_DROOLS_IP:${POLICY_DROOLS_IP}"
diff --git a/plans/policy/drools-pdp/teardown.sh b/plans/policy/drools-pdp/teardown.sh
deleted file mode 100755
index 5a3f16e5..00000000
--- a/plans/policy/drools-pdp/teardown.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2017-2020 AT&T Intellectual Property. All rights reserved.
-#
-# 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.
-#
-
-mkdir -p $WORKSPACE/archives/
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml logs > $WORKSPACE/archives/docker-compose-drools.log
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/drools-pdp/testplan.txt b/plans/policy/drools-pdp/testplan.txt
deleted file mode 100644
index ccdc8ff9..00000000
--- a/plans/policy/drools-pdp/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/drools-pdp
diff --git a/plans/policy/pap/setup.sh b/plans/policy/pap/setup.sh
deleted file mode 100644
index a1d153f8..00000000
--- a/plans/policy/pap/setup.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2019 Nordix Foundation.
-# Modifications Copyright (C) 2019-2020 AT&T Intellectual Property.
-# ================================================================================
-# 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=========================================================
-
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-sudo apt-get -y install libxml2-utils
-bash ${SCRIPTS}/policy/get-models-examples.sh
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d pap
-
-unset http_proxy https_proxy
-
-POLICY_PAP_IP=`get-instance-ip.sh policy-pap`
-POLICY_API_IP=`get-instance-ip.sh policy-api`
-MARIADB_IP=`get-instance-ip.sh mariadb`
-
-echo PAP IP IS ${POLICY_PAP_IP}
-echo API IP IS ${POLICY_API_IP}
-echo MARIADB IP IS ${MARIADB_IP}
-
-
-# wait for the app to start up
-${SCRIPTS}/policy/wait_for_port.sh ${POLICY_PAP_IP} 6969
-
-
-DATA=${WORKSPACE}/models/models-examples/src/main/resources/policies
-
-ROBOT_VARIABLES=""
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_PAP_IP:${POLICY_PAP_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_API_IP:${POLICY_API_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DATA:${DATA}"
diff --git a/plans/policy/pap/teardown.sh b/plans/policy/pap/teardown.sh
deleted file mode 100644
index cfed2097..00000000
--- a/plans/policy/pap/teardown.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2019 Nordix Foundation.
-# Modifications Copyright (C) 2019-2020 AT&T Intellectual Property.
-# ================================================================================
-# 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=========================================================
-
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/pap/testplan.txt b/plans/policy/pap/testplan.txt
deleted file mode 100644
index 6a5aa205..00000000
--- a/plans/policy/pap/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/pap/pap-test.robot
diff --git a/plans/policy/xacml-pdp/setup.sh b/plans/policy/xacml-pdp/setup.sh
deleted file mode 100644
index 6842e634..00000000
--- a/plans/policy/xacml-pdp/setup.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-echo "Uninstall docker-py and reinstall docker."
-pip uninstall -y docker-py
-pip uninstall -y docker
-pip install -U docker==2.7.0
-
-SCR_DMAAP=${SCRIPTS}/policy/drools-apps
-
-sudo apt-get -y install libxml2-utils
-bash ${SCRIPTS}/policy/get-models-examples.sh
-
-source ${SCRIPTS}/policy/detmVers.sh
-
-docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d xacml-pdp
-
-
-unset http_proxy https_proxy
-
-POLICY_API_IP=`get-instance-ip.sh policy-api`
-MARIADB_IP=`get-instance-ip.sh mariadb`
-POLICY_PDPX_IP=`get-instance-ip.sh policy-xacml-pdp`
-SIM_IP=`get-instance-ip.sh policy.api.simpledemo.onap.org`
-POLICY_PAP_IP=`get-instance-ip.sh policy-pap`
-
-export SIM_IP
-
-echo PDP IP IS ${POLICY_PDPX_IP}
-echo API IP IS ${POLICY_API_IP}
-echo PAP IP IS ${POLICY_PAP_IP}
-echo MARIADB IP IS ${MARIADB_IP}
-echo SIM_IP IS ${SIM_IP}
-
-# wait for the app to start up
-${SCRIPTS}/policy/wait_for_port.sh ${POLICY_PDPX_IP} 6969
-
-DATA2=${WORKSPACE}/models/models-examples/src/main/resources/policies
-
-ROBOT_VARIABLES=""
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SCR_DMAAP:${SCR_DMAAP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DATA2:${DATA2}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_PDPX_IP:${POLICY_PDPX_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_API_IP:${POLICY_API_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_PAP_IP:${POLICY_PAP_IP}"
-ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SIM_IP:${SIM_IP}"
diff --git a/plans/policy/xacml-pdp/teardown.sh b/plans/policy/xacml-pdp/teardown.sh
deleted file mode 100644
index 6942e353..00000000
--- a/plans/policy/xacml-pdp/teardown.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-# ============LICENSE_START=======================================================
-# Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-
-docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-all.yml down -v
diff --git a/plans/policy/xacml-pdp/testplan.txt b/plans/policy/xacml-pdp/testplan.txt
deleted file mode 100644
index 2b641dfd..00000000
--- a/plans/policy/xacml-pdp/testplan.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Test suites are relative paths under [integration/csit.git]/tests/.
-# Place the suites in run order.
-policy/xacml-pdp/xacml-pdp-test.robot
diff --git a/scripts/policy/config/apex-pdp/OnapPfConfig.json b/scripts/policy/config/apex-pdp/OnapPfConfig.json
deleted file mode 100644
index 59ba604d..00000000
--- a/scripts/policy/config/apex-pdp/OnapPfConfig.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name":"OnapPfParameterGroup",
- "restServerParameters": {
- "host": "0.0.0.0",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34",
- "https": true
- },
- "pdpStatusParameters":{
- "pdpGroup": "defaultGroup",
- "timeIntervalMs": 120000,
- "pdpType":"apex",
- "description":"Pdp Heartbeat",
- "supportedPolicyTypes": [
- {
- "name": "onap.policies.controlloop.operational.common.Apex",
- "version": "1.0.0"
- },
- {
- "name": "onap.policies.native.Apex",
- "version": "1.0.0"
- }
- ]
- },
- "topicParameterGroup": {
- "topicSources" : [{
- "topic" : "POLICY-PDP-PAP",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps" : true,
- "allowSelfSignedCerts" : true
- }],
- "topicSinks" : [{
- "topic" : "POLICY-PDP-PAP",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps" : true,
- "allowSelfSignedCerts" : true
- }]
- }
-}
diff --git a/scripts/policy/config/db/db.conf b/scripts/policy/config/db/db.conf
deleted file mode 100644
index d6764f97..00000000
--- a/scripts/policy/config/db/db.conf
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 2019 AT&T Intellectual Property. All rights reserved
-#
-# 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.
-MYSQL_ROOT_PASSWORD=secret
-MYSQL_USER=policy_user
-MYSQL_PASSWORD=policy_user
diff --git a/scripts/policy/config/db/db.sh b/scripts/policy/config/db/db.sh
deleted file mode 100755
index 24b04003..00000000
--- a/scripts/policy/config/db/db.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash -xv
-# Copyright 2019 AT&T Intellectual Property. All rights reserved
-#
-# 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.
-
-for db in support onap_sdk log migration operationshistory10 pooling policyadmin operationshistory
-do
- mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "CREATE DATABASE IF NOT EXISTS ${db};"
- mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "GRANT ALL PRIVILEGES ON \`${db}\`.* TO '${MYSQL_USER}'@'%' ;"
-done
-
-mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "FLUSH PRIVILEGES;"
diff --git a/scripts/policy/config/distribution/defaultConfig.json b/scripts/policy/config/distribution/defaultConfig.json
deleted file mode 100644
index facee9bc..00000000
--- a/scripts/policy/config/distribution/defaultConfig.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "name":"SDCDistributionGroup",
- "restServerParameters":{
- "host":"0.0.0.0",
- "port":6969,
- "userName":"healthcheck",
- "password":"zb!XztG34",
- "https": true
- },
- "receptionHandlerParameters":{
- "FileReceptionHandler":{
- "receptionHandlerType":"File",
- "receptionHandlerClassName":"org.onap.policy.distribution.reception.handling.file.FileSystemReceptionHandler",
- "receptionHandlerConfigurationName":"fileConfiguration",
- "pluginHandlerParameters":{
- "policyDecoders":{
- "ApexDecoder":{
- "decoderType":"ApexDecoder",
- "decoderClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicy",
- "decoderConfigurationName": "apexDecoderConfiguration"
- }
- },
- "policyForwarders":{
- "LifeCycleApiForwarder":{
- "forwarderType":"LifeCycleAPI",
- "forwarderClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiPolicyForwarder",
- "forwarderConfigurationName": "lifecycleApiConfiguration"
- }
- }
- }
- }
- },
- "receptionHandlerConfigurationParameters":{
- "fileConfiguration":{
- "parameterClassName":"org.onap.policy.distribution.reception.handling.file.FileSystemReceptionHandlerConfigurationParameterGroup",
- "parameters":{
- "watchPath": "/opt/app/policy/distribution/etc/temp/",
- "maxThread": 1
- }
- }
- },
- "policyDecoderConfigurationParameters":{
- "apexDecoderConfiguration":{
- "parameterClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicyParameterGroup",
- "parameters":{
- "policyFileName": "apex_policy.json",
- "policyTypeFileName": "apex_policy_type.json"
- }
- }
- },
- "policyForwarderConfigurationParameters":{
- "lifecycleApiConfiguration":{
- "parameterClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiForwarderParameters",
- "parameters":{
- "apiParameters": {
- "hostName": "policy-api",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34"
- },
- "papParameters": {
- "hostName": "policy-pap",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34"
- },
- "isHttps": true,
- "deployPolicies": true
- }
- }
- }
-}
diff --git a/scripts/policy/config/drools-apps/custom/features.pre.sh b/scripts/policy/config/drools-apps/custom/features.pre.sh
deleted file mode 100755
index fd7b5b91..00000000
--- a/scripts/policy/config/drools-apps/custom/features.pre.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-# ============LICENSE_START===================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-
-sh -c "features disable distributed-locking"
diff --git a/scripts/policy/config/drools-apps/custom/standalone-settings.xml b/scripts/policy/config/drools-apps/custom/standalone-settings.xml
deleted file mode 100644
index ebd6dd2a..00000000
--- a/scripts/policy/config/drools-apps/custom/standalone-settings.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ============LICENSE_START=======================================================
- Base Package
- ================================================================================
- Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
- ================================================================================
- 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.
- ============LICENSE_END=========================================================
- -->
-
-
-<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
-
- <offline>true</offline>
-
- <profiles>
-
- <profile>
- <id>policy-local</id>
-
- <repositories>
- <repository>
- <id>file-repository</id>
- <url>file:${user.home}/.m2/file-repository</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- </repository>
- </repositories>
-
- </profile>
-
- </profiles>
-
- <activeProfiles>
- <activeProfile>policy-local</activeProfile>
- </activeProfiles>
-
-</settings>
diff --git a/scripts/policy/config/drools-apps/env/base.conf b/scripts/policy/config/drools-apps/env/base.conf
deleted file mode 100644
index 673cfaf3..00000000
--- a/scripts/policy/config/drools-apps/env/base.conf
+++ /dev/null
@@ -1,132 +0,0 @@
-# ============LICENSE_START==================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ===========================================================================
-# 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.
-# ============LICENSE_END====================================================
-
-# JVM options
-
-JVM_OPTIONS=-server -Xms512m -Xmx512m
-
-# SYSTEM software configuration
-
-DEBUG=y
-POLICY_HOME=/opt/app/policy
-POLICY_LOGS=/var/log/onap/policy/pdpd
-KEYSTORE_PASSWD=Pol1cy_0nap
-TRUSTSTORE_PASSWD=Pol1cy_0nap
-
-# Telemetry credentials
-
-TELEMETRY_PORT=9696
-TELEMETRY_HOST=0.0.0.0
-TELEMETRY_USER=demo@people.osaaf.org
-TELEMETRY_PASSWORD=demo123456!
-
-# nexus repository
-
-SNAPSHOT_REPOSITORY_ID=
-SNAPSHOT_REPOSITORY_URL=
-RELEASE_REPOSITORY_ID=
-RELEASE_REPOSITORY_URL=
-REPOSITORY_USERNAME=
-REPOSITORY_PASSWORD=
-REPOSITORY_OFFLINE=true
-
-# Relational (SQL) DB access
-
-SQL_HOST=mariadb
-SQL_USER=policy_user
-SQL_PASSWORD=policy_user
-
-# AAF
-
-AAF=false
-AAF_NAMESPACE=org.onap.policy
-AAF_HOST=aaf.api.simpledemo.onap.org
-
-# PDP-D DMaaP configuration channel
-
-PDPD_CONFIGURATION_TOPIC=PDPD-CONFIGURATION
-PDPD_CONFIGURATION_API_KEY=
-PDPD_CONFIGURATION_API_SECRET=
-PDPD_CONFIGURATION_CONSUMER_GROUP=
-PDPD_CONFIGURATION_CONSUMER_INSTANCE=
-PDPD_CONFIGURATION_PARTITION_KEY=
-
-# PAP-PDP configuration channel
-
-POLICY_PDP_PAP_TOPIC=POLICY-PDP-PAP
-POLICY_PDP_PAP_API_KEY=
-POLICY_PDP_PAP_API_SECRET=
-
-# PAP
-
-PAP_HOST=pap
-PAP_USERNAME=testpap
-PAP_PASSWORD=alpha123
-
-# PDP-X
-
-GUARD_DISABLED=false
-PDP_HOST=policy-xacml-pdp
-PDP_PORT=6969
-PDP_CONTEXT_URI=policy/pdpx/v1/
-PDP_USERNAME=healthcheck
-PDP_PASSWORD=zb!XztG34
-PDP_CLIENT_USERNAME=python
-PDP_CLIENT_PASSWORD=test
-PDP_ENVIRONMENT=TEST
-
-# DCAE DMaaP
-
-DCAE_TOPIC=unauthenticated.DCAE_CL_OUTPUT
-DCAE_SERVERS=policy.api.simpledemo.onap.org
-DCAE_CONSUMER_GROUP=dcae.policy.shared
-
-# Open DMaaP
-
-DMAAP_SERVERS=policy.api.simpledemo.onap.org
-
-# AAI
-
-AAI_HOST=policy.api.simpledemo.onap.org
-AAI_PORT=6666
-AAI_CONTEXT_URI=
-AAI_USERNAME=policy@policy.onap.org
-AAI_PASSWORD=demo123456!
-
-# MSO
-
-SO_HOST=policy.api.simpledemo.onap.org
-SO_PORT=6669
-SO_CONTEXT_URI=
-SO_URL=https://policy.api.simpledemo.onap.org:6669/
-SO_USERNAME=InfraPortalClient
-SO_PASSWORD=password1$
-
-# VFC
-
-VFC_HOST=policy.api.simpledemo.onap.org
-VFC_PORT=6670
-VFC_CONTEXT_URI=
-VFC_USERNAME=
-VFC_PASSWORD=
-
-# SDNC
-
-SDNC_HOST=policy.api.simpledemo.onap.org
-SDNC_PORT=6668
-SDNC_CONTEXT_URI=
-SDNC_USERNAME=
-SDNC_PASSWORD=
diff --git a/scripts/policy/config/drools-apps/env/feature-healthcheck.conf b/scripts/policy/config/drools-apps/env/feature-healthcheck.conf
deleted file mode 100644
index 1c710547..00000000
--- a/scripts/policy/config/drools-apps/env/feature-healthcheck.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-# ============LICENSE_START=======================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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.
-# ============LICENSE_END=========================================================
-
-HEALTHCHECK_USER=demo@people.osaaf.org
-HEALTHCHECK_PASSWORD=demo123456!
diff --git a/scripts/policy/config/drools-apps/env/feature-pooling-dmaap.conf b/scripts/policy/config/drools-apps/env/feature-pooling-dmaap.conf
deleted file mode 100644
index 3808e3d9..00000000
--- a/scripts/policy/config/drools-apps/env/feature-pooling-dmaap.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-# ============LICENSE_START=======================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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.
-# ============LICENSE_END=========================================================
-
-POOLING_TOPIC=POOLING
diff --git a/scripts/policy/config/drools/custom/noop.pre.sh b/scripts/policy/config/drools/custom/noop.pre.sh
deleted file mode 100755
index 63bdc4cf..00000000
--- a/scripts/policy/config/drools/custom/noop.pre.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash -x
-# ============LICENSE_START=======================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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.
-# ============LICENSE_END=========================================================
-
-sed -i "s/^dmaap/noop/g" \
- ${POLICY_HOME}/config/engine.properties \
- ${POLICY_HOME}/config/feature-lifecycle.properties
-
-chmod 644 ${POLICY_HOME}/config/engine.properties ${POLICY_HOME}/config/feature-lifecycle.properties
diff --git a/scripts/policy/config/drools/env/base.conf b/scripts/policy/config/drools/env/base.conf
deleted file mode 100644
index 891de49f..00000000
--- a/scripts/policy/config/drools/env/base.conf
+++ /dev/null
@@ -1,132 +0,0 @@
-# ============LICENSE_START=======================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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.
-# ============LICENSE_END=========================================================
-
-# JVM options
-
-JVM_OPTIONS=-server -Xms512m -Xmx512m
-
-# SYSTEM software configuration
-
-DEBUG=y
-POLICY_HOME=/opt/app/policy
-POLICY_LOGS=/var/log/onap/policy/pdpd
-KEYSTORE_PASSWD=Pol1cy_0nap
-TRUSTSTORE_PASSWD=Pol1cy_0nap
-
-# Telemetry credentials
-
-TELEMETRY_PORT=9696
-TELEMETRY_HOST=0.0.0.0
-TELEMETRY_USER=demo@people.osaaf.org
-TELEMETRY_PASSWORD=demo123456!
-
-# nexus repository
-
-SNAPSHOT_REPOSITORY_ID=policy-nexus-snapshots
-SNAPSHOT_REPOSITORY_URL=http://nexus:8081/nexus/content/repositories/snapshots/
-RELEASE_REPOSITORY_ID=policy-nexus-releases
-RELEASE_REPOSITORY_URL=http://nexus:8081/nexus/content/repositories/releases/
-REPOSITORY_USERNAME=admin
-REPOSITORY_PASSWORD=admin123
-REPOSITORY_OFFLINE=false
-
-# Relational (SQL) DB access
-
-SQL_HOST=mariadb
-SQL_USER=policy_user
-SQL_PASSWORD=policy_user
-
-# AAF
-
-AAF=false
-AAF_NAMESPACE=org.onap.policy
-AAF_HOST=aaf.api.simpledemo.onap.org
-
-# PDP-D DMaaP configuration channel
-
-PDPD_CONFIGURATION_TOPIC=PDPD-CONFIGURATION
-PDPD_CONFIGURATION_API_KEY=
-PDPD_CONFIGURATION_API_SECRET=
-PDPD_CONFIGURATION_CONSUMER_GROUP=
-PDPD_CONFIGURATION_CONSUMER_INSTANCE=
-PDPD_CONFIGURATION_PARTITION_KEY=
-
-# PAP-PDP configuration channel
-
-POLICY_PDP_PAP_TOPIC=POLICY-PDP-PAP
-POLICY_PDP_PAP_API_KEY=
-POLICY_PDP_PAP_API_SECRET=
-
-# PAP
-
-PAP_HOST=
-PAP_USERNAME=
-PAP_PASSWORD=
-
-# PDP-X
-
-PDP_HOST=
-PDP_PORT=
-PDP_CONTEXT_URI=policy/pdpx/v1/
-PDP_USERNAME=
-PDP_PASSWORD=
-PDP_CLIENT_USERNAME=
-PDP_CLIENT_PASSWORD=
-PDP_ENVIRONMENT=
-GUARD_DISABLED=false
-
-# DCAE DMaaP
-
-DCAE_TOPIC=unauthenticated.DCAE_CL_OUTPUT
-DCAE_SERVERS=
-DCAE_CONSUMER_GROUP=dcae.policy.shared
-
-# Open DMaaP
-
-DMAAP_SERVERS=mr.api.simpledemo.onap.org
-
-# AAI
-
-AAI_HOST=aai.api.simpledemo.onap.org
-AAI_PORT=8443
-AAI_CONTEXT_URI=
-AAI_USERNAME=policy@policy.onap.org
-AAI_PASSWORD=demo123456!
-
-# MSO
-
-SO_HOST=vm1.mso.simpledemo.onap.org
-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$
-
-# VFC
-
-VFC_HOST=
-VFC_PORT=
-VFC_CONTEXT_URI=api/nslcm/v1/
-VFC_USERNAME=
-VFC_PASSWORD=
-
-# SDNC
-
-SDNC_HOST=
-SDNC_PORT=
-SDNC_CONTEXT_URI=restconf/operations/
-SDNC_USERNAME=
-SDNC_PASSWORD=
diff --git a/scripts/policy/config/pap/defaultConfig.json b/scripts/policy/config/pap/defaultConfig.json
deleted file mode 100644
index 1e47c7e7..00000000
--- a/scripts/policy/config/pap/defaultConfig.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "name": "PapGroup",
- "restServerParameters": {
- "host": "0.0.0.0",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34",
- "https": true,
- "aaf": false
- },
- "pdpParameters": {
- "heartBeatMs": 120000,
- "updateParameters": {
- "maxRetryCount": 1,
- "maxWaitMs": 30000
- },
- "stateChangeParameters": {
- "maxRetryCount": 1,
- "maxWaitMs": 30000
- }
- },
- "databaseProviderParameters": {
- "name": "PolicyProviderParameterGroup",
- "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl",
- "databaseDriver": "org.mariadb.jdbc.Driver",
- "databaseUrl": "jdbc:mariadb://mariadb:3306/policyadmin",
- "databaseUser": "policy_user",
- "databasePassword": "policy_user",
- "persistenceUnit": "PolicyMariaDb"
- },
- "topicParameterGroup": {
- "topicSources" : [{
- "topic" : "POLICY-PDP-PAP",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps": true,
- "allowSelfSignedCerts" : true
- }],
- "topicSinks" : [{
- "topic" : "POLICY-PDP-PAP",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps": true,
- "allowSelfSignedCerts" : true
- },
- {
- "topic" : "POLICY-NOTIFICATION",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps": true,
- "allowSelfSignedCerts" : true
- }]
- },
- "healthCheckRestClientParameters":[{
- "clientName": "api",
- "hostname": "policy-api",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34",
- "useHttps": true,
- "allowSelfSignedCerts" : true,
- "basePath": "policy/api/v1/healthcheck"
- }]
-}
diff --git a/scripts/policy/config/policy-csit.conf b/scripts/policy/config/policy-csit.conf
deleted file mode 100644
index 95c14504..00000000
--- a/scripts/policy/config/policy-csit.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-POLICY_MARIADB_VER=10.2.25
-NEXUS_URL=https://nexus.onap.org/content/repositories/snapshots
-
-GIT_TOP=$(git rev-parse --show-toplevel)
-GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' \
- "${GIT_TOP}"/.gitreview)
-echo GERRIT_BRANCH=${GERRIT_BRANCH}
diff --git a/scripts/policy/config/sim-all/simParameters.json b/scripts/policy/config/sim-all/simParameters.json
deleted file mode 100644
index 4b009b6f..00000000
--- a/scripts/policy/config/sim-all/simParameters.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "dmaapProvider": {
- "name": "DMaaP simulator",
- "topicSweepSec": 300
- },
- "restServers": [
- {
- "name": "DMaaP simulator",
- "providerClass": "org.onap.policy.models.sim.dmaap.rest.DmaapSimRestControllerV1",
- "host": "0.0.0.0",
- "port": 3905,
- "https": true
- },
- {
- "name": "A&AI simulator",
- "providerClass": "org.onap.policy.simulators.AaiSimulatorJaxRs",
- "host": "0.0.0.0",
- "port": 6666,
- "https": true,
- "userName": "policy@policy.onap.org",
- "password": "demo123456!"
- },
- {
- "name": "SDNC simulator",
- "providerClass": "org.onap.policy.simulators.SdncSimulatorJaxRs",
- "host": "0.0.0.0",
- "port": 6668,
- "https": true
- },
- {
- "name": "SO simulator",
- "providerClass": "org.onap.policy.simulators.SoSimulatorJaxRs",
- "host": "0.0.0.0",
- "port": 6669,
- "https": false,
- "userName": "InfraPortalClient",
- "password": "password1$"
- },
- {
- "name": "VFC simulator",
- "providerClass": "org.onap.policy.simulators.VfcSimulatorJaxRs",
- "host": "0.0.0.0",
- "port": 6670,
- "https": true
- }
- ],
- "topicSinks": [
- {
- "topic": "APPC-CL",
- "servers": ["${HOST_NAME}"],
- "topicCommInfrastructure": "DMAAP",
- "useHttps": true,
- "apiKey": "some-key",
- "apiSecret": "some-secret"
- },
- {
- "topic": "APPC-LCM-WRITE",
- "servers": ["${HOST_NAME}"],
- "topicCommInfrastructure": "DMAAP",
- "useHttps": true,
- "apiKey": "some-key",
- "apiSecret": "some-secret"
- }
- ],
- "topicSources": [
- {
- "topic": "APPC-CL",
- "servers": ["${HOST_NAME}"],
- "topicCommInfrastructure": "DMAAP",
- "useHttps": true,
- "apiKey": "some-key",
- "apiSecret": "some-secret"
- },
- {
- "topic": "APPC-LCM-READ",
- "servers": ["${HOST_NAME}"],
- "topicCommInfrastructure": "DMAAP",
- "useHttps": true,
- "apiKey": "some-key",
- "apiSecret": "some-secret"
- }
- ],
- "topicServers": [
- {
- "name": "APPC Legacy simulator",
- "providerClass": "org.onap.policy.simulators.AppcLegacyTopicServer",
- "sink": "APPC-CL",
- "source": "APPC-CL"
- },
- {
- "name": "APPC-LCM simulator",
- "providerClass": "org.onap.policy.simulators.AppcLcmTopicServer",
- "sink": "APPC-LCM-WRITE",
- "source": "APPC-LCM-READ"
- }
- ],
- "grpcServer": {
- "name": "CDS simulator",
- "providerClass": "org.onap.policy.simulators.CdsSimulator",
- "host": "0.0.0.0",
- "port": 6680,
- "timeout": 30,
- "username": "ccsdkapps",
- "password": "ccsdkapps",
- "resourceLocation": "org/onap/policy/simulators/cds/",
- "successRepeatCount": 0,
- "requestedResponseDelayMs": 0
- }
-}
diff --git a/scripts/policy/config/xacml-pdp/defaultConfig.json b/scripts/policy/config/xacml-pdp/defaultConfig.json
deleted file mode 100644
index f489919a..00000000
--- a/scripts/policy/config/xacml-pdp/defaultConfig.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "XacmlPdpParameters",
- "pdpGroup": "defaultGroup",
- "pdpType": "xacml",
- "restServerParameters": {
- "host": "0.0.0.0",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34",
- "https": true,
- "aaf": false
- },
- "policyApiParameters": {
- "host": "policy-api",
- "port": 6969,
- "userName": "healthcheck",
- "password": "zb!XztG34",
- "https": true,
- "aaf": false
- },
- "applicationPath": "/opt/app/policy/pdpx/apps",
- "topicParameterGroup": {
- "topicSources" : [{
- "topic" : "POLICY-PDP-PAP",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps" : true,
- "allowSelfSignedCerts" : true
- }],
- "topicSinks" : [{
- "topic" : "POLICY-PDP-PAP",
- "servers" : [ "policy.api.simpledemo.onap.org" ],
- "topicCommInfrastructure" : "dmaap",
- "useHttps" : true,
- "allowSelfSignedCerts" : true
- }]
- }
-}
diff --git a/scripts/policy/detmVers.sh b/scripts/policy/detmVers.sh
deleted file mode 100644
index d37b4792..00000000
--- a/scripts/policy/detmVers.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-# ============LICENSE_START====================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# =============================================================================
-# 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======================================================
-
-SCRIPTS="${SCRIPTS-scripts}"
-
-source ${SCRIPTS}/policy/config/policy-csit.conf
-export POLICY_MARIADB_VER
-
-echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}
-
-POLICY_MODELS_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/models/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION}
-
-POLICY_API_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_API_VERSION=${POLICY_API_VERSION}
-
-POLICY_PAP_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION}
-
-POLICY_XACML_PDP_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION}
-
-POLICY_DROOLS_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/drools-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION}
-
-POLICY_DROOLS_APPS_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION}
-
-POLICY_APEX_PDP_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION}
-
-POLICY_DISTRIBUTION_VERSION=$(
- curl -q --silent \
- https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} |
- xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
-export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest
-echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION}
diff --git a/scripts/policy/docker-compose-all.yml b/scripts/policy/docker-compose-all.yml
deleted file mode 100644
index 00f76350..00000000
--- a/scripts/policy/docker-compose-all.yml
+++ /dev/null
@@ -1,190 +0,0 @@
-#
-# ===========LICENSE_START====================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-version: '2'
-services:
- mariadb:
- image: nexus3.onap.org:10001/mariadb:${POLICY_MARIADB_VER}
- container_name: mariadb
- hostname: mariadb
- command: ['--lower-case-table-names=1', '--wait_timeout=28800']
- env_file: config/db/db.conf
- volumes:
- - ./config/db:/docker-entrypoint-initdb.d:ro
- expose:
- - 3306
- policy.api.simpledemo.onap.org:
- image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
- container_name: policy.api.simpledemo.onap.org
- hostname: policy.api.simpledemo.onap.org
- volumes:
- - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
- expose:
- - 6666
- - 6668
- - 6669
- - 6670
- - 3905
- api:
- image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
- container_name: policy-api
- depends_on:
- - mariadb
- hostname: policy-api
- expose:
- - 6969
- volumes:
- - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
- entrypoint: ./wait_for_port.sh
- command: [
- '-c', './policy-api.sh',
- 'mariadb', '3306'
- ]
- pap:
- image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
- container_name: policy-pap
- depends_on:
- - mariadb
- - policy.api.simpledemo.onap.org
- - api
- hostname: policy-pap
- expose:
- - 6969
- volumes:
- - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
- - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
- entrypoint: ./wait_for_port.sh
- command: [
- '-c', './policy-pap.sh',
- 'mariadb', '3306',
- 'policy.api.simpledemo.onap.org', '3905',
- 'api', '6969'
- ]
- xacml-pdp:
- image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
- container_name: policy-xacml-pdp
- depends_on:
- - mariadb
- - policy.api.simpledemo.onap.org
- - pap
- hostname: policy-xacml-pdp
- expose:
- - 6969
- volumes:
- - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
- - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
- entrypoint: ./wait_for_port.sh
- command: [
- '-c', './policy-pdpx.sh',
- 'mariadb', '3306',
- 'policy.api.simpledemo.onap.org', '3905',
- 'pap', '6969'
- ]
- drools:
- image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
- container_name: drools
- depends_on:
- - mariadb
- - policy.api.simpledemo.onap.org
- - pap
- hostname: drools
- expose:
- - 6969
- - 9696
- volumes:
- - ./config/drools/custom:/tmp/policy-install/config:ro
- - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
- env_file:
- - config/drools/env/base.conf
- entrypoint: /opt/app/policy/bin/wait_for_port.sh
- command: [
- '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
- 'mariadb', '3306',
- 'policy.api.simpledemo.onap.org', '3905'
- ]
- drools-apps:
- image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
- container_name: drools-apps
- depends_on:
- - mariadb
- - policy.api.simpledemo.onap.org
- - pap
- - xacml-pdp
- hostname: drools-apps
- expose:
- - 6969
- - 9696
- volumes:
- - ./config/drools-apps/custom:/tmp/policy-install/config:ro
- - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
- env_file:
- - config/drools-apps/env/base.conf
- - config/drools-apps/env/feature-healthcheck.conf
- - config/drools-apps/env/feature-pooling-dmaap.conf
- entrypoint: /opt/app/policy/bin/wait_for_port.sh
- command: [
- '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
- 'mariadb', '3306',
- 'policy.api.simpledemo.onap.org', '3905',
- 'pap', '6969',
- 'policy.api.simpledemo.onap.org', '6666',
- 'policy.api.simpledemo.onap.org', '6668',
- 'policy.api.simpledemo.onap.org', '6669',
- 'policy.api.simpledemo.onap.org', '6670'
- ]
- apex-pdp:
- image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
- container_name: policy-apex-pdp
- depends_on:
- - mariadb
- - policy.api.simpledemo.onap.org
- - pap
- hostname: policy-apex-pdp
- expose:
- - 6969
- - 23324
- volumes:
- - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
- - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
- entrypoint: /opt/app/policy/bin/wait_for_port.sh
- command: [
- '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
- 'mariadb', '3306',
- 'policy.api.simpledemo.onap.org', '3905',
- 'pap', '6969'
- ]
- distribution:
- image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
- container_name: policy-distribution
- depends_on:
- - mariadb
- - api
- - pap
- - apex-pdp
- hostname: policy-distribution
- volumes:
- - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
- - ./policy-distribution/config/distribution/temp/:/opt/app/policy/distribution/etc/temp/:ro
- - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
- entrypoint: /opt/app/policy/bin/wait_for_port.sh
- command: [
- '-c', './policy-dist.sh',
- 'mariadb', '3306',
- 'policy.api.simpledemo.onap.org', '3905',
- 'pap', '6969',
- 'apex-pdp', '6969'
- ]
diff --git a/scripts/policy/drools-apps/deploy.drools.policies.json b/scripts/policy/drools-apps/deploy.drools.policies.json
deleted file mode 100644
index 24c90d0d..00000000
--- a/scripts/policy/drools-apps/deploy.drools.policies.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "groups": [
- {
- "name": "defaultGroup",
- "deploymentSubgroups": [
- {
- "pdpType": "drools",
- "action": "POST",
- "policies": [
- {
- "name": "operational.restart",
- "version": "1.0.0"
- },
- {
- "name": "operational.scaleout",
- "version": "1.0.0"
- },
- {
- "name": "operational.modifyconfig",
- "version": "1.0.0"
- }
- ]
- }
- ]
- }
- ]
-}
diff --git a/scripts/policy/drools-apps/deploy.xacml.policies.json b/scripts/policy/drools-apps/deploy.xacml.policies.json
deleted file mode 100644
index 46da9021..00000000
--- a/scripts/policy/drools-apps/deploy.xacml.policies.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "groups": [
- {
- "name": "defaultGroup",
- "deploymentSubgroups": [
- {
- "pdpType": "xacml",
- "action": "POST",
- "policies": [
- {
- "name": "onap.restart.tca",
- "version": "1.0.0"
- },
- {
- "name": "onap.scaleout.tca",
- "version": "1.0.0"
- },
- {
- "name": "onap.vfirewall.tca",
- "version": "1.0.0"
- }
- ]
- }
- ]
- }
- ]
-}
diff --git a/scripts/policy/drools-apps/make_topic.sh b/scripts/policy/drools-apps/make_topic.sh
deleted file mode 100755
index 36d43e9d..00000000
--- a/scripts/policy/drools-apps/make_topic.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-#
-# ===========LICENSE_START====================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-
-#
-# Creates a topic, which happens as a side-effect of polling it.
-#
-
-if [ $# -ne 1 ]
-then
- echo "arg(s): topic-name" >&2
- exit 1
-fi
-
-topic="${1}"
-
-curl -s -k "https://${SIM_IP}:3905/events/${topic}/script/1?limit=1&timeout=0"
-echo
diff --git a/scripts/policy/drools-apps/onset.sh b/scripts/policy/drools-apps/onset.sh
deleted file mode 100755
index f2918a68..00000000
--- a/scripts/policy/drools-apps/onset.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-#
-# ===========LICENSE_START====================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-
-#
-# Injects an ONSET event on the DCAE_CL_OUTPUT topic.
-#
-
-if [ $# -ne 1 ]
-then
- echo "arg(s): json-message-file-name" >&2
- exit 1
-fi
-
-curl -k -H "Content-type: application/json" --data-binary @$1 \
- https://${SIM_IP}:3905/events/unauthenticated.DCAE_CL_OUTPUT
-echo
diff --git a/scripts/policy/drools-apps/vcpeOnset.json b/scripts/policy/drools-apps/vcpeOnset.json
deleted file mode 100644
index 7dd9d5a0..00000000
--- a/scripts/policy/drools-apps/vcpeOnset.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
- "closedLoopAlarmStart": 1463679805324,
- "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
- "closedLoopEventStatus": "ONSET",
- "requestID": "664be3d2-6c12-4f4b-a3e7-c349acced200",
- "target_type": "VNF",
- "target": "generic-vnf.vnf-id",
- "AAI": {
- "vserver.is-closed-loop-disabled": "false",
- "vserver.prov-status": "ACTIVE",
- "generic-vnf.vnf-id": "vCPE_Infrastructure_vGMUX_demo_app"
- },
- "from": "DCAE",
- "version": "1.0.2"
-}
diff --git a/scripts/policy/drools-apps/vdnsOnset.json b/scripts/policy/drools-apps/vdnsOnset.json
deleted file mode 100644
index 13f69095..00000000
--- a/scripts/policy/drools-apps/vdnsOnset.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
- "closedLoopAlarmStart": 1463679805324,
- "closedLoopEventClient": "microservice.stringmatcher",
- "closedLoopEventStatus": "ONSET",
- "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
- "target_type": "VNF",
- "target": "vserver.vserver-name",
- "AAI": {
- "vserver.is-closed-loop-disabled": "false",
- "vserver.prov-status": "ACTIVE",
- "vserver.vserver-name": "OzVServer"
- },
- "from": "DCAE",
- "version": "1.0.2"
-}
diff --git a/scripts/policy/drools-apps/vfwOnset.json b/scripts/policy/drools-apps/vfwOnset.json
deleted file mode 100644
index 7782867a..00000000
--- a/scripts/policy/drools-apps/vfwOnset.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
- "closedLoopAlarmStart": 1463679805324,
- "closedLoopEventClient": "microservice.stringmatcher",
- "closedLoopEventStatus": "ONSET",
- "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
- "target_type": "VNF",
- "target": "generic-vnf.vnf-name",
- "AAI": {
- "vserver.is-closed-loop-disabled": "false",
- "vserver.prov-status": "ACTIVE",
- "generic-vnf.vnf-name": "fw0002vm002fw002",
- "vserver.vserver-name": "OzVServer"
- },
- "from": "DCAE",
- "version": "1.0.2"
-}
diff --git a/scripts/policy/drools-apps/wait_topic.sh b/scripts/policy/drools-apps/wait_topic.sh
deleted file mode 100755
index 4271abc6..00000000
--- a/scripts/policy/drools-apps/wait_topic.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-#
-# ===========LICENSE_START====================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-
-#
-# Polls a topic for a message. Additional text items can be specified,
-# in which case, it discards messages that do not contain all of the
-# specified text items.
-#
-# Exits with a non-zero status if no matching message is received on the
-# topic before the timeout.
-#
-
-if [ $# -lt 1 ]
-then
- echo "arg(s): topic-name [text-to-match1 [text-to-match2 ...]]" >&2
- exit 1
-fi
-
-topic="${1}"
-shift
-
-matched=no
-
-while [ ${matched} = "no" ]
-do
- msg=`curl -s -k "https://${SIM_IP}:3905/events/${topic}/script/1?limit=1"`
- if [ $? -ne 0 -o "${msg}" = "[]" ]
- then
- echo not found >&2
- exit 2
- fi
-
- matched=yes
- for text in "$@"
- do
- echo "${msg}" | grep -q "${text}"
- if [ $? -ne 0 ]
- then
- matched=no
- break
- fi
- done
-done
-
-echo "${msg}"
diff --git a/scripts/policy/get-models-examples.sh b/scripts/policy/get-models-examples.sh
deleted file mode 100644
index 1860511e..00000000
--- a/scripts/policy/get-models-examples.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-#
-# ============LICENSE_START===================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
-# ============================================================================
-# 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.
-# ============LICENSE_END=====================================================
-#
-
-source ${SCRIPTS}/policy/config/policy-csit.conf
-
-rm -rf ${WORKSPACE}/models
-mkdir ${WORKSPACE}/models
-cd ${WORKSPACE}
-
-# download models examples
-git clone --depth 1 https://gerrit.onap.org/r/policy/models -b ${GERRIT_BRANCH}
diff --git a/scripts/policy/policy-distribution/config/distribution/csar/sample_csar_with_apex_policy.csar b/scripts/policy/policy-distribution/config/distribution/csar/sample_csar_with_apex_policy.csar
deleted file mode 100644
index 4d293e42..00000000
--- a/scripts/policy/policy-distribution/config/distribution/csar/sample_csar_with_apex_policy.csar
+++ /dev/null
Binary files differ
diff --git a/scripts/policy/wait_for_port.sh b/scripts/policy/wait_for_port.sh
deleted file mode 100755
index 1d2f5155..00000000
--- a/scripts/policy/wait_for_port.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-tmout=120
-cmd=
-while getopts c:t: opt; do
- case "$opt" in
- c) cmd="$OPTARG" ;;
- t) tmout="$OPTARG" ;;
- esac
-done
-nargs=$(expr $OPTIND - 1)
-shift $nargs
-
-even_args=$(expr $# % 2)
-if [ $# -lt 2 -o $even_args -ne 0 ]; then
- echo "args: [-t timeout] [-c command] hostname1 port1 hostname2 port2 ..." >&2
- exit 1
-fi
-
-while [ $# -ge 2 ]; do
- export host=$1
- export port=$2
- shift
- shift
-
- echo "Waiting for $host port $port..."
- timeout $tmout sh -c 'until nc -vz "$host" "$port"; do echo -n ".";
- sleep 1; done'
- rc=$?
-
- if [ $rc != 0 ]; then
- echo "$host port $port cannot be reached"
- exit $rc
- fi
-done
-
-$cmd
-
-exit 0
diff --git a/tests/policy/apex-pdp/apex-pdp-test.robot b/tests/policy/apex-pdp/apex-pdp-test.robot
deleted file mode 100644
index 54838a39..00000000
--- a/tests/policy/apex-pdp/apex-pdp-test.robot
+++ /dev/null
@@ -1,58 +0,0 @@
-*** Settings ***
-Library Collections
-Library RequestsLibrary
-Library OperatingSystem
-Library json
-
-*** Test Cases ***
-
-Healthcheck
- [Documentation] Runs Apex PDP Health check
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${APEX_IP}:6969
- ${session}= Create Session policy https://${APEX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/apex-pdp/v1/healthcheck headers=${headers}
- Log Received response from policy1 ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-ExecuteApexPolicy
- Wait Until Keyword Succeeds 2 min 5 sec CreatePolicy
- Wait Until Keyword Succeeds 2 min 5 sec DeployPolicy
- Wait Until Keyword Succeeds 4 min 10 sec RunEventOnApexEngine
-
-*** Keywords ***
-
-CreatePolicy
- [Documentation] Create a new Apex policy
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policies.native.Apex.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies data=${postjson} headers=${headers}
- Log Received response from policy4 ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()} tosca_definitions_version
- Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version
-
-DeployPolicy
- [Documentation] Deploy the policy in apex-pdp engine
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/pdp_update.json
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers}
- Log Received response from policy5 ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 202
-
-RunEventOnApexEngine
- Create Session apexSession http://${APEX_IP}:23324 max_retries=1
- ${data}= Get Binary File ${CURDIR}${/}data${/}event.json
- &{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Put Request apexSession /apex/FirstConsumer/EventIn data=${data} headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 200
diff --git a/tests/policy/apex-pdp/data/event.json b/tests/policy/apex-pdp/data/event.json
deleted file mode 100644
index 9dbf2790..00000000
--- a/tests/policy/apex-pdp/data/event.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
- "version": "0.0.1",
- "source": "REST_0",
- "target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1536363522018,
- "TestTemperature": 9080.866
-}
diff --git a/tests/policy/apex-pdp/data/onap.policies.native.Apex.tosca.json b/tests/policy/apex-pdp/data/onap.policies.native.Apex.tosca.json
deleted file mode 100644
index d90ae08d..00000000
--- a/tests/policy/apex-pdp/data/onap.policies.native.Apex.tosca.json
+++ /dev/null
@@ -1,7436 +0,0 @@
-{
- "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
- "topology_template": {
- "policies": [
- {
- "onap.policies.native.apex.Sampledomain": {
- "type": "onap.policies.native.Apex",
- "type_version": "1.0.0",
- "version": "1.0.0",
- "name": "onap.policies.native.apex.Sampledomain",
- "properties": {
- "engineServiceParameters": {
- "name": "MyApexEngine",
- "version": "0.0.1",
- "id": 45,
- "instanceCount": 4,
- "deploymentPort": 12561,
- "policy_type_impl": {
- "apexPolicyModel": {
- "key": {
- "name": "SamplePolicyModelJAVASCRIPT",
- "version": "0.0.1"
- },
- "keyInformation": {
- "key": {
- "name": "KeyInformation",
- "version": "0.0.1"
- },
- "keyInfoMap": {
- "entry": [
- {
- "key": {
- "name": "Context",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Context",
- "version": "0.0.1"
- },
- "UUID": "ca36bfd8-6042-3633-8c85-89c66507c3bf",
- "description": "Generated description for concept referred to by key \"Context:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0000",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0000",
- "version": "0.0.1"
- },
- "UUID": "465a81cc-885f-3a4d-bc4e-1508da92b236",
- "description": "Generated description for concept referred to by key \"Event0000:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0001",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0001",
- "version": "0.0.1"
- },
- "UUID": "36b2d570-fff7-3a4b-bab2-6bf492f5129a",
- "description": "Generated description for concept referred to by key \"Event0001:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0002",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0002",
- "version": "0.0.1"
- },
- "UUID": "ff6160a7-fb5e-379c-a6d2-2cd28053eacf",
- "description": "Generated description for concept referred to by key \"Event0002:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0003",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0003",
- "version": "0.0.1"
- },
- "UUID": "5899e216-2abf-3781-abc4-2c257b92721e",
- "description": "Generated description for concept referred to by key \"Event0003:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0004",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0004",
- "version": "0.0.1"
- },
- "UUID": "7c2692a7-4587-3d09-abf9-d96b339a316f",
- "description": "Generated description for concept referred to by key \"Event0004:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0100",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0100",
- "version": "0.0.1"
- },
- "UUID": "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7",
- "description": "Generated description for concept referred to by key \"Event0100:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0101",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0101",
- "version": "0.0.1"
- },
- "UUID": "edbfa868-2ab2-30fd-8078-4c7f67ca6122",
- "description": "Generated description for concept referred to by key \"Event0101:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0102",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0102",
- "version": "0.0.1"
- },
- "UUID": "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4",
- "description": "Generated description for concept referred to by key \"Event0102:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0103",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0103",
- "version": "0.0.1"
- },
- "UUID": "c2550912-10d9-3000-8826-377288cd6cb1",
- "description": "Generated description for concept referred to by key \"Event0103:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Event0104",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0104",
- "version": "0.0.1"
- },
- "UUID": "f6d75b71-c8a7-3337-a121-88d68c389f5a",
- "description": "Generated description for concept referred to by key \"Event0104:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Events",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Events",
- "version": "0.0.1"
- },
- "UUID": "0215644c-4531-375c-8335-d558b4de8c03",
- "description": "Generated description for concept referred to by key \"Events:0.0.1\""
- }
- },
- {
- "key": {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- "UUID": "976a79e7-5c80-3c03-9503-da3f41fec395",
- "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- "UUID": "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7",
- "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "KeyInformation",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "KeyInformation",
- "version": "0.0.1"
- },
- "UUID": "1ff2f905-685c-3caf-95bc-0bbc90345888",
- "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Policies",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policies",
- "version": "0.0.1"
- },
- "UUID": "f54c3b2b-be76-31c4-adfc-87c494c06808",
- "description": "Generated description for concept referred to by key \"Policies:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Policy0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policy0",
- "version": "0.0.1"
- },
- "UUID": "3410e939-30ca-32c4-a2d8-c30b6fee6eec",
- "description": "Generated description for concept referred to by key \"Policy0:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- "UUID": "e27564c4-3cbf-3db2-9bf3-83ae80a2f907",
- "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Policy1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policy1",
- "version": "0.0.1"
- },
- "UUID": "d0b2b585-f344-33b8-af9e-250e7f4cfbce",
- "description": "Generated description for concept referred to by key \"Policy1:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- },
- "UUID": "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0",
- "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\""
- }
- },
- {
- "key": {
- "name": "SamplePolicyModelJAVASCRIPT",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "SamplePolicyModelJAVASCRIPT",
- "version": "0.0.1"
- },
- "UUID": "bc8ee312-81ce-3c4a-92d5-4a73b8077148",
- "description": "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "UUID": "0589ff20-adcc-3ce5-95fe-8d7978ed54ed",
- "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "UUID": "095b126d-ca8b-32c9-ad52-d744e817a79c",
- "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Act2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act2",
- "version": "0.0.1"
- },
- "UUID": "3d786b4c-d9ee-3367-ab71-c67271a4ea2f",
- "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Act3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act3",
- "version": "0.0.1"
- },
- "UUID": "9231753e-20c5-3436-982f-9100340cc570",
- "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Decide0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide0",
- "version": "0.0.1"
- },
- "UUID": "502383d3-483f-3a56-a426-2f0406674c8d",
- "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Decide1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide1",
- "version": "0.0.1"
- },
- "UUID": "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf",
- "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Decide2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide2",
- "version": "0.0.1"
- },
- "UUID": "ad3a89f5-e369-3c66-b22c-669f7b3653b8",
- "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "UUID": "56815939-1164-3867-9ed1-0a27ff8aafb3",
- "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Establish0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish0",
- "version": "0.0.1"
- },
- "UUID": "0db0c566-ecd7-3e27-9865-4b82c893abdb",
- "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "UUID": "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0",
- "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "UUID": "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a",
- "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Establish3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish3",
- "version": "0.0.1"
- },
- "UUID": "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66",
- "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "UUID": "051bcfd5-cf73-3c89-8ee7-ea6e005ec059",
- "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Match1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match1",
- "version": "0.0.1"
- },
- "UUID": "3754fe19-98f2-34a1-9f45-db31052208d8",
- "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Match2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match2",
- "version": "0.0.1"
- },
- "UUID": "8c200709-a180-3c8b-916f-275ff49ce194",
- "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "UUID": "a1a879c6-4510-33b0-bbd0-ad6256189a37",
- "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\""
- }
- },
- {
- "key": {
- "name": "Tasks",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Tasks",
- "version": "0.0.1"
- },
- "UUID": "a7fab96b-ce1c-37ce-bbb2-556b6db524a5",
- "description": "Generated description for concept referred to by key \"Tasks:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "UUID": "0a652886-c88d-3f8c-8994-ae9161e7c963",
- "description": "Generated description for concept referred to by key \"TestCase:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem000",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem000",
- "version": "0.0.1"
- },
- "UUID": "8efba9fa-371e-33df-a7d6-88b0284e7fd0",
- "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem001",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem001",
- "version": "0.0.1"
- },
- "UUID": "3740077c-a2b3-356b-81dc-5ded2118a951",
- "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem002",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem002",
- "version": "0.0.1"
- },
- "UUID": "b5c7df95-9af5-322f-9ea8-eb440a2bf926",
- "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem003",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem003",
- "version": "0.0.1"
- },
- "UUID": "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b",
- "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem004",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem004",
- "version": "0.0.1"
- },
- "UUID": "093cda11-eaeb-3a46-a5b6-d5e30c00935b",
- "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem005",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem005",
- "version": "0.0.1"
- },
- "UUID": "569a758d-ba40-37c0-aebb-7ad138df25ac",
- "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem006",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem006",
- "version": "0.0.1"
- },
- "UUID": "252818d9-b61f-3962-a905-8865fb00fb04",
- "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem007",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem007",
- "version": "0.0.1"
- },
- "UUID": "fe1a5f7c-c083-377b-a797-752b01fc6c73",
- "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem008",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem008",
- "version": "0.0.1"
- },
- "UUID": "aa87d007-d07e-3f67-8c6d-0ebc3d85479d",
- "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem009",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem009",
- "version": "0.0.1"
- },
- "UUID": "126e7a3a-11b6-3f88-9397-c21d8819f859",
- "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem00A",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem00A",
- "version": "0.0.1"
- },
- "UUID": "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc",
- "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem00B",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem00B",
- "version": "0.0.1"
- },
- "UUID": "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6",
- "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestContextItem00C",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem00C",
- "version": "0.0.1"
- },
- "UUID": "32a2f355-77f3-3b25-ace6-7a9c5763a5ad",
- "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestDatatypes",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestDatatypes",
- "version": "0.0.1"
- },
- "UUID": "3f95472c-973e-30e2-95f1-bf00cbef909a",
- "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestExternalContextItem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestExternalContextItem",
- "version": "0.0.1"
- },
- "UUID": "610dbbd4-9149-3b3c-9af4-819056f0e169",
- "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestGlobalContextItem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestGlobalContextItem",
- "version": "0.0.1"
- },
- "UUID": "07fa8f68-55f1-3fd0-81c1-749a379753a7",
- "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestPolicyContextItem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestPolicyContextItem",
- "version": "0.0.1"
- },
- "UUID": "d9c93cd1-539e-35c5-aaec-bb711ceb1251",
- "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "UUID": "683fe492-7eae-3ac7-9924-bb7850208d05",
- "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "UUID": "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0",
- "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\""
- }
- },
- {
- "key": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "UUID": "97b73937-c344-33c0-924c-4d26b6449564",
- "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\""
- }
- }
- ]
- }
- },
- "policies": {
- "key": {
- "name": "Policies",
- "version": "0.0.1"
- },
- "policyMap": {
- "entry": [
- {
- "key": {
- "name": "Policy0",
- "version": "0.0.1"
- },
- "value": {
- "policyKey": {
- "name": "Policy0",
- "version": "0.0.1"
- },
- "template": "MEDA",
- "state": {
- "entry": [
- {
- "key": "Act",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- },
- "trigger": {
- "name": "Event0003",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Act_NULL",
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- },
- "outgoingEvent": {
- "name": "Event0004",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "NULL",
- "parentKeyVersion": "0.0.0",
- "parentLocalName": "NULL",
- "localName": "NULL"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act0_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act1_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act2_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act3_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Decide",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- },
- "trigger": {
- "name": "Event0002",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Decide_Act",
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- },
- "outgoingEvent": {
- "name": "Event0003",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Decide0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide0_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide1_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide2_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide3_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Establish",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- },
- "trigger": {
- "name": "Event0001",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Establish_Decide",
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- },
- "outgoingEvent": {
- "name": "Event0002",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Establish0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish0_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish1_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish2_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish3_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Match",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Match"
- },
- "trigger": {
- "name": "Event0000",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Match_Establish",
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- },
- "outgoingEvent": {
- "name": "Event0001",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match0_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match1_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match2_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match3_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- }
- ]
- }
- }
- }
- ]
- },
- "firstState": "Match"
- }
- },
- {
- "key": {
- "name": "Policy1",
- "version": "0.0.1"
- },
- "value": {
- "policyKey": {
- "name": "Policy1",
- "version": "0.0.1"
- },
- "template": "MEDA",
- "state": {
- "entry": [
- {
- "key": "Act",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- },
- "trigger": {
- "name": "Event0103",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Act_NULL",
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- },
- "outgoingEvent": {
- "name": "Event0104",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "NULL",
- "parentKeyVersion": "0.0.0",
- "parentLocalName": "NULL",
- "localName": "NULL"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act0_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act1_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act2_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Task_Act3_DIRECT_Act_NULL"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Act",
- "localName": "Act_NULL"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Decide",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- },
- "trigger": {
- "name": "Event0102",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Decide_Act",
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- },
- "outgoingEvent": {
- "name": "Event0103",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Act"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Decide0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide0_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide1_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide2_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Task_Decide3_DIRECT_Decide_Act"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Decide",
- "localName": "Decide_Act"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Establish",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- },
- "trigger": {
- "name": "Event0101",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Establish_Decide",
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- },
- "outgoingEvent": {
- "name": "Event0102",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Decide"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Establish0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish0_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish1_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish2_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Task_Establish3_DIRECT_Establish_Decide"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Establish",
- "localName": "Establish_Decide"
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "Match",
- "value": {
- "stateKey": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Match"
- },
- "trigger": {
- "name": "Event0100",
- "version": "0.0.1"
- },
- "stateOutputs": {
- "entry": [
- {
- "key": "Match_Establish",
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- },
- "outgoingEvent": {
- "name": "Event0101",
- "version": "0.0.1"
- },
- "nextState": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Establish"
- }
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskSelectionLogic": {
- "key": "TaskSelectionLigic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"
- },
- "stateFinalizerLogicMap": {
- "entry": []
- },
- "defaultTask": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "taskReferences": {
- "entry": [
- {
- "key": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match0_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match1_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match2_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Task_Match3_DIRECT_Match_Establish"
- },
- "outputType": "DIRECT",
- "output": {
- "parentKeyName": "Policy1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "Match",
- "localName": "Match_Establish"
- }
- }
- }
- ]
- }
- }
- }
- ]
- },
- "firstState": "Match"
- }
- }
- ]
- }
- },
- "tasks": {
- "key": {
- "name": "Tasks",
- "version": "0.0.1"
- },
- "taskMap": {
- "entry": [
- {
- "key": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act0",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestActCaseSelected",
- "value": {
- "key": "TestActCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestActStateTime",
- "value": {
- "key": "TestActStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Act0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Act0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- },
- {
- "key": "Parameter2",
- "value": {
- "key": {
- "parentKeyName": "Task_Act0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter2"
- },
- "defaultValue": "DefaultValue2"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act1",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestActCaseSelected",
- "value": {
- "key": "TestActCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestActStateTime",
- "value": {
- "key": "TestActStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Act1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Act1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act2",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestActCaseSelected",
- "value": {
- "key": "TestActCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestActStateTime",
- "value": {
- "key": "TestActStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Act2",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Act3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Act3",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestActCaseSelected",
- "value": {
- "key": "TestActCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestActStateTime",
- "value": {
- "key": "TestActStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Act3",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide0",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- },
- {
- "key": "Parameter2",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter2"
- },
- "defaultValue": "DefaultValue2"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide1",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide2",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide2",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Decide3",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Decide3",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish0",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- },
- {
- "key": "Parameter2",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter2"
- },
- "defaultValue": "DefaultValue2"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish1",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish2",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish2",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Establish3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Establish3",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Establish3",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match0",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Match0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Match0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- },
- {
- "key": "Parameter2",
- "value": {
- "key": {
- "parentKeyName": "Task_Match0",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter2"
- },
- "defaultValue": "DefaultValue2"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match1",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match1",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Match1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- },
- {
- "key": "Parameter1",
- "value": {
- "key": {
- "parentKeyName": "Task_Match1",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter1"
- },
- "defaultValue": "DefaultValue1"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match2",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match2",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Match2",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- },
- {
- "key": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Task_Match3",
- "version": "0.0.1"
- },
- "inputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "outputFields": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- },
- "taskParameters": {
- "entry": [
- {
- "key": "Parameter0",
- "value": {
- "key": {
- "parentKeyName": "Task_Match3",
- "parentKeyVersion": "0.0.1",
- "parentLocalName": "NULL",
- "localName": "Parameter0"
- },
- "defaultValue": "DefaultValue0"
- }
- }
- ]
- },
- "contextAlbumReference": [
- {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- }
- ],
- "taskLogic": {
- "key": "_TaskLogic",
- "logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"
- }
- }
- }
- ]
- }
- },
- "events": {
- "key": {
- "name": "Events",
- "version": "0.0.1"
- },
- "eventMap": {
- "entry": [
- {
- "key": {
- "name": "Event0000",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0000",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Outside",
- "target": "Match",
- "parameter": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0001",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0001",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Match",
- "target": "Establish",
- "parameter": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0002",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0002",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Establish",
- "target": "Decide",
- "parameter": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0003",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0003",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Decide",
- "target": "Act",
- "parameter": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0004",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0004",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Act",
- "target": "Outside",
- "parameter": {
- "entry": [
- {
- "key": "TestActCaseSelected",
- "value": {
- "key": "TestActCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestActStateTime",
- "value": {
- "key": "TestActStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0100",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0100",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Outside",
- "target": "Match",
- "parameter": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0101",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0101",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Match",
- "target": "Establish",
- "parameter": {
- "entry": [
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0102",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0102",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Establish",
- "target": "Decide",
- "parameter": {
- "entry": [
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0103",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0103",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Decide",
- "target": "Act",
- "parameter": {
- "entry": [
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- },
- {
- "key": {
- "name": "Event0104",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Event0104",
- "version": "0.0.1"
- },
- "nameSpace": "org.onap.policy.apex.sample.events",
- "source": "Act",
- "target": "Outside",
- "parameter": {
- "entry": [
- {
- "key": "TestActCaseSelected",
- "value": {
- "key": "TestActCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestActStateTime",
- "value": {
- "key": "TestActStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideCaseSelected",
- "value": {
- "key": "TestDecideCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestDecideStateTime",
- "value": {
- "key": "TestDecideStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishCaseSelected",
- "value": {
- "key": "TestEstablishCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestEstablishStateTime",
- "value": {
- "key": "TestEstablishStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCase",
- "value": {
- "key": "TestMatchCase",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchCaseSelected",
- "value": {
- "key": "TestMatchCaseSelected",
- "fieldSchemaKey": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestMatchStateTime",
- "value": {
- "key": "TestMatchStateTime",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestSlogan",
- "value": {
- "key": "TestSlogan",
- "fieldSchemaKey": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTemperature",
- "value": {
- "key": "TestTemperature",
- "fieldSchemaKey": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "optional": false
- }
- },
- {
- "key": "TestTimestamp",
- "value": {
- "key": "TestTimestamp",
- "fieldSchemaKey": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "optional": false
- }
- }
- ]
- }
- }
- }
- ]
- }
- },
- "albums": {
- "key": {
- "name": "Context",
- "version": "0.0.1"
- },
- "albums": {
- "entry": [
- {
- "key": {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "ExternalContextAlbum",
- "version": "0.0.1"
- },
- "scope": "EXTERNAL",
- "isWritable": false,
- "itemSchema": {
- "name": "TestExternalContextItem",
- "version": "0.0.1"
- }
- }
- },
- {
- "key": {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "GlobalContextAlbum",
- "version": "0.0.1"
- },
- "scope": "GLOBAL",
- "isWritable": true,
- "itemSchema": {
- "name": "TestGlobalContextItem",
- "version": "0.0.1"
- }
- }
- },
- {
- "key": {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policy0ContextAlbum",
- "version": "0.0.1"
- },
- "scope": "APPLICATION",
- "isWritable": true,
- "itemSchema": {
- "name": "TestPolicyContextItem",
- "version": "0.0.1"
- }
- }
- },
- {
- "key": {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "Policy1ContextAlbum",
- "version": "0.0.1"
- },
- "scope": "APPLICATION",
- "isWritable": true,
- "itemSchema": {
- "name": "TestPolicyContextItem",
- "version": "0.0.1"
- }
- }
- }
- ]
- }
- },
- "schemas": {
- "key": {
- "name": "TestDatatypes",
- "version": "0.0.1"
- },
- "schemas": {
- "entry": [
- {
- "key": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestCase",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Byte"
- }
- },
- {
- "key": {
- "name": "TestContextItem000",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem000",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000"
- }
- },
- {
- "key": {
- "name": "TestContextItem001",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem001",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001"
- }
- },
- {
- "key": {
- "name": "TestContextItem002",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem002",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002"
- }
- },
- {
- "key": {
- "name": "TestContextItem003",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem003",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003"
- }
- },
- {
- "key": {
- "name": "TestContextItem004",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem004",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004"
- }
- },
- {
- "key": {
- "name": "TestContextItem005",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem005",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005"
- }
- },
- {
- "key": {
- "name": "TestContextItem006",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem006",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006"
- }
- },
- {
- "key": {
- "name": "TestContextItem007",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem007",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007"
- }
- },
- {
- "key": {
- "name": "TestContextItem008",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem008",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008"
- }
- },
- {
- "key": {
- "name": "TestContextItem009",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem009",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009"
- }
- },
- {
- "key": {
- "name": "TestContextItem00A",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem00A",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A"
- }
- },
- {
- "key": {
- "name": "TestContextItem00B",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem00B",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B"
- }
- },
- {
- "key": {
- "name": "TestContextItem00C",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestContextItem00C",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C"
- }
- },
- {
- "key": {
- "name": "TestExternalContextItem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestExternalContextItem",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem"
- }
- },
- {
- "key": {
- "name": "TestGlobalContextItem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestGlobalContextItem",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem"
- }
- },
- {
- "key": {
- "name": "TestPolicyContextItem",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestPolicyContextItem",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem"
- }
- },
- {
- "key": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestSlogan",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.String"
- }
- },
- {
- "key": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestTemperature",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Double"
- }
- },
- {
- "key": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "value": {
- "key": {
- "name": "TestTimestamp",
- "version": "0.0.1"
- },
- "schemaFlavour": "Java",
- "schemaDefinition": "java.lang.Long"
- }
- }
- ]
- }
- }
- }
- },
- "engineParameters": {
- "executorParameters": {
- "JAVASCRIPT": {
- "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
- }
- }
- }
- },
- "eventInputParameters": {
- "FirstConsumer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTSERVER",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters",
- "parameters": {
- "standalone": true,
- "host": "0.0.0.0",
- "port": 23324
- }
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "synchronousMode": true,
- "synchronousPeer": "FirstProducer",
- "synchronousTimeout": 2000
- }
- },
- "eventOutputParameters": {
- "FirstProducer": {
- "carrierTechnologyParameters": {
- "carrierTechnology": "RESTSERVER",
- "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"
- },
- "eventProtocolParameters": {
- "eventProtocol": "JSON"
- },
- "synchronousMode": true,
- "synchronousPeer": "FirstConsumer",
- "synchronousTimeout": 2000
- }
- }
- }
- }
- }
- ]
- }
-}
diff --git a/tests/policy/apex-pdp/data/pdp_update.json b/tests/policy/apex-pdp/data/pdp_update.json
deleted file mode 100644
index 51c3573d..00000000
--- a/tests/policy/apex-pdp/data/pdp_update.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "groups": [
- {
- "name": "defaultGroup",
- "deploymentSubgroups": [
- {
- "pdpType": "apex",
- "action": "POST",
- "policies": [{
- "name": "onap.policies.native.apex.Sampledomain",
- "version": "1.0.0"
- }]
- }
- ]
- }
- ]
-}
diff --git a/tests/policy/api/api-test.robot b/tests/policy/api/api-test.robot
deleted file mode 100644
index 2f5c6972..00000000
--- a/tests/policy/api/api-test.robot
+++ /dev/null
@@ -1,204 +0,0 @@
-*** Settings ***
-Library Collections
-Library RequestsLibrary
-Library OperatingSystem
-Library json
-
-*** Test Cases ***
-Healthcheck
- [Documentation] Runs Policy Api Health check
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/healthcheck headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-Statistics
- [Documentation] Runs Policy Api Statistics
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-RetrievePolicyTypes
- [Documentation] Gets Policy Types
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/policytypes headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['version']} 1.0.0
-
-CreateTCAPolicyTypeV1
- [Documentation] Create TCA Policy Type Version 1. Trying to create an existing policy type with any change and same version should cause error.
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.tcagen2.v1.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policytypes data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 406
-
-CreateTCAPolicyTypeV2
- [Documentation] Create TCA Policy Type Version 2
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.tcagen2.v2.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policytypes data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- ${postjsonobject} To Json ${postjson}
- Dictionary Should Contain Key ${resp.json()} tosca_definitions_version
- Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version
-
-RetrieveMonitoringPolicyTypes
- [Documentation] Retrieve Monitoring related Policy Types
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/policytypes/onap.policies.Monitoring headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- List Should Contain Value ${resp.json()['policy_types']} onap.policies.Monitoring
-
-
-CreateNewMonitoringPolicyV1
- [Documentation] Create a new Monitoring TCA policy version 1
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()['topology_template']['policies'][0]} onap.restart.tca
- Dictionary Should Contain Key ${postjsonobject['topology_template']['policies'][0]} onap.restart.tca
-
-SimpleCreateNewMonitoringPolicyV1
- [Documentation] Create a new Monitoring TCA policiy version 1 using simple endpoint. Trying to create an existing policy with any change and same version should cause error.
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.v1_2.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policies data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 406
-
-SimpleCreateNewMonitoringPolicyV2
- [Documentation] Create a new Monitoring TCA policiy version 2 using simple endpoint
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.v2.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policies data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()['topology_template']['policies'][0]} onap.restart.tca
- Dictionary Should Contain Key ${postjsonobject['topology_template']['policies'][0]} onap.restart.tca
-
-RetrievePoliciesOfType
- [Documentation] Retrieve all Policies Created for a specific Policy Type
- ${auth}= Create List healthcheck zb!XztG34
- ${expjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies headers=${headers}
- Log Received response from policy ${resp.text}
- ${expjsonobject} To Json ${expjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()['topology_template']['policies'][0]} onap.restart.tca
- Dictionary Should Contain Key ${expjsonobject['topology_template']['policies'][0]} onap.restart.tca
-
-RetrieveAllPolicies
- [Documentation] Retrieve all Policies
- ${auth}= Create List healthcheck zb!XztG34
- ${expjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/policies headers=${headers}
- Log Received response from policy ${resp.text}
- ${expjsonobject} To Json ${expjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${expjsonobject['topology_template']['policies'][0]} onap.restart.tca
-
-RetrieveSpecificPolicy
- [Documentation] Retrieve a specific Policy named 'onap.restart.tca' and version '1.0.0'
- ${auth}= Create List healthcheck zb!XztG34
- ${expjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/api/v1/policies/onap.restart.tca/versions/1.0.0/ headers=${headers}
- Log Received response from policy ${resp.text}
- ${expjsonobject} To Json ${expjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()['topology_template']['policies'][0]} onap.restart.tca
- Dictionary Should Contain Key ${expjsonobject['topology_template']['policies'][0]} onap.restart.tca
-
-DeleteSpecificPolicy
- [Documentation] Delete a specific Policy named 'onap.restart.tca' and version '1.0.0'
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/api/v1/policies/onap.restart.tca/versions/1.0.0 headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- ${resp}= Delete Request policy /policy/api/v1/policies/onap.restart.tca/versions/1.0.0 headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 404
-
-DeleteSpecificPolicyV2
- [Documentation] Delete the Monitoring Policy Version 2 of the TCA Policy Type
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies/onap.restart.tca/versions/2.0.0 headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies/onap.restart.tca/versions/2.0.0 headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 404
-
-DeleteSpecificPolicyTypeV1
- [Documentation] Delete the TCA Policy Type Version 1
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0 headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0 headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 404
-
-DeleteSpecificPolicyTypeV2
- [Documentation] Delete the TCA Policy Type Version 2
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/2.0.0 headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/2.0.0 headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 404
diff --git a/tests/policy/api/data/onap.policy.monitoring.tcagen2.v1.json b/tests/policy/api/data/onap.policy.monitoring.tcagen2.v1.json
deleted file mode 100644
index a2e2ddc9..00000000
--- a/tests/policy/api/data/onap.policy.monitoring.tcagen2.v1.json
+++ /dev/null
@@ -1,211 +0,0 @@
-{
- "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
- "policy_types": {
- "onap.policies.Monitoring": {
- "derived_from": "tosca.policies.Root",
- "version": "1.0.0",
- "description": "a base policy type for all policies that governs monitoring provisioning"
- },
- "onap.policies.monitoring.tcagen2": {
- "derived_from": "onap.policies.Monitoring",
- "version": "1.0.0",
- "properties": {
- "tca.policy": {
- "type": "onap.datatypes.monitoring.tca_policy",
- "description": "TCA Policy JSON"
- }
- }
- }
- },
- "data_types": {
- "onap.datatypes.monitoring.metricsPerEventName": {
- "derived_from": "tosca.datatypes.Root",
- "properties": {
- "controlLoopSchemaType": {
- "type": "string",
- "required": true,
- "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
- "constraints": [
- {
- "valid_values": [
- "VM",
- "VNF"
- ]
- }
- ]
- },
- "eventName": {
- "type": "string",
- "required": true,
- "description": "Event name to which thresholds need to be applied"
- },
- "policyName": {
- "type": "string",
- "required": true,
- "description": "TCA Policy Scope Name"
- },
- "policyScope": {
- "type": "string",
- "required": true,
- "description": "TCA Policy Scope"
- },
- "policyVersion": {
- "type": "string",
- "required": true,
- "description": "TCA Policy Scope Version"
- },
- "thresholds": {
- "type": "list",
- "required": true,
- "description": "Thresholds associated with eventName",
- "entry_schema": {
- "type": "onap.datatypes.monitoring.thresholds"
- }
- }
- }
- },
- "onap.datatypes.monitoring.tca_policy": {
- "derived_from": "tosca.datatypes.Root",
- "properties": {
- "domain": {
- "type": "string",
- "required": true,
- "description": "Domain name to which TCA needs to be applied",
- "default": "measurementsForVfScaling",
- "constraints": [
- {
- "equal": "measurementsForVfScaling"
- }
- ]
- },
- "metricsPerEventName": {
- "type": "list",
- "required": true,
- "description": "Contains eventName and threshold details that need to be applied to given eventName",
- "entry_schema": {
- "type": "onap.datatypes.monitoring.metricsPerEventName"
- }
- }
- }
- },
- "onap.datatypes.monitoring.thresholds": {
- "derived_from": "tosca.datatypes.Root",
- "properties": {
- "closedLoopControlName": {
- "type": "string",
- "required": true,
- "description": "Closed Loop Control Name associated with the threshold"
- },
- "closedLoopEventStatus": {
- "type": "string",
- "required": true,
- "description": "Closed Loop Event Status of the threshold",
- "constraints": [
- {
- "valid_values": [
- "ONSET",
- "ABATED"
- ]
- }
- ]
- },
- "direction": {
- "type": "string",
- "required": true,
- "description": "Direction of the threshold",
- "constraints": [
- {
- "valid_values": [
- "LESS",
- "LESS_OR_EQUAL",
- "GREATER",
- "GREATER_OR_EQUAL",
- "EQUAL"
- ]
- }
- ]
- },
- "fieldPath": {
- "type": "string",
- "required": true,
- "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
- "constraints": [
- {
- "valid_values": [
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
- "$.event.measurementsForVfScalingFields.meanRequestLatency",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
- "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
- ]
- }
- ]
- },
- "severity": {
- "type": "string",
- "required": true,
- "description": "Threshold Event Severity",
- "constraints": [
- {
- "valid_values": [
- "CRITICAL",
- "MAJOR",
- "MINOR",
- "WARNING",
- "NORMAL"
- ]
- }
- ]
- },
- "thresholdValue": {
- "type": "integer",
- "required": true,
- "description": "Threshold value for the field Path inside CEF message"
- },
- "version": {
- "type": "string",
- "required": true,
- "description": "Version number associated with the threshold"
- }
- }
- }
- }
-}
diff --git a/tests/policy/api/data/onap.policy.monitoring.tcagen2.v2.json b/tests/policy/api/data/onap.policy.monitoring.tcagen2.v2.json
deleted file mode 100644
index d86749ef..00000000
--- a/tests/policy/api/data/onap.policy.monitoring.tcagen2.v2.json
+++ /dev/null
@@ -1,206 +0,0 @@
-{
- "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
- "policy_types": {
- "onap.policies.monitoring.tcagen2": {
- "derived_from": "onap.policies.Monitoring",
- "version": "2.0.0",
- "properties": {
- "tca.policy": {
- "type": "onap.datatypes.monitoring.tca_policy",
- "description": "TCA Policy JSON"
- }
- }
- }
- },
- "data_types": {
- "onap.datatypes.monitoring.metricsPerEventName": {
- "derived_from": "tosca.datatypes.Root",
- "properties": {
- "controlLoopSchemaType": {
- "type": "string",
- "required": true,
- "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
- "constraints": [
- {
- "valid_values": [
- "VM",
- "VNF"
- ]
- }
- ]
- },
- "eventName": {
- "type": "string",
- "required": true,
- "description": "Event name to which thresholds need to be applied"
- },
- "policyName": {
- "type": "string",
- "required": true,
- "description": "TCA Policy Scope Name"
- },
- "policyScope": {
- "type": "string",
- "required": true,
- "description": "TCA Policy Scope"
- },
- "policyVersion": {
- "type": "string",
- "required": true,
- "description": "TCA Policy Scope Version"
- },
- "thresholds": {
- "type": "list",
- "required": true,
- "description": "Thresholds associated with eventName",
- "entry_schema": {
- "type": "onap.datatypes.monitoring.thresholds"
- }
- }
- }
- },
- "onap.datatypes.monitoring.tca_policy": {
- "derived_from": "tosca.datatypes.Root",
- "properties": {
- "domain": {
- "type": "string",
- "required": true,
- "description": "Domain name to which TCA needs to be applied",
- "default": "measurementsForVfScaling",
- "constraints": [
- {
- "equal": "measurementsForVfScaling"
- }
- ]
- },
- "metricsPerEventName": {
- "type": "list",
- "required": true,
- "description": "Contains eventName and threshold details that need to be applied to given eventName",
- "entry_schema": {
- "type": "onap.datatypes.monitoring.metricsPerEventName"
- }
- }
- }
- },
- "onap.datatypes.monitoring.thresholds": {
- "derived_from": "tosca.datatypes.Root",
- "properties": {
- "closedLoopControlName": {
- "type": "string",
- "required": true,
- "description": "Closed Loop Control Name associated with the threshold"
- },
- "closedLoopEventStatus": {
- "type": "string",
- "required": true,
- "description": "Closed Loop Event Status of the threshold",
- "constraints": [
- {
- "valid_values": [
- "ONSET",
- "ABATED"
- ]
- }
- ]
- },
- "direction": {
- "type": "string",
- "required": true,
- "description": "Direction of the threshold",
- "constraints": [
- {
- "valid_values": [
- "LESS",
- "LESS_OR_EQUAL",
- "GREATER",
- "GREATER_OR_EQUAL",
- "EQUAL"
- ]
- }
- ]
- },
- "fieldPath": {
- "type": "string",
- "required": true,
- "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
- "constraints": [
- {
- "valid_values": [
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
- "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
- "$.event.measurementsForVfScalingFields.meanRequestLatency",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
- "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
- "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
- ]
- }
- ]
- },
- "severity": {
- "type": "string",
- "required": true,
- "description": "Threshold Event Severity",
- "constraints": [
- {
- "valid_values": [
- "CRITICAL",
- "MAJOR",
- "MINOR",
- "WARNING",
- "NORMAL"
- ]
- }
- ]
- },
- "thresholdValue": {
- "type": "integer",
- "required": true,
- "description": "Threshold value for the field Path inside CEF message"
- },
- "version": {
- "type": "string",
- "required": true,
- "description": "Version number associated with the threshold"
- }
- }
- }
- }
-}
diff --git a/tests/policy/distribution/data/event.json b/tests/policy/distribution/data/event.json
deleted file mode 100644
index 9dbf2790..00000000
--- a/tests/policy/distribution/data/event.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "nameSpace": "org.onap.policy.apex.sample.events",
- "name": "Event0000",
- "version": "0.0.1",
- "source": "REST_0",
- "target": "apex",
- "TestSlogan": "Test slogan for External Event0",
- "TestMatchCase": 3,
- "TestTimestamp": 1536363522018,
- "TestTemperature": 9080.866
-}
diff --git a/tests/policy/distribution/distribution-test.robot b/tests/policy/distribution/distribution-test.robot
deleted file mode 100644
index 2b1c6d64..00000000
--- a/tests/policy/distribution/distribution-test.robot
+++ /dev/null
@@ -1,45 +0,0 @@
-*** Settings ***
-Library Collections
-Library RequestsLibrary
-Library OperatingSystem
-Library json
-
-*** Test Cases ***
-
-Healthcheck
- [Documentation] Runs Policy Distribution Health check
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_DISTRIBUTION_IP}:6969
- ${session}= Create Session policy https://${POLICY_DISTRIBUTION_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /healthcheck headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-Statistics
- [Documentation] Runs Policy Distribution Statistics
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_DISTRIBUTION_IP}:6969
- ${session}= Create Session policy https://${POLICY_DISTRIBUTION_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-InvokeDistributionAndRunEventOnEngine
- Wait Until Keyword Succeeds 5 min 30 sec InvokeDistributionUsingFile And RunEventOnApexEngine
-
-*** Keywords ***
-
-InvokeDistributionUsingFile And RunEventOnApexEngine
- Copy File ${SCRIPT_DIR}/config/distribution/csar/csar_temp.csar ${SCRIPT_DIR}/config/distribution/csar/temp.csar
- Move File ${SCRIPT_DIR}/config/distribution/csar/temp.csar ${SCRIPT_DIR}/config/distribution/temp/sample_csar_with_apex_policy.csar
- Sleep 20 seconds "Waiting for the Policy Distribution to call Policy API and PAP"
- Create Session apexSession http://${APEX_IP}:23324 max_retries=1
- ${data}= Get Binary File ${CURDIR}${/}data${/}event.json
- &{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Put Request apexSession /apex/FirstConsumer/EventIn data=${data} headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 200
- Remove Files ${SCRIPT_DIR}/config/distribution/temp/sample_csar_with_apex_policy.csar
diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot
deleted file mode 100644
index 2ab05810..00000000
--- a/tests/policy/drools-applications/drools-applications-test.robot
+++ /dev/null
@@ -1,275 +0,0 @@
-*** Settings ***
-Library Collections
-Library String
-Library RequestsLibrary
-Library OperatingSystem
-Library Process
-Library json
-
-*** Test Cases ***
-Alive
- [Documentation] Runs Policy PDP Alive Check
- ${auth}= Create List demo@people.osaaf.org demo123456!
- Log Creating session https://${DROOLS_IP}:9696
- ${session}= Create Session policy https://${DROOLS_IP}:9696 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdp/engine headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['alive']} True
-
-Healthcheck
- [Documentation] Runs Policy PDP-D Health check
- ${auth}= Create List demo@people.osaaf.org demo123456!
- Log Creating session https://${DROOLS_IP}:6969/healthcheck
- ${session}= Create Session policy https://${DROOLS_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /healthcheck headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['healthy']} True
-
-Controller
- [Documentation] Checks controller is up
- ${auth}= Create List demo@people.osaaf.org demo123456!
- Log Creating session https://${DROOLS_IP}:9696
- ${session}= Create Session policy https://${DROOLS_IP}:9696 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdp/engine/controllers/usecases/drools/facts headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['usecases']} 0
-
-MakeTopics
- [Documentation] Creates the Policy topics
- ${result}= Run Process ${SCR2}/make_topic.sh POLICY-PDP-PAP
- Should Be Equal As Integers ${result.rc} 0
- ${result}= Run Process ${SCR2}/make_topic.sh POLICY-CL-MGT
- Should Be Equal As Integers ${result.rc} 0
-
-CreateVcpeXacmlPolicy
- [Documentation] Create VCPE Policy for Xacml
- ${auth}= Create List healthcheck zb!XztG34
- ${postyaml}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.yaml
- Log Creating session https://${API_IP}:6969
- ${session}= Create Session policy https://${API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/yaml Content-Type=application/yaml
- ${resp}= Post Request policy /policy/api/v1/policies data=${postyaml} headers=${headers}
- Log Received response from api ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-CreateVcpeDroolsPolicy
- [Documentation] Create VCPE Policy for Drools
- ${auth}= Create List healthcheck zb!XztG34
- ${postyaml}= Get file ${DATA}/vCPE.policy.operational.input.tosca.yaml
- Log Creating session https://${API_IP}:6969
- ${session}= Create Session policy https://${API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/yaml Content-Type=application/yaml
- ${resp}= Post Request policy /policy/api/v1/policies data=${postyaml} headers=${headers}
- Log Received response from api ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-CreateVdnsXacmlPolicy
- [Documentation] Create VDNS Policy for Xacml
- ${auth}= Create List healthcheck zb!XztG34
- ${postyaml}= Get file ${DATA}/vDNS.policy.monitoring.input.tosca.yaml
- Log Creating session https://${API_IP}:6969
- ${session}= Create Session policy https://${API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/yaml Content-Type=application/yaml
- ${resp}= Post Request policy /policy/api/v1/policies data=${postyaml} headers=${headers}
- Log Received response from api ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-CreateVdnsDroolsPolicy
- [Documentation] Create VDNS Policy for Drools
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA}/vDNS.policy.operational.input.tosca.json
- Log Creating session https://${API_IP}:6969
- ${session}= Create Session policy https://${API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policies data=${postjson} headers=${headers}
- Log Received response from api ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-CreateVfwXacmlPolicy
- [Documentation] Create VFW Policy for Xacml
- ${auth}= Create List healthcheck zb!XztG34
- ${postyaml}= Get file ${DATA}/vFirewall.policy.monitoring.input.tosca.yaml
- Log Creating session https://${API_IP}:6969
- ${session}= Create Session policy https://${API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/yaml Content-Type=application/yaml
- ${resp}= Post Request policy /policy/api/v1/policies data=${postyaml} headers=${headers}
- Log Received response from api ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-CreateVfwDroolsPolicy
- [Documentation] Create VFW Policy for Drools
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA}/vFirewall.policy.operational.input.tosca.json
- Log Creating session https://${API_IP}:6969
- ${session}= Create Session policy https://${API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policies data=${postjson} headers=${headers}
- Log Received response from api ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-DeployXacmlPolicies
- [Documentation] Deploys the Policies to Xacml
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${PAP_IP}:6969
- ${postjson}= Get file ${SCR2}/deploy.xacml.policies.json
- ${session}= Create Session policy https://${PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers}
- Log Received response from pap ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 202
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-PDP-PAP
- ... responseTo xacml ACTIVE restart
- Log Received status ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} onap.restart.tca
- Should Contain ${result.stdout} onap.scaleout.tca
- Should Contain ${result.stdout} onap.vfirewall.tca
-
-DeployDroolsPolicies
- [Documentation] Deploys the Policies to Drools
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${PAP_IP}:6969
- ${postjson}= Get file ${SCR2}/deploy.drools.policies.json
- ${session}= Create Session policy https://${PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers}
- Log Received response from pap ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 202
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-PDP-PAP
- ... responseTo drools ACTIVE
- Log Received status ${result.stdout}
- Sleep 3s
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} operational.restart
- Should Contain ${result.stdout} operational.scaleout
- Should Contain ${result.stdout} operational.modifyconfig
-
-VcpeExecute
- [Documentation] Executes VCPE Policy
- ${result}= Run Process ${SCR2}/onset.sh ${SCR2}/vcpeOnset.json
- Should Be Equal As Integers ${result.rc} 0
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} ACTIVE
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} Sending guard query for APPC Restart
- Should Be Equal As Integers ${result.rc} 0
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} Guard result for APPC Restart is Permit
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} actor=APPC,operation=Restart
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION: SUCCESS
- Should Contain ${result.stdout} actor=APPC,operation=Restart
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} FINAL: SUCCESS
- Should Contain ${result.stdout} APPC
- Should Contain ${result.stdout} Restart
-
-VdnsExecute
- [Documentation] Executes VDNS Policy
- ${result}= Run Process ${SCR2}/onset.sh ${SCR2}/vdnsOnset.json
- Should Be Equal As Integers ${result.rc} 0
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} ACTIVE
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} Sending guard query for SO VF Module Create
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} Guard result for SO VF Module Create is Permit
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} actor=SO,operation=VF Module Create
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION: SUCCESS
- Should Contain ${result.stdout} actor=SO,operation=VF Module Create
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} FINAL: SUCCESS
- Should Contain ${result.stdout} SO
- Should Contain ${result.stdout} VF Module Create
-
-VfwExecute
- [Documentation] Executes VFW Policy
- ${result}= Run Process ${SCR2}/onset.sh ${SCR2}/vfwOnset.json
- Should Be Equal As Integers ${result.rc} 0
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} ACTIVE
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} Sending guard query for APPC ModifyConfig
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} Guard result for APPC ModifyConfig is Permit
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION
- Should Contain ${result.stdout} actor=APPC,operation=ModifyConfig
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} OPERATION: SUCCESS
- Should Contain ${result.stdout} actor=APPC,operation=ModifyConfig
- ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-CL-MGT
- ... ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
- Log Received notification ${result.stdout}
- Should Be Equal As Integers ${result.rc} 0
- Should Contain ${result.stdout} FINAL: SUCCESS
- Should Contain ${result.stdout} APPC
- Should Contain ${result.stdout} ModifyConfig
diff --git a/tests/policy/drools-pdp/drools-pdp-test.robot b/tests/policy/drools-pdp/drools-pdp-test.robot
deleted file mode 100644
index cf4d3cea..00000000
--- a/tests/policy/drools-pdp/drools-pdp-test.robot
+++ /dev/null
@@ -1,17 +0,0 @@
-*** Settings ***
-Library Collections
-Library RequestsLibrary
-Library OperatingSystem
-Library json
-
-*** Test Cases ***
-Alive
- [Documentation] Runs Policy PDP Alive Check
- ${auth}= Create List demo@people.osaaf.org demo123456!
- Log Creating session https://${POLICY_DROOLS_IP}:9696
- ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdp/engine headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['alive']} True
diff --git a/tests/policy/pap/data/create.group.request.json b/tests/policy/pap/data/create.group.request.json
deleted file mode 100644
index 1b63563f..00000000
--- a/tests/policy/pap/data/create.group.request.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "groups": [
- {
- "name": "create.group.request",
- "pdpGroupState": "PASSIVE",
- "properties": {
- "hello": "world"
- },
- "pdpSubgroups": [
- {
- "pdpType": "pdpTypeA",
- "desiredInstanceCount": 2,
- "properties": {},
- "supportedPolicyTypes": [
- {
- "name": "onap.policies.monitoring.tcagen2",
- "version": "1.0.0"
- }
- ],
- "policies": []
- },
- {
- "pdpType": "pdpTypeB",
- "desiredInstanceCount": 1,
- "properties": {},
- "supportedPolicyTypes": [
- {
- "name": "onap.policies.monitoring.tcagen2",
- "version": "1.0.0"
- }
- ],
- "policies": []
- }
- ]
- }
- ]
-}
diff --git a/tests/policy/pap/data/deploy.group.request.json b/tests/policy/pap/data/deploy.group.request.json
deleted file mode 100644
index 7f3694de..00000000
--- a/tests/policy/pap/data/deploy.group.request.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "groups": [
- {
- "name": "create.group.request",
- "deploymentSubgroups": [
- {
- "pdpType": "pdpTypeA",
- "action": "POST",
- "policies": [
- {
- "name": "onap.restart.tca",
- "version": "1.0.0"
- }
- ]
- }
- ]
- }
- ]
-}
diff --git a/tests/policy/pap/pap-test.robot b/tests/policy/pap/pap-test.robot
deleted file mode 100644
index d0837fa9..00000000
--- a/tests/policy/pap/pap-test.robot
+++ /dev/null
@@ -1,137 +0,0 @@
-*** Settings ***
-Library Collections
-Library RequestsLibrary
-Library OperatingSystem
-Library json
-
-*** Test Cases ***
-LoadPolicy
- [Documentation] Loads prerequisite Policy via API
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${postjson}= Get file ${DATA}/vCPE.policy.monitoring.input.tosca.json
- ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies data=${postjson} headers=${headers}
- Log Received response from API ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-Healthcheck
- [Documentation] Runs Policy PAP Health check
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pap/v1/healthcheck headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-Statistics
- [Documentation] Runs Policy PAP Statistics
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pap/v1/statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-CreatePdpGroups
- [Documentation] Runs Policy PAP Create PDP Groups
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${postjson}= Get file ${CURDIR}/data/create.group.request.json
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps/groups/batch data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-ActivatePdpGroup
- [Documentation] Runs Policy PAP Change PDP Group State to ACTIVE
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Put Request policy /policy/pap/v1/pdps/groups/create.group.request?state=ACTIVE headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-QueryPdpGroups
- [Documentation] Runs Policy PAP Query PDP Groups
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pap/v1/pdps headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['groups'][0]['name']} create.group.request
- Should Be Equal As Strings ${resp.json()['groups'][0]['pdpGroupState']} ACTIVE
- Should Be Equal As Strings ${resp.json()['groups'][1]['name']} defaultGroup
-
-DeployPdpGroups
- [Documentation] Runs Policy PAP Deploy Policies to PDP Groups
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${postjson}= Get file ${CURDIR}/data/deploy.group.request.json
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 202
-
-UndeployPolicy
- [Documentation] Runs Policy PAP Undeploy a Policy from PDP Groups
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/pap/v1/pdps/policies/onap.restart.tca headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 202
-
-QueryPdpGroupsAfterUndeploy
- [Documentation] Runs Policy PAP Query PDP Groups after Undeploy
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pap/v1/pdps headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['groups'][0]['name']} create.group.request
- Should Be Equal As Strings ${resp.json()['groups'][0]['pdpSubgroups'][0]['policies']} []
-
-DeactivatePdpGroup
- [Documentation] Runs Policy PAP Change PDP Group State to PASSIVE
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Put Request policy /policy/pap/v1/pdps/groups/create.group.request?state=PASSIVE headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-DeletePdpGroups
- [Documentation] Runs Policy PAP Delete PDP Groups
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/pap/v1/pdps/groups/create.group.request headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
-
-QueryPdpGroupsAfterDelete
- [Documentation] Runs Policy PAP Query PDP Groups after Delete
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pap/v1/pdps headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['groups'][0]['name']} defaultGroup
diff --git a/tests/policy/xacml-pdp/data/onap.policy.guard.decision.request.json b/tests/policy/xacml-pdp/data/onap.policy.guard.decision.request.json
deleted file mode 100644
index ee90feaa..00000000
--- a/tests/policy/xacml-pdp/data/onap.policy.guard.decision.request.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "ONAPName": "Guard",
- "ONAPComponent": "Guard-component",
- "ONAPInstance": "Guard-component-instance",
- "requestId": "unique-request-guard-1",
- "action": "guard",
- "resource": {
- "guard": {
- "actor": "APPC",
- "operation": "ModifyConfig",
- "target": "f17face5-69cb-4c88-9e0b-7426db7edddd",
- "requestId": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
- "clname": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
- }
- }
-}
diff --git a/tests/policy/xacml-pdp/data/onap.policy.monitoring.decision.request.json b/tests/policy/xacml-pdp/data/onap.policy.monitoring.decision.request.json
deleted file mode 100644
index f79f4eb6..00000000
--- a/tests/policy/xacml-pdp/data/onap.policy.monitoring.decision.request.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "ONAPName": "DCAE",
- "ONAPComponent": "PolicyHandler",
- "ONAPInstance": "622431a4-9dea-4eae-b443-3b2164639c64",
- "action": "configure",
- "resource": {
- "policy-id": "onap.restart.tca"
- }
-} \ No newline at end of file
diff --git a/tests/policy/xacml-pdp/data/onap.policy.naming.decision.request.json b/tests/policy/xacml-pdp/data/onap.policy.naming.decision.request.json
deleted file mode 100644
index 3833a241..00000000
--- a/tests/policy/xacml-pdp/data/onap.policy.naming.decision.request.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "ONAPName": "SDNC",
- "ONAPComponent": "SDNC-component",
- "ONAPInstance": "SDNC-component-instance",
- "requestId": "unique-request-sdnc-1",
- "action": "naming",
- "resource": {
- "nfRole": [],
- "naming-type": [],
- "property-name": [],
- "policy-type": ["onap.policies.Naming"]
- }
-}
diff --git a/tests/policy/xacml-pdp/data/onap.policy.optimization.decision.request.json b/tests/policy/xacml-pdp/data/onap.policy.optimization.decision.request.json
deleted file mode 100644
index d997099c..00000000
--- a/tests/policy/xacml-pdp/data/onap.policy.optimization.decision.request.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "ONAPName": "OOF",
- "ONAPComponent": "OOF-component",
- "ONAPInstance": "OOF-component-instance",
- "context" : {
- "subscriberName": []
- },
- "action": "optimize",
- "resource": {
- "scope": [],
- "services": [],
- "resources": [],
- "geography": []
- }
-}
diff --git a/tests/policy/xacml-pdp/data/vCPE.policy.input.tosca.deploy.json b/tests/policy/xacml-pdp/data/vCPE.policy.input.tosca.deploy.json
deleted file mode 100644
index 7ace047b..00000000
--- a/tests/policy/xacml-pdp/data/vCPE.policy.input.tosca.deploy.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{"policies":[
- {"policy-id":"onap.restart.tca"},
- {"policy-id":"OSDF_CASABLANCA.Affinity_Default"}
- ]
-}
diff --git a/tests/policy/xacml-pdp/xacml-pdp-test.robot b/tests/policy/xacml-pdp/xacml-pdp-test.robot
deleted file mode 100644
index 03b0ca7a..00000000
--- a/tests/policy/xacml-pdp/xacml-pdp-test.robot
+++ /dev/null
@@ -1,217 +0,0 @@
-*** Settings ***
-Library Collections
-Library RequestsLibrary
-Library OperatingSystem
-Library Process
-Library json
-
-*** Test Cases ***
-Healthcheck
- [Documentation] Runs Policy Xacml PDP Health check
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdpx/v1/healthcheck headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-Statistics
- [Documentation] Runs Policy Xacml PDP Statistics
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdpx/v1/statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
-
-MakeTopics
- [Documentation] Creates the Policy topics
- ${result}= Run Process ${SCR_DMAAP}/make_topic.sh POLICY-PDP-PAP
- Should Be Equal As Integers ${result.rc} 0
-
-ExecuteXacmlPolicy
- Wait Until Keyword Succeeds 0 min 15 sec CreateMonitorPolicy
- Wait Until Keyword Succeeds 0 min 15 sec CreateOptimizationPolicy
- Wait Until Keyword Succeeds 0 min 15 sec GetDefaultDecision
- Wait Until Keyword Succeeds 0 min 15 sec DeployPolicies
- Wait Until Keyword Succeeds 0 min 15 sec GetAbbreviatedDecisionResult
- Wait Until Keyword Succeeds 0 min 15 sec GetMonitoringDecision
- Wait Until Keyword Succeeds 0 min 15 sec GetNamingDecision
- Wait Until Keyword Succeeds 0 min 15 sec GetOptimizationDecision
-
-*** Keywords ***
-
-CreateMonitorPolicy
- [Documentation] Create a Monitoring policy
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA2}/vCPE.policy.monitoring.input.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies data=${postjson} headers=${headers}
- Log Received response from policy4 ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()} tosca_definitions_version
- Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version
-
-CreateOptimizationPolicy
- [Documentation] Create an Optimization policy
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${DATA2}/vCPE.policies.optimization.input.tosca.json
- Log Creating session https://${POLICY_API_IP}:6969
- ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.optimization.resource.AffinityPolicy/versions/1.0.0/policies data=${postjson} headers=${headers}
- Log Received response from policy4 ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${resp.json()} tosca_definitions_version
- Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version
-
-DeployPolicies
- [Documentation] Runs Policy PAP to deploy a policy
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/vCPE.policy.input.tosca.deploy.json
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps/policies data=${postjson} headers=${headers}
- Log Received response from policy5 ${resp.text}
- ${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 202
- ${result}= Run Process ${SCR_DMAAP}/wait_topic.sh POLICY-PDP-PAP
- ... responseTo xacml ACTIVE onap.restart.tca
-
-GetStatisticsAfterDeployed
- [Documentation] Runs Policy Xacml PDP Statistics after policy is deployed
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdpx/v1/statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
- Should Be Equal As Strings ${resp.json()['totalPoliciesCount'] 1
-
-GetDefaultDecision
- [Documentation] Get Default Decision with no policies in Xacml PDP
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.guard.decision.request.json
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${params}= Create Dictionary abbrev=true
- ${resp}= Post Request policy /policy/pdpx/v1/decision params=${params} data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${status}= Get From Dictionary ${resp.json()} status
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${status} Permit
-
-GetAbbreviatedDecisionResult
- [Documentation] Get Decision with abbreviated results from Policy Xacml PDP
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.decision.request.json
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${params}= Create Dictionary abbrev=true
- ${resp}= Post Request policy /policy/pdpx/v1/decision params=${params} data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${policy}= Get From Dictionary ${resp.json()['policies']} onap.restart.tca
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${policy} type
- Dictionary Should Contain Key ${policy} metadata
- Dictionary Should Not Contain Key ${policy} type_version
- Dictionary Should Not Contain Key ${policy} properties
- Dictionary Should Not Contain Key ${policy} name
- Dictionary Should Not Contain Key ${policy} version
-
-GetMonitoringDecision
- [Documentation] Get Decision from Monitoring Policy Xacml PDP
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.decision.request.json
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pdpx/v1/decision data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${policy}= Get From Dictionary ${resp.json()['policies']} onap.restart.tca
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${policy} type
- Dictionary Should Contain Key ${policy} metadata
- Dictionary Should Contain Key ${policy} type_version
- Dictionary Should Contain Key ${policy} properties
- Dictionary Should Contain Key ${policy} name
- Dictionary Should Contain Key ${policy} version
-
-GetNamingDecision
- [Documentation] Get Decision from Naming Policy Xacml PDP
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.naming.decision.request.json
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pdpx/v1/decision data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${policy}= Get From Dictionary ${resp.json()['policies']} SDNC_Policy.ONAP_NF_NAMING_TIMESTAMP
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${policy} type
- Dictionary Should Contain Key ${policy} type_version
- Dictionary Should Contain Key ${policy} properties
- Dictionary Should Contain Key ${policy} name
-
-GetOptimizationDecision
- [Documentation] Get Decision from Optimization Policy Xacml PDP
- ${auth}= Create List healthcheck zb!XztG34
- ${postjson}= Get file ${CURDIR}/data/onap.policy.optimization.decision.request.json
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pdpx/v1/decision data=${postjson} headers=${headers}
- Log Received response from policy ${resp.text}
- ${policy}= Get From Dictionary ${resp.json()['policies']} OSDF_CASABLANCA.Affinity_Default
- Should Be Equal As Strings ${resp.status_code} 200
- Dictionary Should Contain Key ${policy} type
- Dictionary Should Contain Key ${policy} type_version
- Dictionary Should Contain Key ${policy} properties
- Dictionary Should Contain Key ${policy} name
-
-GetStatisticsAfterDecision
- [Documentation] Runs Policy Xacml PDP Statistics after Decision request
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdpx/v1/statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
- Should Be Equal As Strings ${resp.json()['totalDecisionsCount'] 1
-
-UndeployMonitorPolicy
- [Documentation] Runs Policy PAP to undeploy a policy
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PAP_IP}:6969
- ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request policy /policy/pap/v1/pdps/policies/onap.restart.tca headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 202
-
-GetStatisticsAfterUndeploy
- [Documentation] Runs Policy Xacml PDP Statistics after policy is undeployed
- ${auth}= Create List healthcheck zb!XztG34
- Log Creating session https://${POLICY_PDPX_IP}:6969
- ${session}= Create Session policy https://${POLICY_PDPX_IP}:6969 auth=${auth}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Get Request policy /policy/pdpx/v1/statistics headers=${headers}
- Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['code']} 200
- Should Be Equal As Strings ${resp.json()['totalPoliciesCount'] 0