Merge "Updates for new DFC endpoints.json and DR latest"
authorGary Wu <gwu@futurewei.com>
Tue, 4 Jun 2019 14:26:28 +0000 (14:26 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 4 Jun 2019 14:26:28 +0000 (14:26 +0000)
156 files changed:
plans/dcaegen2-collectors-hv-ves/testsuites/env.sh
plans/dcaegen2-collectors-hv-ves/testsuites/env_local.sh
plans/dcaegen2/prh-testsuites/setup.sh
plans/dcaegen2/prh-testsuites/teardown.sh
plans/multicloud-k8s/functionality1/setup.sh
plans/optf-cmso/cmso/testplan.txt
plans/policy/apex-pdp/setup.sh
plans/policy/apex-pdp/teardown.sh
plans/policy/xacml-pdp/setup.sh
plans/policy/xacml-pdp/teardown.sh
plans/sdc/nightly/setup.sh
plans/sdc/sanity/setup.sh
plans/sdc/uiSanity/setup.sh
plans/vfc-nfvo-catalog/sanity-check/setup.sh
plans/vfc-nfvo-catalog/sanity-check/teardown.sh
run-all-tests.sh [deleted file]
run-csit.sh
scripts/optf-cmso/cmso/start_cmso_containers.sh [deleted file]
scripts/optf-cmso/cmso/wait_for_port.sh [deleted file]
scripts/policy/policy-apex-pdp/config/apex-pdp/OnapPfConfig.json [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/apex-pdp/topic.properties [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/db/db.conf [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/db/db.sh [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/pap/defaultConfig.json [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/pap/logback.xml [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/pap/s3pConfig.json [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/pap/ssl/policy-keystore [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/pap/ssl/policy-truststore [new file with mode: 0644]
scripts/policy/policy-apex-pdp/config/pap/topic.properties [new file with mode: 0644]
scripts/policy/policy-apex-pdp/docker-compose-apex.yml [new file with mode: 0644]
scripts/policy/policy-xacml-pdp/config/db/db.conf [new file with mode: 0644]
scripts/policy/policy-xacml-pdp/config/db/db.sh [new file with mode: 0644]
scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml [new file with mode: 0644]
scripts/sdc/docker_health.sh
scripts/sdc/kill_dcae_containers.sh [new file with mode: 0644]
scripts/sdc/setup_sdc_for_apis_sanity.sh [deleted file]
scripts/sdc/setup_sdc_for_sanity.sh [moved from scripts/sdc/setup_sdc_for_ui_sanity.sh with 79% similarity]
tests/dcaegen2/prh-testcases/assets/aai-missing-entry/ves-event.json
tests/dcaegen2/prh-testcases/assets/aai-not-responding/ves-event.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_IPV4.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_IPV6.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_all_fields.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_IPV4_and_IPV6.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName_IPV4_and_IPV6.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName_and_IPV4.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName_and_IPV6.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_optional_registration_fields_all_filled.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_optional_registration_fields_empty.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_optional_registration_fields_missing_all.json
tests/dcaegen2/prh-testcases/assets/json_events/event_with_optional_registration_fields_missing_partial.json
tests/dcaegen2/prh-testcases/assets/json_events/event_without_IPV6_field.json
tests/dcaegen2/prh-testcases/assets/json_events/not_json_format.json
tests/dcaegen2/prh-testcases/assets/json_events/ves-event-pnf-registration-simple.json
tests/dcaegen2/prh-testcases/assets/json_events/ves-event-pnf-registration-with-attachment-point.json
tests/dcaegen2/prh-testcases/assets/ves-event-missing-field/invalid-ves-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-not-array/invalid-ves-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-with-attachment-point/expected-pnf-ready-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-with-attachment-point/ves-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-with-empty-additional-fields/expected-pnf-ready-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-with-empty-additional-fields/ves-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-with-empty-attachment-point/expected-pnf-ready-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-with-empty-attachment-point/ves-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-without-additional-fields/expected-pnf-ready-event.json
tests/dcaegen2/prh-testcases/assets/ves-event-without-additional-fields/ves-event.json
tests/dcaegen2/prh-testcases/prh_tests.robot
tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
tests/dcaegen2/prh-testcases/resources/cert_generation/create_certs.sh [new file with mode: 0755]
tests/dcaegen2/prh-testcases/resources/cert_generation/openssl.conf [new file with mode: 0644]
tests/dcaegen2/prh-testcases/resources/docker-compose.yml
tests/dcaegen2/prh-testcases/resources/prh_library.robot
tests/dcaegen2/prh-testcases/resources/simulator/AAI.py
tests/dcaegen2/prh-testcases/resources/simulator/DMaaP.py
tests/dcaegen2/prh-testcases/resources/simulator/certs/aai.crt [new file with mode: 0644]
tests/dcaegen2/prh-testcases/resources/simulator/certs/aai.key [moved from tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.aai.key with 100% similarity]
tests/dcaegen2/prh-testcases/resources/simulator/certs/aai_aai.onap.org.cer [deleted file]
tests/dcaegen2/prh-testcases/resources/simulator/certs/ca_local_0.cer [deleted file]
tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap-mr.crt [new file with mode: 0644]
tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap-mr.key [moved from tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dmaap-bc.key with 100% similarity]
tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap_bc_topic_mgr_dmaap_bc.onap.org.cer [deleted file]
tests/dcaegen2/prh-testcases/resources/simulator/certs/keystore.p12 [new file with mode: 0644]
tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.jks [deleted file]
tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.trust.jks [deleted file]
tests/dcaegen2/prh-testcases/resources/simulator/certs/root.crt [new file with mode: 0644]
tests/dcaegen2/prh-testcases/resources/simulator/certs/truststore.jks [new file with mode: 0644]
tests/dcaegen2/prh-testcases/ssl_prh_tests.robot [deleted file]
tests/externalapi-nbi/healthcheck/healthcheck.robot
tests/modeling-genericparser/test.robot
tests/optf-cmso/cmso/attlibs/CurlLibrary.py [deleted file]
tests/optf-cmso/cmso/attlibs/HTTPUtils.py [deleted file]
tests/optf-cmso/cmso/attlibs/JSONUtils.py [deleted file]
tests/optf-cmso/cmso/attlibs/OSUtils.py [deleted file]
tests/optf-cmso/cmso/attlibs/RequestsClientCert.py [deleted file]
tests/optf-cmso/cmso/attlibs/StringTemplater.py [deleted file]
tests/optf-cmso/cmso/attlibs/UID.py [deleted file]
tests/optf-cmso/cmso/resources/approval_requests.robot [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyDomain.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyScheduleID.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyScheduleName.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyUserID.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowIncorrectPolicyId.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowIncorrectWorkflow.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNegativeNormalDurationInSeconds.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoEndTime.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoNodeName.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoStartTime.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowSwitchedTime.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyAdditionalDuration.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyDomain.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyScheduleId.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyUserId.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyDomain.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyScheduleId.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyScheduleName.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptySchedulingInfo.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyUserId.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData1.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData2.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData3.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/MultipleVnfImmediate.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneGroupMultipleVNFsOneChangeWindow.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneGroupMultipleVNSsTwoChangeWindows.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediate.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediateIncorrectWorkflow.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediateReplaceVNFInfra.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindow.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackData.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackURL.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowReplaceVNFInfra.json.template [deleted file]
tests/optf-cmso/cmso/resources/assets/templates/changemanagement/VidCallbackData.json.template [deleted file]
tests/optf-cmso/cmso/resources/browser_setup.robot [deleted file]
tests/optf-cmso/cmso/resources/change_management_ete.robot [deleted file]
tests/optf-cmso/cmso/resources/create_schedule.robot [deleted file]
tests/optf-cmso/cmso/resources/files.robot [deleted file]
tests/optf-cmso/cmso/resources/json_templater.robot [deleted file]
tests/optf-cmso/cmso/resources/misc.robot [deleted file]
tests/optf-cmso/cmso/resources/scheduler_common.robot [deleted file]
tests/optf-cmso/cmso/resources/vtm_common.robot [deleted file]
tests/optf-cmso/cmso/testsuites/ChangeManagementImmediate.robot [deleted file]
tests/optf-cmso/cmso/testsuites/CmsoCsit.robot [new file with mode: 0644]
tests/optf-cmso/cmso/testsuites/__init__.robot [deleted file]
tests/policy/apex-pdp/apex-pdp-test.robot
tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json [new file with mode: 0644]
tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json [new file with mode: 0644]
tests/policy/apex-pdp/data/pdp_update.json [new file with mode: 0644]
tests/policy/engine/policy_interface.robot
tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json [new file with mode: 0644]
tests/policy/xacml-pdp/data/onap.policy.monitoring.decision.request.json [new file with mode: 0644]
tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.deploy.json [new file with mode: 0644]
tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json [new file with mode: 0644]
tests/policy/xacml-pdp/xacml-pdp-test.robot
tests/portal/testsuites/browser_setup.robot
tests/portal/testsuites/test1.robot
tests/vid/newVNFChange/test2.robot
tests/vid/resources/docker-compose.yml
tests/vid/resources/simulators/test_data_assets/responses.json

index c9e3ff0..08bbb61 100755 (executable)
@@ -31,7 +31,7 @@ export DOCKER_REGISTRY_PREFIX="${DOCKER_REGISTRY}/"
 export KAFKA_IMAGE_FULL_NAME="${DOCKER_REGISTRY_PREFIX}onap/dmaap/kafka111:0.0.6"
 export ZOOKEEPER_IMAGE_FULL_NAME="${DOCKER_REGISTRY_PREFIX}onap/dmaap/zookeeper:4.0.0"
 
-export CONTAINERS_NETWORK="hv-ves-default"
+export CONTAINERS_NETWORK="hv-ves-${RANDOM}"
 export HV_VES_SERVICE_NAME="hv-ves-collector"
 export UNENCRYPTED_HV_VES_SERVICE_NAME="unencrypted-hv-ves-collector"
 
@@ -39,9 +39,8 @@ export HV_VES_GROUP_ID="org.onap.dcaegen2.collectors.hv-ves"
 export HV_VES_HOSTNAME="dcae-hv-ves-collector"
 export HV_VES_COLLECTOR_NAMESPACE="onap"
 export HV_VES_HEALTHCHECK_CMD="curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061"
-export HV_VES_VERSION="1.1-SNAPSHOT"
+export HV_VES_VERSION="1.2-SNAPSHOT"
 export HV_VES_IMAGE="hv-collector-main"
 export DCAE_APP_SIMULATOR_IMAGE="hv-collector-dcae-app-simulator"
 export XNF_SIMULATOR_IMAGE="hv-ves-collector-xnf-simulator"
 
-
index a2ae335..1bb7091 100755 (executable)
@@ -29,9 +29,9 @@ export DOCKER_REGISTRY="docker.io"
 export DOCKER_REGISTRY_PREFIX=""
 
 export KAFKA_IMAGE_FULL_NAME="${ONAP_NEXUS_REGISTRY}/onap/dmaap/kafka111:0.0.6"
-export ZOOKEEPER_IMAGE_FULL_NAME="${DOCKER_REGISTRY_PREFIX}onap/dmaap/zookeeper:4.0.0"
+export ZOOKEEPER_IMAGE_FULL_NAME="${ONAP_NEXUS_REGISTRY}/onap/dmaap/zookeeper:4.0.0"
 
-export CONTAINERS_NETWORK="hv-ves-default"
+export CONTAINERS_NETWORK="hv-ves-${RANDOM}"
 export HV_VES_SERVICE_NAME="hv-ves-collector"
 export UNENCRYPTED_HV_VES_SERVICE_NAME="unencrypted-hv-ves-collector"
 
index 46871fd..28882c8 100644 (file)
@@ -3,7 +3,6 @@
 source ${SCRIPTS}/common_functions.sh
 
 export PRH_SERVICE="prh"
-export SSL_PRH_SERVICE="ssl_prh"
 export DMAAP_SIMULATOR="dmaap_simulator"
 export AAI_SIMULATOR="aai_simulator"
 export CONSUL="consul"
@@ -23,7 +22,6 @@ docker-compose up -d --build
 
 # Extract docker images IPs
 PRH_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${PRH_SERVICE})
-SSL_PRH_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${SSL_PRH_SERVICE})
 DMAAP_SIMULATOR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${DMAAP_SIMULATOR})
 AAI_SIMULATOR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${AAI_SIMULATOR})
 CONSUL_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${CONSUL})
@@ -31,7 +29,6 @@ CONSUL_CONFIG_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{
 CBS_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${CBS})
 
 bypass_ip_adress ${PRH_IP}
-bypass_ip_adress ${SSL_PRH_IP}
 bypass_ip_adress ${DMAAP_SIMULATOR_IP}
 bypass_ip_adress ${AAI_SIMULATOR_IP}
 bypass_ip_adress ${CONSUL_IP}
@@ -39,7 +36,6 @@ bypass_ip_adress ${CONSUL_CONFIG_IP}
 bypass_ip_adress ${CBS_IP}
 
 echo PRH_IP=${PRH_IP}
-echo SSL_PRH_IP=${SSL_PRH_IP}
 echo DMAAP_SIMULATOR_IP=${DMAAP_SIMULATOR_IP}
 echo AAI_SIMULATOR_IP=${AAI_SIMULATOR_IP}
 echo CONSUL_IP=${CONSUL_IP}
@@ -48,7 +44,6 @@ echo CBS_IP=${CBS_IP}
 
 # Wait for initialization of PRH services
 wait_for_service_init localhost:8100/heartbeat
-wait_for_service_init localhost:8200/heartbeat
 
 # #Pass any variables required by Robot test suites in ROBOT_VARIABLES
 ROBOT_VARIABLES="-v DMAAP_SIMULATOR_SETUP:${DMAAP_SIMULATOR_IP}:2224 -v AAI_SIMULATOR_SETUP:${AAI_SIMULATOR_IP}:3335 -v CONSUL_SETUP:${CONSUL_IP}:8500"
\ No newline at end of file
index bb5f8f9..382b22e 100644 (file)
@@ -16,7 +16,6 @@
 #
 
 kill-instance.sh prh
-kill-instance.sh ssl_prh
 kill-instance.sh dmaap_simulator
 kill-instance.sh aai_simulator
 kill-instance.sh consul
index eda24ba..006a114 100755 (executable)
@@ -19,11 +19,13 @@ MONGO_IP=$(./get-instance-ip.sh multicloud-k8s-mongodb)
 
 # setup multicloud-k8s configuration
 CONFIG_FILE=$(pwd)/k8sconfig.json
+SERVICE_PORT=9015
 cat << EOF > $CONFIG_FILE
 {
     "database-address": "$MONGO_IP",
     "database-type": "mongo",
     "plugin-dir": "plugins",
+    "service-port": "$SERVICE_PORT",
     "kube-config-dir": "kubeconfigs"
 }
 EOF
@@ -34,7 +36,6 @@ cat $CONFIG_FILE
 docker run --name multicloud-k8s -v $CONFIG_FILE:/opt/multicloud/k8splugin/k8sconfig.json \
            -d nexus3.onap.org:10001/onap/multicloud/k8s:latest
 SERVICE_IP=$(./get-instance-ip.sh multicloud-k8s)
-SERVICE_PORT=8081
 popd
 
 if [[ $no_proxy && $no_proxy != *$SERVICE_IP* ]]; then
index 7645a85..42f64f1 100644 (file)
@@ -1,3 +1,3 @@
 # Test suites are relative paths under [integration/csit.git]/tests/.
 # Place the suites in run order.
-optf-cmso/cmso/testsuites
+optf-cmso/cmso/testsuites
\ No newline at end of file
index c97072d..9639646 100644 (file)
@@ -1,6 +1,8 @@
 #!/bin/bash
 # ============LICENSE_START=======================================================
 #  Copyright (C) 2018 Ericsson. All rights reserved.
+#
+#  Modifications copyright (c) 2019 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # SPDX-License-Identifier: Apache-2.0
 # ============LICENSE_END=========================================================
 
-docker run -d --name apex -p 12561:12561 -p 23324:23324 -it nexus3.onap.org:10001/onap/policy-apex-pdp:2.0-SNAPSHOT-latest /bin/bash -c "/opt/app/policy/apex-pdp/bin/apexEngine.sh -c /opt/app/policy/apex-pdp/examples/config/SampleDomain/RESTServerJsonEvent.json"
+echo "Uninstall docker-py and reinstall docker."
+pip uninstall -y docker-py
+pip uninstall -y docker
+pip install -U docker==2.7.0
+
+# the directory of the script
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+echo ${DIR}
+
+# the temp directory used, within $DIR
+# omit the -p parameter to create a temporal directory in the default location
+WORK_DIR=`mktemp -d -p "$DIR"`
+echo ${WORK_DIR}
+
+cd ${WORK_DIR}
+
+# check if tmp dir was created
+if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then
+  echo "Could not create temp dir"
+  exit 1
+fi
+
+# bring down maven
+mkdir maven
+cd maven
+curl -O http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
+tar -xzvf apache-maven-3.3.9-bin.tar.gz
+ls -l
+export PATH=${PATH}:${WORK_DIR}/maven/apache-maven-3.3.9/bin
+${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v
+cd ..
+
+git clone http://gerrit.onap.org/r/oparent
+git clone --depth 1 https://gerrit.onap.org/r/policy/models -b master
+cd models/models-sim/models-sim-dmaap
+${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn clean install -DskipTests  --settings ${WORK_DIR}/oparent/settings.xml
+bash ./src/main/package/docker/docker_build.sh
+cd ${WORKSPACE}
+rm -rf ${WORK_DIR}
+sleep 3
+
+# Adding this waiting container due to race condition between pap and mariadb
+docker-compose -f ${WORKSPACE}/scripts/policy/policy-apex-pdp/docker-compose-apex.yml run --rm start_dependencies
+docker-compose -f ${WORKSPACE}/scripts/policy/policy-apex-pdp/docker-compose-apex.yml up -d
+
+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 dmaap-simulator`
 
-APEX_IP=`get-instance-ip.sh apex`
+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 initialization
 for i in {1..10}; do
-   curl -sS ${APEX_IP}:23324 && break
+   curl -sS ${MARIADB_IP}:3306 && break
+   echo sleep $i
+   sleep $i
+done
+for i in {1..10}; do
+   curl -sS ${APEX_IP}:6969 && break
+   echo sleep $i
+   sleep $i
+done
+for i in {1..10}; do
+   curl -sS ${DMAAP_IP}:3904 && break
    echo sleep $i
    sleep $i
 done
-sleep 10
+#Configure the database
+docker exec -it mariadb  chmod +x /docker-entrypoint-initdb.d/db.sh
+docker exec -it mariadb  /docker-entrypoint-initdb.d/db.sh
 
-ROBOT_VARIABLES="-v APEX_IP:${APEX_IP}"
+ROBOT_VARIABLES="-v APEX_IP:${APEX_IP} -v POLICY_API_IP:${POLICY_API_IP} -v POLICY_PAP_IP:${POLICY_PAP_IP}"
index ca8e92e..6c02aea 100644 (file)
@@ -1,6 +1,8 @@
 #!/bin/bash
 # ============LICENSE_START=======================================================
 #  Copyright (C) 2018 Ericsson. All rights reserved.
+#
+#  Modifications copyright (c) 2019 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -17,4 +19,8 @@
 # SPDX-License-Identifier: Apache-2.0
 # ============LICENSE_END=========================================================
 
-kill-instance.sh apex
+kill-instance.sh policy-apex-pdp
+kill-instance.sh policy-pap
+kill-instance.sh policy-api
+kill-instance.sh mariadb
+kill-instance.sh dmaap-simulator
index e788282..96ae471 100644 (file)
 # SPDX-License-Identifier: Apache-2.0
 # ============LICENSE_END=========================================================
 
-docker run -d --name policy-xacml-pdp -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-xacml-pdp:2.0.0-SNAPSHOT-latest 
-docker ps -a
-sleep 5
+echo "Uninstall docker-py and reinstall docker."
+pip uninstall -y docker-py
+pip uninstall -y docker
+pip install -U docker==2.7.0
+
+# the directory of the script
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+echo ${DIR}
+
+# the temp directory used, within $DIR
+# omit the -p parameter to create a temporal directory in the default location
+WORK_DIR=`mktemp -d -p "$DIR"`
+echo ${WORK_DIR}
+
+cd ${WORK_DIR}
+
+# check if tmp dir was created
+if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then
+    echo "Could not create temp dir"
+    exit 1
+fi
+
+# bring down maven
+mkdir maven
+cd maven
+curl -O http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
+tar -xzvf apache-maven-3.3.9-bin.tar.gz
+ls -l
+export PATH=${PATH}:${WORK_DIR}/maven/apache-maven-3.3.9/bin
+${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v
+cd ..
+
+git clone http://gerrit.onap.org/r/oparent
+git clone --depth 1 https://gerrit.onap.org/r/policy/models -b master
+cd models/models-sim/models-sim-dmaap
+${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn clean install -DskipTests  --settings ${WORK_DIR}/oparent/settings.xml
+bash ./src/main/package/docker/docker_build.sh
+cd ${WORKSPACE}
+rm -rf ${WORK_DIR}
+sleep 3
+
+# Adding this waiting container due to race condition between pap and mariadb
+docker-compose -f ${WORKSPACE}/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml run --rm start_dependencies
+docker-compose -f ${WORKSPACE}/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml up -d
+
+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`
-echo PDP-X IP IS ${POLICY_PDPX_IP}
+DMAAP_IP=`get-instance-ip.sh dmaap-simulator`
+POLICY_PAP_IP=`get-instance-ip.sh policy-pap`
+
+
+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 DMAAP_IP IS ${DMAAP_IP}
+
 # Wait for initialization
+for i in {1..10}; do
+   curl -sS ${MARIADB_IP}:3306 && break
+   echo sleep $i
+   sleep $i
+done
 for i in {1..10}; do
    curl -sS ${POLICY_PDPX_IP}:6969 && break
    echo sleep $i
    sleep $i
 done
+for i in {1..10}; do
+   curl -sS ${DMAAP_IP}:3904 && break
+   echo sleep $i
+   sleep $i
+done
+
+#Configure the database
+docker exec -it mariadb  chmod +x /docker-entrypoint-initdb.d/db.sh
+docker exec -it mariadb  /docker-entrypoint-initdb.d/db.sh
 
-ROBOT_VARIABLES="-v POLICY_PDPX_IP:${POLICY_PDPX_IP}"
+ROBOT_VARIABLES="-v POLICY_PDPX_IP:${POLICY_PDPX_IP} -v POLICY_API_IP:${POLICY_API_IP} -v POLICY_PAP_IP:${POLICY_PAP_IP}"
index a81ee6b..270d6cc 100644 (file)
@@ -18,3 +18,7 @@
 # ============LICENSE_END=========================================================
 
 kill-instance.sh policy-xacml-pdp
+kill-instance.sh policy-pap
+kill-instance.sh policy-api
+kill-instance.sh mariadb
+kill-instance.sh dmaap-simulator
index ff310a5..7587d09 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source ${WORKSPACE}/scripts/sdc/setup_sdc_for_apis_sanity.sh
+source ${WORKSPACE}/scripts/sdc/setup_sdc_for_sanity.sh tad
 
 BE_IP=`get-instance-ip.sh sdc-BE`
 echo BE_IP=${BE_IP}
index ff310a5..7587d09 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source ${WORKSPACE}/scripts/sdc/setup_sdc_for_apis_sanity.sh
+source ${WORKSPACE}/scripts/sdc/setup_sdc_for_sanity.sh tad
 
 BE_IP=`get-instance-ip.sh sdc-BE`
 echo BE_IP=${BE_IP}
index 0a8d56c..863f8d4 100644 (file)
@@ -1,11 +1,10 @@
 #!/bin/bash
 
-source ${WORKSPACE}/scripts/sdc/setup_sdc_for_ui_sanity.sh
+source ${WORKSPACE}/scripts/sdc/setup_sdc_for_sanity.sh tud
 
 BE_IP=`get-instance-ip.sh sdc-BE`
 echo BE_IP=${BE_IP}
 
-
 # Pass any variables required by Robot test suites in ROBOT_VARIABLES
 ROBOT_VARIABLES="-v BE_IP:${BE_IP}"
 
index 344214f..94f21e1 100644 (file)
@@ -72,5 +72,7 @@ cat config.py
 docker cp vfc-catalog:/service/vfc/nfvo/catalog/logs/runtime_catalog.log ./
 cat runtime_catalog.log
 
+docker logs vfc-catalog
+
 # Pass any variables required by Robot test suites in ROBOT_VARIABLES
 ROBOT_VARIABLES="-v MSB_IP:${MSB_IP} -v CATALOG_IP:${CATALOG_IP} -v MSB_DISCOVERY_IP:${DISCOVERY_IP} -v SCRIPTS:${SCRIPTS}"
index cfccb3f..c328f5e 100644 (file)
@@ -16,6 +16,7 @@
 #
 
 # print log file for catalog
+docker logs vfc-catalog
 docker cp vfc-catalog:/service/vfc/nfvo/catalog/logs/runtime_catalog.log ./
 cat runtime_catalog.log
 
diff --git a/run-all-tests.sh b/run-all-tests.sh
deleted file mode 100755 (executable)
index c41f069..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016-2017 Huawei Technologies Co., Ltd.
-#
-# 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.
-#
-
-set -e
-
-ROOT=`git rev-parse --show-toplevel`
-CSIT=$ROOT/test/csit
-cd $CSIT
-
-# break the name up using the first dash, since run-csit.sh just join them anyway
-for file in plans/*/*/testplan.txt; do
-    testplan=`dirname $file`
-
-    echo 
-    echo "#############################################################################"
-    echo "Running test plan $testplan"
-    echo "#############################################################################"
-    $CSIT/run-csit.sh $testplan
-    echo 
-done
index 93f4b7e..eeb8d59 100755 (executable)
@@ -97,9 +97,7 @@ pip install robotframework-selenium2library==1.8.0 robotframework-extendedseleni
 # install eteutils
 mkdir -p ${ROBOT_VENV}/src/onap
 rm -rf ${ROBOT_VENV}/src/onap/testsuite
-git clone https://gerrit.onap.org/r/testsuite/python-testing-utils.git ${ROBOT_VENV}/src/onap/testsuite/python-testing-utils
-git -C ${ROBOT_VENV}/src/onap/testsuite/python-testing-utils checkout master
-pip install --upgrade ${ROBOT_VENV}/src/onap/testsuite/python-testing-utils/robotframework-onap
+pip install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.4'
 
 pip freeze
 
diff --git a/scripts/optf-cmso/cmso/start_cmso_containers.sh b/scripts/optf-cmso/cmso/start_cmso_containers.sh
deleted file mode 100644 (file)
index ded86d7..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-#
-# -------------------------------------------------------------------------
-#   Copyright (c) 2018 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.
-#
-# -------------------------------------------------------------------------
-#
-
-echo "This is ${WORKSPACE}/scripts/opft-cmso/cmso/start_cmso_containers.sh"
-
-DB_IMAGE_VERSION=1.0-SNAPSHOT-latest
-SERVICE_IMAGE_VERSION=1.0-SNAPSHOT-latest
-
-# start cmso mariadb and  db-init containers with docker compose and configuration from cmso/cmso-service/extra/docker/cmso-service/docker-compose.yml
-
-docker run -p 3306:3306 --name cmso-mariadb -v $(pwd)/mariadb/conf1:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=beer -d mariadb:10.1.11
-
-CMSO_DB_IP=`get-instance-ip.sh  cmso-mariadb`
-
-${WORKSPACE}/scripts/optf-osdf/osdf/wait_for_port.sh ${CMSO_DB_IP} 3306
-
-sed  -i -e "s%192.168.56.101:3306%${CMSO_DB_IP}:3306%g" ./etc/config/cmso.properties
-sed  -i -e "s%192.168.56.101:3306%${CMSO_DB_IP}:3306%g" ./etc/config/liquibase.properties
-
-
-docker run --name cmso-db-init -v $(pwd)/etc:/share/etc -v $(pwd)/logs:/share/logs \
- -d nexus3.onap.org:10001/onap/optf-cmso-dbinit:${DB_IMAGE_VERSION}
-
-sleep 30
-
-docker run --name cmso-service -p 8080:8080 -v $(pwd)/etc:/share/etc -v $(pwd)/logs:/share/logs\
- -v $(pwd)/debug-logs:/share/debug-logs -d nexus3.onap.org:10001/onap/optf-cmso-service:${SERVICE_IMAGE_VERSION}
-
-CMSO_SERVICE_IP=`get-instance-ip.sh  cmso-service`
-
-${WORKSPACE}/scripts/optf-osdf/osdf/wait_for_port.sh ${CMSO_SERVICE_IP} 8080
-
-
-ROBOT_VARIABLES="-v GLOBAL_SCHEDULER_HOST:${CMSO_SERVICE_IP}"
-
-echo ${ROBOT_VARIABLES}
\ No newline at end of file
diff --git a/scripts/optf-cmso/cmso/wait_for_port.sh b/scripts/optf-cmso/cmso/wait_for_port.sh
deleted file mode 100755 (executable)
index 360fc21..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-#
-# -------------------------------------------------------------------------
-#   Copyright (c) 2018 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.
-#
-# -------------------------------------------------------------------------
-#
-
-if [[ $# -ne 2 ]]; then
-       echo "Usage: wait-for-port hostname port" >&2
-       exit 1
-fi
-
-host=$1
-port=$2
-
-echo "Waiting for $host port $port open"
-until telnet $host $port </dev/null 2>/dev/null | grep -q '^Connected'; do
-       sleep 1
-done
-
-echo "$host port $port is open"
-
-exit 0
diff --git a/scripts/policy/policy-apex-pdp/config/apex-pdp/OnapPfConfig.json b/scripts/policy/policy-apex-pdp/config/apex-pdp/OnapPfConfig.json
new file mode 100644 (file)
index 0000000..6944c9b
--- /dev/null
@@ -0,0 +1,17 @@
+{
+    "name":"OnapPfParameterGroup",
+     "restServerParameters": {
+        "host": "0.0.0.0",
+        "port": 6969,
+        "userName": "healthcheck",
+        "password": "zb!XztG34",
+        "https": true,
+        "aaf": false
+    },
+    "pdpStatusParameters":{
+        "timeIntervalMs": 10000,
+        "pdpType":"apex",
+        "description":"Pdp Heartbeat",
+        "supportedPolicyTypes":[{"name":"onap.policies.controlloop.operational.Apex","version":"1.0.0"}]
+    }
+}
diff --git a/scripts/policy/policy-apex-pdp/config/apex-pdp/topic.properties b/scripts/policy/policy-apex-pdp/config/apex-pdp/topic.properties
new file mode 100644 (file)
index 0000000..b7df11a
--- /dev/null
@@ -0,0 +1,23 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+dmaap.source.topics=POLICY-PDP-PAP
+dmaap.sink.topics=POLICY-PDP-PAP
+
+dmaap.source.topics.POLICY-PDP-PAP.servers= dmaap:3904
+dmaap.sink.topics.POLICY-PDP-PAP.servers= dmaap:3904
diff --git a/scripts/policy/policy-apex-pdp/config/db/db.conf b/scripts/policy/policy-apex-pdp/config/db/db.conf
new file mode 100644 (file)
index 0000000..4768bfc
--- /dev/null
@@ -0,0 +1,16 @@
+# Copyright (C) 2019 Nordix Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+MYSQL_ROOT_PASSWORD=secret
+MYSQL_USER=policy_user
+MYSQL_PASSWORD=policy_user
diff --git a/scripts/policy/policy-apex-pdp/config/db/db.sh b/scripts/policy/policy-apex-pdp/config/db/db.sh
new file mode 100644 (file)
index 0000000..660f2c5
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash -xv
+# Copyright (C) 2019 Nordix Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+for db in policyadmin
+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/policy-apex-pdp/config/pap/defaultConfig.json b/scripts/policy/policy-apex-pdp/config/pap/defaultConfig.json
new file mode 100644 (file)
index 0000000..32b6c30
--- /dev/null
@@ -0,0 +1,30 @@
+{
+    "name": "PapGroup",
+    "restServerParameters": {
+        "host": "0.0.0.0",
+        "port": 6969,
+        "userName": "healthcheck",
+        "password": "zb!XztG34",
+        "https": true,
+        "aaf": false
+    },
+    "pdpParameters": {
+        "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": "cG9saWN5X3VzZXI=",
+        "persistenceUnit": "PolicyMariaDb"
+    }
+}
diff --git a/scripts/policy/policy-apex-pdp/config/pap/logback.xml b/scripts/policy/policy-apex-pdp/config/pap/logback.xml
new file mode 100644 (file)
index 0000000..a34956c
--- /dev/null
@@ -0,0 +1,102 @@
+<!--
+  ============LICENSE_START=======================================================
+   Copyright (C) 2019 Nordix Foundation.
+   Modifications Copyright (C) 2019 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=========================================================
+-->
+
+<configuration scan="true" scanPeriod="30 seconds" debug="false">
+
+    <property name="logDir" value="${POLICY_LOGS}" />
+
+    <property name="errorLog" value="error" />
+    <property name="debugLog" value="debug" />
+    <property name="networkLog" value="network" />
+
+    <property name="debugPattern"
+        value="[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n" />
+    <property name="errorPattern" value="${debugPattern}" />
+    <property name="networkPattern" value="[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n" />
+
+    <appender name="ErrorOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <file>${logDir}/${errorLog}.log</file>
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${logDir}/${errorLog}.%d{yyyy-MM-dd}.%i.log.zip
+            </fileNamePattern>
+            <maxFileSize>50MB</maxFileSize>
+            <maxHistory>30</maxHistory>
+            <totalSizeCap>10GB</totalSizeCap>
+        </rollingPolicy>
+        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+            <level>WARN</level>
+        </filter>
+        <encoder>
+            <pattern>${errorPattern}</pattern>
+        </encoder>
+    </appender>
+
+    <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender">
+        <appender-ref ref="ErrorOut" />
+    </appender>
+
+    <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <file>${logDir}/${debugLog}.log</file>
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${logDir}/${debugLog}.%d{yyyy-MM-dd}.%i.log.zip
+            </fileNamePattern>
+            <maxFileSize>50MB</maxFileSize>
+            <maxHistory>30</maxHistory>
+            <totalSizeCap>10GB</totalSizeCap>
+        </rollingPolicy>
+        <encoder>
+            <pattern>${debugPattern}</pattern>
+        </encoder>
+    </appender>
+
+    <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender">
+        <appender-ref ref="DebugOut" />
+    </appender>
+
+    <appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <file>${logDir}/${networkLog}.log</file>
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${logDir}/${networkLog}.%d{yyyy-MM-dd}.%i.log.zip
+            </fileNamePattern>
+            <maxFileSize>50MB</maxFileSize>
+            <maxHistory>30</maxHistory>
+            <totalSizeCap>10GB</totalSizeCap>
+        </rollingPolicy>
+        <encoder>
+            <pattern>${networkPattern}</pattern>
+        </encoder>
+    </appender>
+
+    <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender">
+        <appender-ref ref="NetworkOut" />
+    </appender>
+
+    <logger name="network" level="INFO" additivity="false">
+        <appender-ref ref="AsyncNetworkOut" />
+    </logger>
+
+    <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
+        <appender-ref ref="AsyncNetworkOut" />
+    </logger>
+
+    <root level="INFO">
+        <appender-ref ref="AsyncDebugOut" />
+        <appender-ref ref="AsyncErrorOut" />
+    </root>
+
+</configuration>
diff --git a/scripts/policy/policy-apex-pdp/config/pap/s3pConfig.json b/scripts/policy/policy-apex-pdp/config/pap/s3pConfig.json
new file mode 100644 (file)
index 0000000..3085f45
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    "name": "PapGroup",
+    "restServerParameters": {
+        "host": "0.0.0.0",
+        "port": 6969,
+        "userName": "healthcheck",
+        "password": "zb!XztG34",
+        "https": true,
+        "aaf": false
+    }
+}
diff --git a/scripts/policy/policy-apex-pdp/config/pap/ssl/policy-keystore b/scripts/policy/policy-apex-pdp/config/pap/ssl/policy-keystore
new file mode 100644 (file)
index 0000000..bf876b8
Binary files /dev/null and b/scripts/policy/policy-apex-pdp/config/pap/ssl/policy-keystore differ
diff --git a/scripts/policy/policy-apex-pdp/config/pap/ssl/policy-truststore b/scripts/policy/policy-apex-pdp/config/pap/ssl/policy-truststore
new file mode 100644 (file)
index 0000000..b7d52ad
Binary files /dev/null and b/scripts/policy/policy-apex-pdp/config/pap/ssl/policy-truststore differ
diff --git a/scripts/policy/policy-apex-pdp/config/pap/topic.properties b/scripts/policy/policy-apex-pdp/config/pap/topic.properties
new file mode 100644 (file)
index 0000000..b7df11a
--- /dev/null
@@ -0,0 +1,23 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+dmaap.source.topics=POLICY-PDP-PAP
+dmaap.sink.topics=POLICY-PDP-PAP
+
+dmaap.source.topics.POLICY-PDP-PAP.servers= dmaap:3904
+dmaap.sink.topics.POLICY-PDP-PAP.servers= dmaap:3904
diff --git a/scripts/policy/policy-apex-pdp/docker-compose-apex.yml b/scripts/policy/policy-apex-pdp/docker-compose-apex.yml
new file mode 100644 (file)
index 0000000..9039b89
--- /dev/null
@@ -0,0 +1,74 @@
+# Copyright (C) 2019 Nordix Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+version: '2'
+networks:
+  default:
+    driver: bridge
+services:
+   mariadb:
+      image: mariadb:10.2.14
+      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
+      ports:
+       - "3306:3306"
+   dmaap:
+      image: dmaap/simulator
+      container_name: dmaap-simulator
+      hostname: dmaap-simulator
+      ports:
+       - "3904:3904"
+   pap:
+      image: nexus3.onap.org:10001/onap/policy-pap:2.0.0-SNAPSHOT-latest
+      container_name: policy-pap
+      depends_on:
+       - mariadb
+       - dmaap
+      hostname: policy-pap
+      volumes:
+         - ./config/pap/:/opt/app/policy/pap/etc/
+   api:
+      image: nexus3.onap.org:10001/onap/policy-api
+      container_name: policy-api
+      depends_on:
+       - mariadb
+      hostname: policy-api
+   apex:
+      image: nexus3.onap.org:10001/onap/policy-apex-pdp:2.1-SNAPSHOT-latest
+      container_name: policy-apex-pdp
+      depends_on:
+       - mariadb
+       - dmaap
+       - pap
+       - api
+      hostname: policy-apex-pdp
+      command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', '-p', '/opt/app/policy/apex-pdp/etc/onappf/config/topic.properties']
+      volumes:
+         - ./config/apex-pdp/:/opt/app/policy/apex-pdp/etc/onappf/config/
+      ports:
+       - "6969:6969"
+       - "23324:23324"
+   start_dependencies:
+      image: dadarek/wait-for-dependencies
+      container_name: policy-wait
+      depends_on:
+        - mariadb
+        - dmaap
+      hostname: policy-wait
+      command:
+        - mariadb:3306
+        - dmaap:3904
diff --git a/scripts/policy/policy-xacml-pdp/config/db/db.conf b/scripts/policy/policy-xacml-pdp/config/db/db.conf
new file mode 100644 (file)
index 0000000..b444911
--- /dev/null
@@ -0,0 +1,20 @@
+# ============LICENSE_START=======================================================
+#  Copyright (C) 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+MYSQL_ROOT_PASSWORD=secret
+MYSQL_USER=policy_user
+MYSQL_PASSWORD=policy_user
\ No newline at end of file
diff --git a/scripts/policy/policy-xacml-pdp/config/db/db.sh b/scripts/policy/policy-xacml-pdp/config/db/db.sh
new file mode 100644 (file)
index 0000000..ac150a0
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash -xv
+# ============LICENSE_START=======================================================
+#  Copyright (C) 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+for db in policyadmin
+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;"
\ No newline at end of file
diff --git a/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml b/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml
new file mode 100644 (file)
index 0000000..62e0ce2
--- /dev/null
@@ -0,0 +1,72 @@
+# ============LICENSE_START=======================================================
+#  Copyright (C) 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+version: '2'
+networks:
+  default:
+    driver: bridge
+services:
+   mariadb:
+      image: mariadb:10.2.14
+      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
+      ports:
+       - "3306:3306"
+   message-router:
+      image: dmaap/simulator
+      container_name: dmaap-simulator
+      hostname: dmaap-simulator
+      ports:
+       - "3904:3904"
+   pap:
+      image: nexus3.onap.org:10001/onap/policy-pap:2.0.0-SNAPSHOT-latest
+      container_name: policy-pap
+      depends_on:
+       - mariadb
+       - message-router
+      hostname: policy-pap
+   api:
+      image: nexus3.onap.org:10001/onap/policy-api
+      container_name: policy-api
+      depends_on:
+       - mariadb
+      hostname: policy-api
+   xacml-pdp:
+      image: nexus3.onap.org:10001/onap/policy-xacml-pdp:2.0.0-SNAPSHOT-latest 
+      container_name: policy-xacml-pdp
+      depends_on:
+       - mariadb
+       - message-router
+       - pap
+       - api
+      hostname: policy-xacml-pdp
+      ports:
+       - "6969:6969"
+   start_dependencies:
+      image: dadarek/wait-for-dependencies
+      container_name: policy-wait
+      depends_on:
+        - mariadb
+        - message-router
+      hostname: policy-wait
+      command:
+        - mariadb:3306
+        - message-router:3904
index 4264b1a..30efd39 100644 (file)
@@ -2,22 +2,21 @@
 
 curl localhost:9200/_cluster/health?pretty=true
 
-echo "BE health-Check:"
+echo "BE Health Check:"
 curl http://localhost:8080/sdc2/rest/healthCheck
 
 echo ""
 echo ""
-echo "FE health-Check:"
+echo "FE Health Check:"
 curl http://localhost:8181/sdc1/rest/healthCheck
 
-
 echo ""
 echo ""
 http_code=$(curl -o out.html -w '%{http_code}' -H "Accept: application/json" -H "Content-Type: application/json" -H "USER_ID: jh0003" http://localhost:8080/sdc2/rest/v1/user/demo;)
 if [[ ${http_code} != 200 ]]
 then
-    echo "Error [${http_code}] while user existance check"
+    echo "Error [${http_code}] while checking existence of user"
     return ${http_code}
 fi
-echo "check user existance: OK"
+echo "Check user existence: OK"
 
diff --git a/scripts/sdc/kill_dcae_containers.sh b/scripts/sdc/kill_dcae_containers.sh
new file mode 100644 (file)
index 0000000..5e11372
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/bash
+#
+# Copyright 2019 Â© Samsung Electronics Co., Ltd.
+#
+# 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.
+#
+
+#
+# Note! This is only temporary solution for killing SDC DCAE plugin's
+# docker containers that must be currently used whenever docker_run.sh is used
+# with -dcae option - See SDC-2338 for related image naming issue 
+#
+# DCAE plugin-related parts will also have to be refactored under dedicated
+# directories in the future
+#
+
+echo "This is ${WORKSPACE}/scripts/sdc/kill_dcae_containers.sh"
+
+# kill and remove all sdc dcae dockers
+docker stop $(docker ps -a -q --filter="name=dcae")
+docker rm $(docker ps -a -q --filter="name=dcae")
diff --git a/scripts/sdc/setup_sdc_for_apis_sanity.sh b/scripts/sdc/setup_sdc_for_apis_sanity.sh
deleted file mode 100644 (file)
index c1442d1..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/bash
-
-set -x
-
-echo "This is ${WORKSPACE}/scripts/sdc/clone_and_setup_sdc_data.sh"
-
-# Clone sdc enviroment template 
-mkdir -p ${WORKSPACE}/data/environments/
-mkdir -p ${WORKSPACE}/data/clone/
-#mkdir -p ${WORKSPACE}/data/logs/BE/SDC/SDC-BE
-#mkdir -p ${WORKSPACE}/data/logs/FE/SDC/SDC-FE
-#chmod -R 777 ${WORKSPACE}/data/logs
-#ls -lR ${WORKSPACE}/data/logs/
-
-
-cd ${WORKSPACE}/data/clone
-git clone --depth 1 http://gerrit.onap.org/r/sdc -b ${GERRIT_BRANCH}
-
-chmod -R 777 ${WORKSPACE}/data/clone
-
-# set enviroment variables
-
-export ENV_NAME='CSIT'
-export MR_IP_ADDR='10.0.0.1'
-
-ifconfig
-IP_ADDRESS=`ip route get 8.8.8.8 | awk '/src/{ print $7 }'`
-export HOST_IP=$IP_ADDRESS
-
-# setup enviroment json
-   
-cat ${WORKSPACE}/data/clone/sdc/sdc-os-chef/environments/Template.json | sed "s/yyy/"$IP_ADDRESS"/g" > ${WORKSPACE}/data/environments/$ENV_NAME.json
-sed -i "s/xxx/"$ENV_NAME"/g" ${WORKSPACE}/data/environments/$ENV_NAME.json
-sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \""$MR_IP_ADDR","$MR_IP_ADDR"\",/g" ${WORKSPACE}/data/environments/$ENV_NAME.json
-sed -i "s/\"fqdn\":.*/\"fqdn\": [\""$MR_IP_ADDR"\", \""$MR_IP_ADDR"\"]/g" ${WORKSPACE}/data/environments/$ENV_NAME.json
-
-  
-source ${WORKSPACE}/data/clone/sdc/version.properties
-export RELEASE=$major.$minor-STAGING-latest
-export DEP_ENV=$ENV_NAME  
-  
-cp ${WORKSPACE}/data/clone/sdc/sdc-os-chef/scripts/docker_run.sh ${WORKSPACE}/scripts/sdc/
-#sed -i "s~/data~${WORKSPACE}\/data~g" ${WORKSPACE}/scripts/sdc/docker_run.sh
-#sed -i "s/HOST_IP=\${IP}/HOST_IP=\${HOST_IP}/g" ${WORKSPACE}/scripts/sdc/docker_run.sh
-#sed -i "s/ENVNAME=\"\${DEP_ENV}\"/ENVNAME=\"\${ENV_NAME}\"/g" ${WORKSPACE}/scripts/sdc/docker_run.sh
-
-source ${WORKSPACE}/data/clone/sdc/version.properties
-export RELEASE=$major.$minor-STAGING-latest
-
-${WORKSPACE}/scripts/sdc/docker_run.sh -r ${RELEASE} -e ${ENV_NAME} -p 10001 -tad
-
-sleep 120
-
-#monitor test processes 
-
-TIME_OUT=1200
-INTERVAL=20
-TIME=0
-CID=`docker ps | grep tests |  awk '{print $1}'`
-
-while [ "$TIME" -lt "$TIME_OUT" ]; do
-  
-PID=`docker exec -i $CID ps -ef | grep java | awk '{print $1}'`
-
-echo sanity PID is -- $PID
-  
-if [ -z "$PID" ]
- then
-    echo SDC sanity finished in $TIME seconds
-    break
-  fi
-
-  echo Sleep: $INTERVAL seconds before testing if SDC sanity completed. Total wait time up now is: $TIME seconds. Timeout is: $TIME_OUT seconds
-  sleep $INTERVAL
-  TIME=$(($TIME+$INTERVAL))
-done
-
-if [ "$TIME" -ge "$TIME_OUT" ]
- then
-   echo TIME OUT: Sany was NOT completed in $TIME_OUT seconds... Could cause problems for tests...
-fi
-
-
-
-
similarity index 79%
rename from scripts/sdc/setup_sdc_for_ui_sanity.sh
rename to scripts/sdc/setup_sdc_for_sanity.sh
index 6f8a232..79708c5 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/bash
 
+function usage {
+    echo "usage: setup_sdc_for_sanity.sh {tad|tud}"
+    echo "setup sdc and run api test suite: setup_sdc_for_sanity.sh tad"
+    echo "setup sdc and run ui test suite: setup_sdc_for_sanity.sh tud"
+}
+
+
 set -x
 
-echo "This is ${WORKSPACE}/scripts/sdc/clone_and_setup_sdc_data.sh"
+echo "This is ${WORKSPACE}/scripts/sdc/setup_sdc_for_sanity.sh"
+
+
+if [ "$1" != "tad" ] && [ "$1" != "tud" ]; then
+    usage
+    exit 1
+fi
 
-# Clone sdc enviroment template 
+# Clone sdc enviroment template
 mkdir -p ${WORKSPACE}/data/environments/
 mkdir -p ${WORKSPACE}/data/clone/
 #mkdir -p ${WORKSPACE}/data/logs/BE/SDC/SDC-BE
@@ -12,7 +25,6 @@ mkdir -p ${WORKSPACE}/data/clone/
 #chmod -R 777 ${WORKSPACE}/data/logs
 #ls -lR ${WORKSPACE}/data/logs/
 
-
 cd ${WORKSPACE}/data/clone
 git clone --depth 1 http://gerrit.onap.org/r/sdc -b ${GERRIT_BRANCH}
 
@@ -22,13 +34,14 @@ chmod -R 777 ${WORKSPACE}/data/clone
 
 export ENV_NAME='CSIT'
 export MR_IP_ADDR='10.0.0.1'
+export TEST_SUITE=$1
 
 ifconfig
 IP_ADDRESS=`ip route get 8.8.8.8 | awk '/src/{ print $7 }'`
 export HOST_IP=$IP_ADDRESS
 
 # setup enviroment json
-   
+
 cat ${WORKSPACE}/data/clone/sdc/sdc-os-chef/environments/Template.json | sed "s/yyy/"$IP_ADDRESS"/g" > ${WORKSPACE}/data/environments/$ENV_NAME.json
 sed -i "s/xxx/"$ENV_NAME"/g" ${WORKSPACE}/data/environments/$ENV_NAME.json
 sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \""$MR_IP_ADDR","$MR_IP_ADDR"\",/g" ${WORKSPACE}/data/environments/$ENV_NAME.json
@@ -37,8 +50,8 @@ sed -i "s/\"fqdn\":.*/\"fqdn\": [\""$MR_IP_ADDR"\", \""$MR_IP_ADDR"\"]/g" ${WORK
   
 source ${WORKSPACE}/data/clone/sdc/version.properties
 export RELEASE=$major.$minor-STAGING-latest
-export DEP_ENV=$ENV_NAME  
-  
+export DEP_ENV=$ENV_NAME
+
 cp ${WORKSPACE}/data/clone/sdc/sdc-os-chef/scripts/docker_run.sh ${WORKSPACE}/scripts/sdc/
 #sed -i "s~/data~${WORKSPACE}\/data~g" ${WORKSPACE}/scripts/sdc/docker_run.sh
 #sed -i "s/HOST_IP=\${IP}/HOST_IP=\${HOST_IP}/g" ${WORKSPACE}/scripts/sdc/docker_run.sh
@@ -47,11 +60,11 @@ cp ${WORKSPACE}/data/clone/sdc/sdc-os-chef/scripts/docker_run.sh ${WORKSPACE}/sc
 source ${WORKSPACE}/data/clone/sdc/version.properties
 export RELEASE=$major.$minor-STAGING-latest
 
-${WORKSPACE}/scripts/sdc/docker_run.sh -r ${RELEASE} -e ${ENV_NAME} -p 10001 -tud
+${WORKSPACE}/scripts/sdc/docker_run.sh -r ${RELEASE} -e ${ENV_NAME} -p 10001 -${TEST_SUITE}
 
 sleep 120
 
-#monitor test processes 
+#monitor test processes
 
 TIME_OUT=1200
 INTERVAL=20
@@ -77,7 +90,7 @@ done
 
 if [ "$TIME" -ge "$TIME_OUT" ]
  then
-   echo TIME OUT: Sany was NOT completed in $TIME_OUT seconds... Could cause problems for tests...
+   echo TIME OUT: SDC sanity was NOT completed in $TIME_OUT seconds... Could cause problems for tests...
 fi
 
 
index d8f3c90..10ce41c 100644 (file)
@@ -1,37 +1,39 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "startEpochMicrosec": 1540212137393,
-      "sourceId": "val13",
-      "eventId": "registration_40212137",
-      "nfcNamingCode": "oam",
-      "internalHeaderFields": {
-        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "startEpochMicrosec": 1540212137393,
+        "sourceId": "val13",
+        "eventId": "registration_40212137",
+        "nfcNamingCode": "oam",
+        "internalHeaderFields": {
+          "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+        },
+        "eventType": "pnfRegistration",
+        "priority": "Normal",
+        "version": "4.0.1",
+        "reportingEntityName": "NOK6061ZW8",
+        "sequence": 0,
+        "domain": "pnfRegistration",
+        "lastEpochMicrosec": 1540212137393,
+        "eventName": "pnfRegistration_Nokia_5gDu",
+        "vesEventListenerVersion": "7.0.1",
+        "sourceName": "NOK6061ZW8",
+        "nfNamingCode": "gNB"
       },
-      "eventType": "pnfRegistration",
-      "priority": "Normal",
-      "version": "4.0.1",
-      "reportingEntityName": "NOK6061ZW8",
-      "sequence": 0,
-      "domain": "pnfRegistration",
-      "lastEpochMicrosec": 1540212137393,
-      "eventName": "pnfRegistration_Nokia_5gDu",
-      "vesEventListenerVersion": "7.0.1",
-      "sourceName": "NOK6061ZW8",
-      "nfNamingCode": "gNB"
-    },
-    "pnfRegistrationFields": {
-      "unitType": "val8",
-      "serialNumber": "6061ZW9",
-      "pnfRegistrationFieldsVersion": "2.0",
-      "manufactureDate": "1540212137393",
-      "modelNumber": "val6",
-      "lastServiceDate": "1540212137393",
-      "unitFamily": "BBU",
-      "vendorName": "Nokia",
-      "oamV4IpAddress": "val3",
-      "oamV6IpAddress": "val4",
-      "softwareVersion": "val7"
+      "pnfRegistrationFields": {
+        "unitType": "val8",
+        "serialNumber": "6061ZW9",
+        "pnfRegistrationFieldsVersion": "2.0",
+        "manufactureDate": "1540212137393",
+        "modelNumber": "val6",
+        "lastServiceDate": "1540212137393",
+        "unitFamily": "BBU",
+        "vendorName": "Nokia",
+        "oamV4IpAddress": "val3",
+        "oamV6IpAddress": "val4",
+        "softwareVersion": "val7"
+      }
     }
   }
-}
+]
\ No newline at end of file
index d8f3c90..10ce41c 100644 (file)
@@ -1,37 +1,39 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "startEpochMicrosec": 1540212137393,
-      "sourceId": "val13",
-      "eventId": "registration_40212137",
-      "nfcNamingCode": "oam",
-      "internalHeaderFields": {
-        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "startEpochMicrosec": 1540212137393,
+        "sourceId": "val13",
+        "eventId": "registration_40212137",
+        "nfcNamingCode": "oam",
+        "internalHeaderFields": {
+          "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+        },
+        "eventType": "pnfRegistration",
+        "priority": "Normal",
+        "version": "4.0.1",
+        "reportingEntityName": "NOK6061ZW8",
+        "sequence": 0,
+        "domain": "pnfRegistration",
+        "lastEpochMicrosec": 1540212137393,
+        "eventName": "pnfRegistration_Nokia_5gDu",
+        "vesEventListenerVersion": "7.0.1",
+        "sourceName": "NOK6061ZW8",
+        "nfNamingCode": "gNB"
       },
-      "eventType": "pnfRegistration",
-      "priority": "Normal",
-      "version": "4.0.1",
-      "reportingEntityName": "NOK6061ZW8",
-      "sequence": 0,
-      "domain": "pnfRegistration",
-      "lastEpochMicrosec": 1540212137393,
-      "eventName": "pnfRegistration_Nokia_5gDu",
-      "vesEventListenerVersion": "7.0.1",
-      "sourceName": "NOK6061ZW8",
-      "nfNamingCode": "gNB"
-    },
-    "pnfRegistrationFields": {
-      "unitType": "val8",
-      "serialNumber": "6061ZW9",
-      "pnfRegistrationFieldsVersion": "2.0",
-      "manufactureDate": "1540212137393",
-      "modelNumber": "val6",
-      "lastServiceDate": "1540212137393",
-      "unitFamily": "BBU",
-      "vendorName": "Nokia",
-      "oamV4IpAddress": "val3",
-      "oamV6IpAddress": "val4",
-      "softwareVersion": "val7"
+      "pnfRegistrationFields": {
+        "unitType": "val8",
+        "serialNumber": "6061ZW9",
+        "pnfRegistrationFieldsVersion": "2.0",
+        "manufactureDate": "1540212137393",
+        "modelNumber": "val6",
+        "lastServiceDate": "1540212137393",
+        "unitFamily": "BBU",
+        "vendorName": "Nokia",
+        "oamV4IpAddress": "val3",
+        "oamV6IpAddress": "val4",
+        "softwareVersion": "val7"
+      }
     }
   }
-}
+]
\ No newline at end of file
index ac7c309..75a73fa 100644 (file)
@@ -1,15 +1,17 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW2"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.17.123.234",
-      "oamV6IpAddress":"",
-      "serialNumber":"NOkkaaa123",
-      "vendorName":"equipVendor",
-      "modelNumber":"equipModel",
-      "unitType":"equipType"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW2"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.17.123.234",
+        "oamV6IpAddress": "",
+        "serialNumber": "NOkkaaa123",
+        "vendorName": "equipVendor",
+        "modelNumber": "equipModel",
+        "unitType": "equipType"
+      }
     }
   }
-}
+]
\ No newline at end of file
index 7fdef4f..ae43bd6 100644 (file)
@@ -1,16 +1,18 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"ERI6061ZW3"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8b2e:0370:7334",
-      "serialNumber":"NOkkaaa123",
-      "vendorName":"equipVendor",
-      "modelNumber":"equipModel",
-      "unitType":"equipType",
-      "additionalFields": {}
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "ERI6061ZW3"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8b2e:0370:7334",
+        "serialNumber": "NOkkaaa123",
+        "vendorName": "equipVendor",
+        "modelNumber": "equipModel",
+        "unitType": "equipType",
+        "additionalFields": {}
+      }
     }
   }
-}
+]
\ No newline at end of file
index eb4dfaf..13c564c 100644 (file)
@@ -1,21 +1,23 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW1",
-      "nfNamingCode": "nfNamingCode"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.16.123.234",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
-      "serialNumber":"serialNumber",
-      "vendorName":"vendorName",
-      "modelNumber":"modelNumber",
-      "unitType":"unitType",
-      "additionalFields": {
-        "attachmentPoint": "bla-bla-30-3",
-        "svlan": "1005",
-        "cvlan": "678"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW1",
+        "nfNamingCode": "nfNamingCode"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.16.123.234",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
+        "serialNumber": "serialNumber",
+        "vendorName": "vendorName",
+        "modelNumber": "modelNumber",
+        "unitType": "unitType",
+        "additionalFields": {
+          "attachmentPoint": "bla-bla-30-3",
+          "svlan": "1005",
+          "cvlan": "678"
+        }
       }
     }
   }
-}
+]
\ No newline at end of file
index 6a14bfd..7ac9bf1 100644 (file)
@@ -1,15 +1,17 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW4"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"",
-      "oamV6IpAddress":"",
-      "serialNumber":"",
-      "vendorName":"",
-      "modelNumber":"",
-      "unitType":""
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW4"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "",
+        "oamV6IpAddress": "",
+        "serialNumber": "",
+        "vendorName": "",
+        "modelNumber": "",
+        "unitType": ""
+      }
     }
   }
-}
+]
\ No newline at end of file
index 2bae7e6..88e2536 100644 (file)
@@ -1,16 +1,18 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":""
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.18.123.234",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2a:0370:7334",
-      "serialNumber":"",
-      "vendorName":"",
-      "modelNumber":"",
-      "unitType":"",
-      "additionalFields": {}
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": ""
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.18.123.234",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2a:0370:7334",
+        "serialNumber": "",
+        "vendorName": "",
+        "modelNumber": "",
+        "unitType": "",
+        "additionalFields": {}
+      }
     }
   }
-}
+]
\ No newline at end of file
index de1f576..04d5b3d 100644 (file)
@@ -1,11 +1,13 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":""
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"",
-      "oamV6IpAddress":""
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": ""
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "",
+        "oamV6IpAddress": ""
+      }
     }
   }
-}
+]
\ No newline at end of file
index 4838f1b..3b6b7ad 100644 (file)
@@ -1,11 +1,13 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":""
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8b2f:0370:7334"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": ""
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8b2f:0370:7334"
+      }
     }
   }
-}
+]
\ No newline at end of file
index 253869a..c81c5a7 100644 (file)
@@ -1,12 +1,13 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":""
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.17.163.234",
-      "oamV6IpAddress":""
-
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": ""
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.17.163.234",
+        "oamV6IpAddress": ""
+      }
     }
   }
-}
+]
\ No newline at end of file
index 39fadb8..9be02f1 100644 (file)
@@ -1,22 +1,24 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW4",
-      "nfNamingCode": "nfNamingCode",
-      "nfcNamingCode": "nfcNamingCode"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"ipv4",
-      "oamV6IpAddress":"",
-      "serialNumber":"sn1234",
-      "vendorName":"vendorName",
-      "modelNumber":"modelNumber",
-      "unitType":"unitType",
-      "additionalFields": {
-        "attachmentPoint": "bla-bla-30-3",
-        "svlan": "1005",
-        "cvlan": "678"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW4",
+        "nfNamingCode": "nfNamingCode",
+        "nfcNamingCode": "nfcNamingCode"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "ipv4",
+        "oamV6IpAddress": "",
+        "serialNumber": "sn1234",
+        "vendorName": "vendorName",
+        "modelNumber": "modelNumber",
+        "unitType": "unitType",
+        "additionalFields": {
+          "attachmentPoint": "bla-bla-30-3",
+          "svlan": "1005",
+          "cvlan": "678"
+        }
       }
     }
   }
-}
+]
\ No newline at end of file
index 986b992..a80a70a 100644 (file)
@@ -1,17 +1,19 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW3",
-      "nfNamingCode": ""
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.16.123.234",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
-      "serialNumber":"",
-      "vendorName":"",
-      "modelNumber":"",
-      "unitType":"",
-      "additionalFields": {}
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW3",
+        "nfNamingCode": ""
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.16.123.234",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
+        "serialNumber": "",
+        "vendorName": "",
+        "modelNumber": "",
+        "unitType": "",
+        "additionalFields": {}
+      }
     }
   }
-}
+]
\ No newline at end of file
index 16963e1..9acbeb3 100644 (file)
@@ -1,11 +1,13 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW1"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.16.123.234",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW1"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.16.123.234",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
+      }
     }
   }
-}
+]
\ No newline at end of file
index c10f0d6..6c0666c 100644 (file)
@@ -1,14 +1,16 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW4"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.16.123.234",
-      "oamV6IpAddress":"",
-      "serialNumber":"123",
-      "modelNumber":"sn123243",
-      "unitType": "unitType"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW4"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.16.123.234",
+        "oamV6IpAddress": "",
+        "serialNumber": "123",
+        "modelNumber": "sn123243",
+        "unitType": "unitType"
+      }
     }
   }
-}
+]
\ No newline at end of file
index 02f0137..a053f7a 100644 (file)
@@ -1,14 +1,16 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW9"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.17.123.24",
-      "serialNumber":"NOkkaaa123",
-      "vendorName":"equipVendor",
-      "modelNumber":"equipModel",
-      "unitType":"equipType"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW9"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.17.123.24",
+        "serialNumber": "NOkkaaa123",
+        "vendorName": "equipVendor",
+        "modelNumber": "equipModel",
+        "unitType": "equipType"
+      }
     }
   }
-}
+]
\ No newline at end of file
index f6afb1d..87afc51 100644 (file)
@@ -1,15 +1,17 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW1"
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress":"10.16.123.234",
-      "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
-      "serialNumber":"NOkkaaa123",
-      "vendorName":"equipVendor",
-      "modelNumber":"equipModel",
-      "unitType":"equipType",
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW1"
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.16.123.234",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
+        "serialNumber": "NOkkaaa123",
+        "vendorName": "equipVendor",
+        "modelNumber": "equipModel",
+        "unitType": "equipType",
+      }
     }
   }
-}
+]
\ No newline at end of file
index c308967..02a84e6 100644 (file)
@@ -1,14 +1,16 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW1",
-      "nfNamingCode": "nfNamingCode"
-    },
-    "pnfRegistrationFields": {
-      "serialNumber":"serialNumber",
-      "vendorName":"vendorName",
-      "modelNumber":"modelNumber",
-      "unitType":"unitType"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW1",
+        "nfNamingCode": "nfNamingCode"
+      },
+      "pnfRegistrationFields": {
+        "serialNumber": "serialNumber",
+        "vendorName": "vendorName",
+        "modelNumber": "modelNumber",
+        "unitType": "unitType"
+      }
     }
   }
-}
\ No newline at end of file
+]
\ No newline at end of file
index 9d730bf..054774c 100644 (file)
@@ -1,19 +1,21 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName":"NOK6061ZW1",
-      "nfNamingCode": "nfNamingCode"
-    },
-    "pnfRegistrationFields": {
-      "serialNumber":"serialNumber",
-      "vendorName":"vendorName",
-      "modelNumber":"modelNumber",
-      "unitType":"unitType",
-      "additionalFields": {
-        "attachmentPoint": "bla-bla-30-3",
-        "svlan": "1005",
-        "cvlan": "678"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": "NOK6061ZW1",
+        "nfNamingCode": "nfNamingCode"
+      },
+      "pnfRegistrationFields": {
+        "serialNumber": "serialNumber",
+        "vendorName": "vendorName",
+        "modelNumber": "modelNumber",
+        "unitType": "unitType",
+        "additionalFields": {
+          "attachmentPoint": "bla-bla-30-3",
+          "svlan": "1005",
+          "cvlan": "678"
+        }
       }
     }
   }
-}
\ No newline at end of file
+]
\ No newline at end of file
index 52024d6..2bdc057 100644 (file)
@@ -1,16 +1,18 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "sourceName": ""
-    },
-    "pnfRegistrationFields": {
-      "oamV4IpAddress": "10.18.123.236",
-      "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2a:0370:7334",
-      "serialNumber": "",
-      "vendorName": "",
-      "modelNumber": "",
-      "unitType": "",
-      "additionalFields": {}
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "sourceName": ""
+      },
+      "pnfRegistrationFields": {
+        "oamV4IpAddress": "10.18.123.236",
+        "oamV6IpAddress": "2001:0db8:85a3:0000:0000:8a2a:0370:7334",
+        "serialNumber": "",
+        "vendorName": "",
+        "modelNumber": "",
+        "unitType": "",
+        "additionalFields": {}
+      }
     }
   }
-}
+]
\ No newline at end of file
index f6afb1d..cc6502f 100644 (file)
@@ -9,7 +9,7 @@
       "serialNumber":"NOkkaaa123",
       "vendorName":"equipVendor",
       "modelNumber":"equipModel",
-      "unitType":"equipType",
+      "unitType":"equipType"
     }
   }
 }
index 9da0201..0ccc1df 100644 (file)
@@ -1,6 +1,8 @@
-{
-  "additionalFields": {
-    "attachmentPoint": "bbs-link"
-  },
-  "correlationId": "NOK6061ZW9"
-}
+[
+  {
+    "additionalFields": {
+      "attachmentPoint": "bbs-link"
+    },
+    "correlationId": "NOK6061ZW9"
+  }
+]
\ No newline at end of file
index c67d863..9f02498 100644 (file)
@@ -1,40 +1,42 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "startEpochMicrosec": 1540212137393,
-      "sourceId": "val13",
-      "eventId": "registration_40212137",
-      "nfcNamingCode": "oam",
-      "internalHeaderFields": {
-        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "startEpochMicrosec": 1540212137393,
+        "sourceId": "val13",
+        "eventId": "registration_40212137",
+        "nfcNamingCode": "oam",
+        "internalHeaderFields": {
+          "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+        },
+        "eventType": "pnfRegistration",
+        "priority": "Normal",
+        "version": "4.0.1",
+        "reportingEntityName": "NOK6061ZW9",
+        "sequence": 0,
+        "domain": "pnfRegistration",
+        "lastEpochMicrosec": 1540212137393,
+        "eventName": "pnfRegistration_Nokia_5gDu",
+        "vesEventListenerVersion": "7.0.1",
+        "sourceName": "NOK6061ZW9",
+        "nfNamingCode": "gNB"
       },
-      "eventType": "pnfRegistration",
-      "priority": "Normal",
-      "version": "4.0.1",
-      "reportingEntityName": "NOK6061ZW9",
-      "sequence": 0,
-      "domain": "pnfRegistration",
-      "lastEpochMicrosec": 1540212137393,
-      "eventName": "pnfRegistration_Nokia_5gDu",
-      "vesEventListenerVersion": "7.0.1",
-      "sourceName": "NOK6061ZW9",
-      "nfNamingCode": "gNB"
-    },
-    "pnfRegistrationFields": {
-      "unitType": "val8",
-      "serialNumber": "6061ZW9",
-      "pnfRegistrationFieldsVersion": "2.0",
-      "manufactureDate": "1540212137393",
-      "modelNumber": "val6",
-      "lastServiceDate": "1540212137393",
-      "unitFamily": "BBU",
-      "vendorName": "Nokia",
-      "oamV4IpAddress": "val3",
-      "oamV6IpAddress": "val4",
-      "softwareVersion": "val7",
-      "additionalFields": {
-        "attachmentPoint": "bbs-link"
+      "pnfRegistrationFields": {
+        "unitType": "val8",
+        "serialNumber": "6061ZW9",
+        "pnfRegistrationFieldsVersion": "2.0",
+        "manufactureDate": "1540212137393",
+        "modelNumber": "val6",
+        "lastServiceDate": "1540212137393",
+        "unitFamily": "BBU",
+        "vendorName": "Nokia",
+        "oamV4IpAddress": "val3",
+        "oamV6IpAddress": "val4",
+        "softwareVersion": "val7",
+        "additionalFields": {
+          "attachmentPoint": "bbs-link"
+        }
       }
     }
   }
-}
+]
index 8fbfff3..b7e5af5 100644 (file)
@@ -1,39 +1,41 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "startEpochMicrosec": 1540212137393,
-      "sourceId": "val13",
-      "eventId": "registration_40212137",
-      "nfcNamingCode": "oam",
-      "internalHeaderFields": {
-        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "startEpochMicrosec": 1540212137393,
+        "sourceId": "val13",
+        "eventId": "registration_40212137",
+        "nfcNamingCode": "oam",
+        "internalHeaderFields": {
+          "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+        },
+        "eventType": "pnfRegistration",
+        "priority": "Normal",
+        "version": "4.0.1",
+        "reportingEntityName": "NOK6061ZW8",
+        "sequence": 0,
+        "domain": "pnfRegistration",
+        "lastEpochMicrosec": 1540212137393,
+        "eventName": "pnfRegistration_Nokia_5gDu",
+        "vesEventListenerVersion": "7.0.1",
+        "sourceName": "NOK6061ZW8",
+        "nfNamingCode": "gNB"
       },
-      "eventType": "pnfRegistration",
-      "priority": "Normal",
-      "version": "4.0.1",
-      "reportingEntityName": "NOK6061ZW8",
-      "sequence": 0,
-      "domain": "pnfRegistration",
-      "lastEpochMicrosec": 1540212137393,
-      "eventName": "pnfRegistration_Nokia_5gDu",
-      "vesEventListenerVersion": "7.0.1",
-      "sourceName": "NOK6061ZW8",
-      "nfNamingCode": "gNB"
-    },
-    "pnfRegistrationFields": {
-      "unitType": "val8",
-      "serialNumber": "6061ZW9",
-      "pnfRegistrationFieldsVersion": "2.0",
-      "manufactureDate": "1540212137393",
-      "modelNumber": "val6",
-      "lastServiceDate": "1540212137393",
-      "unitFamily": "BBU",
-      "vendorName": "Nokia",
-      "oamV4IpAddress": "val3",
-      "oamV6IpAddress": "val4",
-      "softwareVersion": "val7",
-      "additionalFields": {
+      "pnfRegistrationFields": {
+        "unitType": "val8",
+        "serialNumber": "6061ZW9",
+        "pnfRegistrationFieldsVersion": "2.0",
+        "manufactureDate": "1540212137393",
+        "modelNumber": "val6",
+        "lastServiceDate": "1540212137393",
+        "unitFamily": "BBU",
+        "vendorName": "Nokia",
+        "oamV4IpAddress": "val3",
+        "oamV6IpAddress": "val4",
+        "softwareVersion": "val7",
+        "additionalFields": {
+        }
       }
     }
   }
-}
+]
\ No newline at end of file
index 75cb4a2..d2cf954 100644 (file)
@@ -1,6 +1,8 @@
-{
-  "additionalFields": {
-    "attachmentPoint": ""
-  },
-  "correlationId": "NOK6061ZW8"
-}
+[
+  {
+    "additionalFields": {
+      "attachmentPoint": ""
+    },
+    "correlationId": "NOK6061ZW8"
+  }
+]
\ No newline at end of file
index d90869e..c1b6dc2 100644 (file)
@@ -1,40 +1,42 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "startEpochMicrosec": 1540212137393,
-      "sourceId": "val13",
-      "eventId": "registration_40212137",
-      "nfcNamingCode": "oam",
-      "internalHeaderFields": {
-        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "startEpochMicrosec": 1540212137393,
+        "sourceId": "val13",
+        "eventId": "registration_40212137",
+        "nfcNamingCode": "oam",
+        "internalHeaderFields": {
+          "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+        },
+        "eventType": "pnfRegistration",
+        "priority": "Normal",
+        "version": "4.0.1",
+        "reportingEntityName": "NOK6061ZW8",
+        "sequence": 0,
+        "domain": "pnfRegistration",
+        "lastEpochMicrosec": 1540212137393,
+        "eventName": "pnfRegistration_Nokia_5gDu",
+        "vesEventListenerVersion": "7.0.1",
+        "sourceName": "NOK6061ZW8",
+        "nfNamingCode": "gNB"
       },
-      "eventType": "pnfRegistration",
-      "priority": "Normal",
-      "version": "4.0.1",
-      "reportingEntityName": "NOK6061ZW8",
-      "sequence": 0,
-      "domain": "pnfRegistration",
-      "lastEpochMicrosec": 1540212137393,
-      "eventName": "pnfRegistration_Nokia_5gDu",
-      "vesEventListenerVersion": "7.0.1",
-      "sourceName": "NOK6061ZW8",
-      "nfNamingCode": "gNB"
-    },
-    "pnfRegistrationFields": {
-      "unitType": "val8",
-      "serialNumber": "6061ZW9",
-      "pnfRegistrationFieldsVersion": "2.0",
-      "manufactureDate": "1540212137393",
-      "modelNumber": "val6",
-      "lastServiceDate": "1540212137393",
-      "unitFamily": "BBU",
-      "vendorName": "Nokia",
-      "oamV4IpAddress": "val3",
-      "oamV6IpAddress": "val4",
-      "softwareVersion": "val7",
-      "additionalFields": {
-        "attachmentPoint": ""
+      "pnfRegistrationFields": {
+        "unitType": "val8",
+        "serialNumber": "6061ZW9",
+        "pnfRegistrationFieldsVersion": "2.0",
+        "manufactureDate": "1540212137393",
+        "modelNumber": "val6",
+        "lastServiceDate": "1540212137393",
+        "unitFamily": "BBU",
+        "vendorName": "Nokia",
+        "oamV4IpAddress": "val3",
+        "oamV6IpAddress": "val4",
+        "softwareVersion": "val7",
+        "additionalFields": {
+          "attachmentPoint": ""
+        }
       }
     }
   }
-}
+]
\ No newline at end of file
index d8f3c90..10ce41c 100644 (file)
@@ -1,37 +1,39 @@
-{
-  "event": {
-    "commonEventHeader": {
-      "startEpochMicrosec": 1540212137393,
-      "sourceId": "val13",
-      "eventId": "registration_40212137",
-      "nfcNamingCode": "oam",
-      "internalHeaderFields": {
-        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+[
+  {
+    "event": {
+      "commonEventHeader": {
+        "startEpochMicrosec": 1540212137393,
+        "sourceId": "val13",
+        "eventId": "registration_40212137",
+        "nfcNamingCode": "oam",
+        "internalHeaderFields": {
+          "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+        },
+        "eventType": "pnfRegistration",
+        "priority": "Normal",
+        "version": "4.0.1",
+        "reportingEntityName": "NOK6061ZW8",
+        "sequence": 0,
+        "domain": "pnfRegistration",
+        "lastEpochMicrosec": 1540212137393,
+        "eventName": "pnfRegistration_Nokia_5gDu",
+        "vesEventListenerVersion": "7.0.1",
+        "sourceName": "NOK6061ZW8",
+        "nfNamingCode": "gNB"
       },
-      "eventType": "pnfRegistration",
-      "priority": "Normal",
-      "version": "4.0.1",
-      "reportingEntityName": "NOK6061ZW8",
-      "sequence": 0,
-      "domain": "pnfRegistration",
-      "lastEpochMicrosec": 1540212137393,
-      "eventName": "pnfRegistration_Nokia_5gDu",
-      "vesEventListenerVersion": "7.0.1",
-      "sourceName": "NOK6061ZW8",
-      "nfNamingCode": "gNB"
-    },
-    "pnfRegistrationFields": {
-      "unitType": "val8",
-      "serialNumber": "6061ZW9",
-      "pnfRegistrationFieldsVersion": "2.0",
-      "manufactureDate": "1540212137393",
-      "modelNumber": "val6",
-      "lastServiceDate": "1540212137393",
-      "unitFamily": "BBU",
-      "vendorName": "Nokia",
-      "oamV4IpAddress": "val3",
-      "oamV6IpAddress": "val4",
-      "softwareVersion": "val7"
+      "pnfRegistrationFields": {
+        "unitType": "val8",
+        "serialNumber": "6061ZW9",
+        "pnfRegistrationFieldsVersion": "2.0",
+        "manufactureDate": "1540212137393",
+        "modelNumber": "val6",
+        "lastServiceDate": "1540212137393",
+        "unitFamily": "BBU",
+        "vendorName": "Nokia",
+        "oamV4IpAddress": "val3",
+        "oamV6IpAddress": "val4",
+        "softwareVersion": "val7"
+      }
     }
   }
-}
+]
\ No newline at end of file
index b4666d1..acaf78f 100644 (file)
@@ -1,9 +1,9 @@
 *** Settings ***
 Documentation     Integration tests for PRH.
 ...               PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event.
-Suite Setup       Run keywords   Create Headers  AND  Create sessions  AND  Ensure Container Is Running  prh  AND  Ensure Container Is Exited  ssl_prh
-Suite Teardown    Ensure Container Is Running  ssl_prh
+Suite Setup       Run keywords   Create Headers  AND  Create sessions
 Test Teardown     Reset Simulators
+Test Timeout      2 minutes
 
 Library           resources/PrhLibrary.py
 Resource          resources/prh_library.robot
@@ -26,7 +26,7 @@ Simple BBS case event
 Simple registration event
     [Documentation]    PRH get from DMaaP valid event without valid attachment point
     [Tags]    PRH    Valid event
-    [Template]    Verify PNF ready sent 
+    [Template]    Verify PNF ready sent
     ${TEST_CASES_DIR}/ves-event-without-additional-fields
     ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields
     ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point
@@ -51,4 +51,4 @@ Should not sent PNF ready when AAI is not responding
     [Documentation]    PRH get from DMaaP valid event but AAI is not responding
     [Tags]    PRH    AAI not responding
     Verify AAI not responding is logged    ${TEST_CASES_DIR}/aai-not-responding
-    
+
index f6439be..88aeb45 100644 (file)
@@ -24,16 +24,16 @@ class PrhLibrary(object):
 
     @staticmethod
     def create_invalid_notification(json_file):
-        json_to_python = json.loads(json_file)
-        correlation_id = PrhLibrary.extract_correlation_id_value(json_to_python, "correlationId")
-        ipv4 = PrhLibrary.extract_value_from_pnfRegistrationFields(json_to_python, "oamV4IpAddress", "oamV4IpAddress")
-        ipv6 = PrhLibrary.extract_value_from_pnfRegistrationFields(json_to_python, "oamV6IpAddress", "oamV6IpAddress")
-        serial_number = PrhLibrary.extract_value_from_pnfRegistrationFields(json_to_python, "serialNumber", "serialNumber")
-        vendor_name = PrhLibrary.extract_value_from_pnfRegistrationFields(json_to_python, "vendorName", "vendorName")
-        model_number = PrhLibrary.extract_value_from_pnfRegistrationFields(json_to_python, "modelNumber", "modelNumber")
-        unit_type = PrhLibrary.extract_value_from_pnfRegistrationFields(json_to_python, "unitType", "unitType")
-
-        additional_fields = PrhLibrary.extract_additional_fields(json_to_python)
+        event = json.loads(json_file)[0]
+        correlation_id = PrhLibrary.extract_correlation_id_value(event, "correlationId")
+        ipv4 = PrhLibrary.extract_value_from_pnfRegistrationFields(event, "oamV4IpAddress", "oamV4IpAddress")
+        ipv6 = PrhLibrary.extract_value_from_pnfRegistrationFields(event, "oamV6IpAddress", "oamV6IpAddress")
+        serial_number = PrhLibrary.extract_value_from_pnfRegistrationFields(event, "serialNumber", "serialNumber")
+        vendor_name = PrhLibrary.extract_value_from_pnfRegistrationFields(event, "vendorName", "vendorName")
+        model_number = PrhLibrary.extract_value_from_pnfRegistrationFields(event, "modelNumber", "modelNumber")
+        unit_type = PrhLibrary.extract_value_from_pnfRegistrationFields(event, "unitType", "unitType")
+
+        additional_fields = PrhLibrary.extract_additional_fields(event)
 
         str_json = '{' + correlation_id + ipv4 + ipv6 + serial_number + vendor_name + model_number + unit_type + '"nfNamingCode":""' + "," + '"softwareVersion":"",' + additional_fields
         return json.dumps(str_json).replace("\\", "")[1:-1].replace("\":", "\": ").rstrip(',') + '\\n}'
diff --git a/tests/dcaegen2/prh-testcases/resources/cert_generation/create_certs.sh b/tests/dcaegen2/prh-testcases/resources/cert_generation/create_certs.sh
new file mode 100755 (executable)
index 0000000..a105f1a
--- /dev/null
@@ -0,0 +1,41 @@
+#!/usr/bin/env bash
+
+mkdir -p private certs newcerts
+chmod 700 private
+chmod 755 certs newcerts
+touch index.txt
+echo "unique_subject = no" > index.txt.attr
+echo '01' > serial
+
+openssl genrsa -out root.key 4096
+openssl req -config openssl.conf -key root.key -new -x509 -days 36500 -sha256 -extensions v3_ca -subj /CN=RootCA/OU=OSAAF/O=ONAP/C=US -out root.crt
+
+openssl genrsa -out intermediate.key 4096
+openssl req -new -sha256 -key intermediate.key -out intermediate.csr -outform PEM -subj /CN=intermediate/OU=OSAAF/O=ONAP/C=US
+openssl ca -batch -config openssl.conf -extensions v3_intermediate_ca -days 36500 -cert root.crt -keyfile root.key -out intermediate.crt -infiles intermediate.csr
+
+#openssl genrsa -out aai.key 4096
+cp ../simulator/certs/aai.key aai.key
+openssl req -new -sha256 -key aai.key -out aai.csr -outform PEM -subj /CN=aai/OU=OSAAF/O=ONAP/C=US
+openssl ca -batch -config openssl.conf -days 36500 -cert intermediate.crt -keyfile intermediate.key -out aai.crt -policy policy_loose -infiles aai.csr
+
+
+#openssl genrsa -out dmaap-mr.key 4096
+cp ../simulator/certs/dmaap-mr.key dmaap-mr.key
+openssl req -new -sha256 -key dmaap-mr.key -out dmaap-mr.csr -outform PEM -subj /CN=dmaap-mr/OU=OSAAF/O=ONAP/C=US
+openssl ca -batch -config openssl.conf -days 36500 -cert intermediate.crt -keyfile intermediate.key -out dmaap-mr.crt -policy policy_loose -infiles dmaap-mr.csr
+
+
+openssl genrsa -out prh.key 4096
+openssl req -new -sha256 -key prh.key -out prh.csr -outform PEM -subj /CN=prh/OU=OSAAF/O=ONAP/C=US
+openssl ca -batch -config openssl.conf -extensions server_cert -days 36500 -cert intermediate.crt -keyfile intermediate.key -out prh.crt -policy policy_loose -infiles prh.csr
+
+
+cat prh.crt intermediate.crt >> merged.crt
+
+openssl pkcs12 -export -name prh-cert -in merged.crt -inkey prh.key -passout pass:$(cat ../simulator/certs/keystore.password) -out keystore.p12
+keytool -import -alias intermediate-cert -file intermediate.crt -storepass $(cat ../simulator/certs/truststore.password) -keystore truststore.jks -noprompt
+keytool -import -alias root-cert -file root.crt -storepass $(cat ../simulator/certs/truststore.password) -keystore truststore.jks -noprompt
+
+
+cp aai.crt aai.key dmaap-mr.crt dmaap-mr.key root.crt keystore.p12 truststore.jks ../simulator/certs
\ No newline at end of file
diff --git a/tests/dcaegen2/prh-testcases/resources/cert_generation/openssl.conf b/tests/dcaegen2/prh-testcases/resources/cert_generation/openssl.conf
new file mode 100644 (file)
index 0000000..4094061
--- /dev/null
@@ -0,0 +1,131 @@
+# OpenSSL root CA configuration file.
+# Copy to `/opt/app/osaaf/CA/openssl.cnf`.
+
+[ ca ]
+# `man ca`
+default_ca = CA_default
+
+[ CA_default ]
+# Directory and file locations.
+dir               = .
+certs             = $dir/certs
+crl_dir           = $dir/crl
+new_certs_dir     = $dir/newcerts
+database          = $dir/index.txt
+serial            = $dir/serial
+RANDFILE          = $dir/private/.rand
+
+# The root key and root certificate.
+private_key       = $dir/private/ca.key
+certificate       = $dir/certs/ca.crt
+
+# For certificate revocation lists.
+crlnumber         = $dir/crlnumber
+crl               = $dir/crl/ca.crl.pem
+crl_extensions    = crl_ext
+default_crl_days  = 30
+
+# SHA-1 is deprecated, so use SHA-2 instead.
+default_md        = sha256
+
+name_opt          = ca_default
+cert_opt          = ca_default
+default_days      = 60
+preserve          = no
+policy            = policy_strict
+
+[ policy_strict ]
+# The root CA should only sign intermediate certificates that match.
+# See the POLICY FORMAT section of `man ca`.
+countryName             = match
+stateOrProvinceName     = optional
+organizationName        = match
+organizationalUnitName  = supplied
+commonName              = supplied
+
+[ policy_loose ]
+# Allow the intermediate CA to sign a more diverse range of certificates.
+# See the POLICY FORMAT section of the `ca` man page.
+countryName             = optional
+stateOrProvinceName     = optional
+localityName            = optional
+organizationName        = optional
+organizationalUnitName  = optional
+commonName              = supplied
+emailAddress            = optional
+
+[ req ]
+# Options for the `req` tool (`man req`).
+default_bits        = 2048
+distinguished_name  = req_distinguished_name
+string_mask         = utf8only
+
+# SHA-1 is deprecated, so use SHA-2 instead.
+default_md          = sha256
+
+# Extension to add when the -x509 option is used.
+x509_extensions     = v3_ca
+
+[ req_distinguished_name ]
+# See <https://en.wikipedia.org/wiki/Certificate_signing_request>.
+countryName                     = Country Name (2 letter code)
+stateOrProvinceName             = State or Province Name
+localityName                    = Locality Name
+0.organizationName              = Organization Name
+organizationalUnitName          = Organizational Unit Name
+commonName                      = Common Name
+emailAddress                    = Email Address
+
+# Optionally, specify some defaults.
+countryName_default             =
+stateOrProvinceName_default     =
+localityName_default            =
+0.organizationName_default      =
+organizationalUnitName_default  =
+emailAddress_default            =
+
+[ v3_ca ]
+# Extensions for a typical CA (`man x509v3_config`).
+subjectKeyIdentifier = hash
+authorityKeyIdentifier = keyid:always,issuer
+basicConstraints = critical, CA:true
+keyUsage = critical, digitalSignature, cRLSign, keyCertSign
+
+[ v3_intermediate_ca ]
+# Extensions for a typical intermediate CA (`man x509v3_config`).
+subjectKeyIdentifier = hash
+authorityKeyIdentifier = keyid:always,issuer
+basicConstraints = critical, CA:true, pathlen:0
+keyUsage = critical, digitalSignature, cRLSign, keyCertSign
+
+[ usr_cert ]
+# Extensions for client certificates (`man x509v3_config`).
+basicConstraints = CA:FALSE
+nsCertType = client, email
+nsComment = "OpenSSL Generated Client Certificate"
+subjectKeyIdentifier = hash
+authorityKeyIdentifier = keyid,issuer
+keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment
+extendedKeyUsage = clientAuth, emailProtection
+
+[ server_cert ]
+# Extensions for server certificates (`man x509v3_config`).
+basicConstraints = CA:FALSE
+nsCertType = server, client
+nsComment = "OpenSSL Generated Server Certificate"
+subjectKeyIdentifier = hash
+authorityKeyIdentifier = keyid,issuer:always
+keyUsage = critical, digitalSignature, keyEncipherment, nonRepudiation
+extendedKeyUsage = serverAuth, clientAuth
+
+[ crl_ext ]
+# Extension for CRLs (`man x509v3_config`).
+authorityKeyIdentifier=keyid:always
+
+[ ocsp ]
+# Extension for OCSP signing certificates (`man ocsp`).
+basicConstraints = CA:FALSE
+subjectKeyIdentifier = hash
+authorityKeyIdentifier = keyid,issuer
+keyUsage = critical, digitalSignature
+extendedKeyUsage = critical, OCSPSigning
index fdb1c50..aba658b 100644 (file)
@@ -1,24 +1,10 @@
-version: "3"
+version: "2.2"
 services:
   prh:
     image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
     ports:
       - "8100:8100"
       - "8433:8433"
-    environment:
-      - LOG_LEVEL
-      - PRH_LOG_LEVEL
-    container_name: prh
-    depends_on:
-      - cbs
-      - dmaap-mr
-      - aai
-
-  ssl_prh:
-    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
-    ports:
-      - "8200:8100"
-      - "8533:8433"
     volumes:
       - ./simulator/certs:/tmp/certs
     environment:
@@ -27,11 +13,14 @@ services:
       - HOSTNAME
       - CONSUL_HOST
       - CONFIG_BINDING_SERVICE
-    container_name: ssl_prh
+    container_name: prh
     depends_on:
-      - cbs
-      - dmaap-mr
-      - aai
+      cbs:
+        condition: service_healthy
+      dmaap-mr:
+        condition: service_started
+      aai:
+        condition: service_started
 
   dmaap-mr:
     build:
@@ -66,73 +55,48 @@ services:
     image: consul:1.0.6
     restart: on-failure
     command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{
-                                              "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT",
-                                              "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr",
-                                              "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2222,
-                                              "dmaap.dmaapConsumerConfiguration.dmaapTopicName": "events/unauthenticated.VES_PNFREG_OUTPUT",
-                                              "dmaap.dmaapConsumerConfiguration.dmaapProtocol":"http",
                                               "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
                                               "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
                                               "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",
                                               "dmaap.dmaapConsumerConfiguration.consumerId": "c12",
                                               "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
                                               "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
-                                              "dmaap.dmaapConsumerConfiguration.messageLimit": -1,
-
-                                              "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY",
-                                              "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr",
-                                              "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2222,
-                                              "dmaap.dmaapProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_READY",
-                                              "dmaap.dmaapProducerConfiguration.dmaapProtocol":"http",
                                               "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
                                               "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
                                               "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json",
-
-                                              "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE",
-                                              "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr",
-                                              "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2222,
-                                              "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE",
-                                              "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http",
                                               "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
                                               "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
                                               "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
-
                                               "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf",
-                                              "aai.aaiClientConfiguration.aaiHost":"aai",
-                                              "aai.aaiClientConfiguration.aaiHostPortNumber":3334,
-                                              "aai.aaiClientConfiguration.aaiProtocol":"https",
                                               "aai.aaiClientConfiguration.aaiUserName": "DCAE",
                                               "aai.aaiClientConfiguration.aaiUserPassword": "DCAE",
                                               "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true,
-                                              "aai.aaiClientConfiguration.aaiBasePath": "/aai/v12",
-                                              "aai.aaiClientConfiguration.aaiPnfPath": "/network/pnfs/pnf",
                                               "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
                                               "aai.aaiClientConfiguration.aaiHeaders":{
-                                                        "X-FromAppId": "prh",
-                                                        "X-TransactionId": "9999",
-                                                        "Accept": "application/json",
-                                                        "Real-Time": "true",
-                                                        "Authorization": "Basic QUFJOkFBSQ=="
+                                                "X-FromAppId": "prh",
+                                                "X-TransactionId": "9999",
+                                                "Accept": "application/json",
+                                                "Real-Time": "true",
+                                                "Authorization": "Basic QUFJOkFBSQ=="
                                               },
-
-                                              "security.trustStorePath":"change it",
-                                              "security.trustStorePasswordPath":"change it",
-                                              "security.keyStorePath":"change it",
-                                              "security.keyStorePasswordPath":"change it",
-                                              "security.enableAaiCertAuth":false,
-                                              "security.enableDmaapCertAuth":false,
+                                              "security.trustStorePath":"/tmp/certs/truststore.jks",
+                                              "security.trustStorePasswordPath":"/tmp/certs/truststore.password",
+                                              "security.keyStorePath":"/tmp/certs/keystore.p12",
+                                              "security.keyStorePasswordPath":"/tmp/certs/keystore.password",
+                                              "security.enableAaiCertAuth":true,
+                                              "security.enableDmaapCertAuth":true,
 
                                               "streams_publishes":{
                                                 "pnf-update":{
                                                   "type": "message_router",
                                                   "dmaap_info":{
-                                                    "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
+                                                    "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_UPDATE"
                                                   }
                                                 },
                                                 "pnf-ready":{
                                                   "type": "message_router",
                                                   "dmaap_info":{
-                                                    "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
+                                                    "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_READY"
                                                   }
                                                 }
                                               },
@@ -140,7 +104,7 @@ services:
                                                 "ves-reg-output":{
                                                   "type": "message_router",
                                                   "dmaap_info":{
-                                                    "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
+                                                    "topic_url":"https://dmaap-mr:2223/events/unauthenticated.VES_PNFREG_OUTPUT"
                                                   }
                                                 }
                                               }
@@ -150,6 +114,76 @@ services:
     depends_on:
       - consul
 
+  consul-cfg-dcae-ves-collector:
+    image: consul:1.0.6
+    restart: on-failure
+    command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector",'{
+                                            "collector.dynamic.config.update.frequency": "5",
+                                            "event.transform.flag": "0",
+                                            "collector.schema.checkflag": "1",
+                                            "collector.dmaap.streamid": "fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration",
+                                            "collector.service.port": "8080",
+                                            "collector.schema.file":"{
+                                              \"v1\":\"./etc/CommonEventFormat_27.2.json\",
+                                              \"v2\":\"./etc/CommonEventFormat_27.2.json\",
+                                              \"v3\":\"./etc/CommonEventFormat_27.2.json\",
+                                              \"v4\":\"./etc/CommonEventFormat_27.2.json\",
+                                              \"v5\":\"./etc/CommonEventFormat_28.4.1.json\",
+                                              \"v7\":\"./etc/CommonEventFormat_30.0.1.json\"
+                                            }",
+                                            "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile",
+                                            "collector.inputQueue.maxPending": "8096",
+                                            "streams_publishes":{
+                                              "ves-measurement": {
+                                                "type": "message_router",
+                                                "dmaap_info": {
+                                                  "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/"
+                                                }
+                                              },
+                                              "ves-fault": {
+                                                "type": "message_router",
+                                                "dmaap_info": {
+                                                  "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/"
+                                                }
+                                              },
+                                              "ves-pnfRegistration": {
+                                                "type": "message_router",
+                                                "dmaap_info": {
+                                                  "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/"
+                                                }
+                                              },
+                                              "ves-other": {
+                                                "type": "message_router",
+                                                "dmaap_info": {
+                                                  "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/"
+                                                }
+                                              },
+                                              "ves-heartbeat": {
+                                                "type": "message_router",
+                                                "dmaap_info": {
+                                                  "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/"
+                                                }
+                                              },
+                                              "ves-notification": {
+                                                "type": "message_router",
+                                                "dmaap_info": {
+                                                  "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/"
+                                                  }
+                                              }
+                                            },
+                                            "collector.service.secure.port": "8443",
+                                            "header.authflag": "0",
+                                            "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore",
+                                            "collector.keystore.alias":
+                                            "dynamically generated",
+                                            "services_calls": [],
+                                            "header.authlist": "sample1,c2FtcGxlMQ=="
+                                            }']
+    container_name: consul-cfg-dcae-ves-collector
+    depends_on:
+      - consul
+
+
   cbs:
     image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
     ports:
@@ -158,7 +192,9 @@ services:
       - CONSUL_HOST
     depends_on:
       - consul-cfg
+    healthcheck:
+      test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
+      interval: 3s
+      timeout: 2s
+      retries: 20
     container_name: cbs
-
-
-
index 74c3c5d..1fae100 100644 (file)
@@ -1,5 +1,6 @@
 *** Settings ***
 Library           RequestsLibrary
+Library           Collections
 Library           PrhLibrary.py
 Resource          ../../../common.robot
 
@@ -12,7 +13,7 @@ Verify PNF ready sent
     Add PNF entry in AAI    ${pnf_entry}
     Set VES event in DMaaP    ${ves_event}
     Wait Until Keyword Succeeds    10x    3000ms    Check CBS ready
-    Wait Until Keyword Succeeds    30x    3000ms    Check recorded PNF_READY notification    ${expected_pnf_ready_event}
+    Wait Until Keyword Succeeds    10x    3000ms    Check recorded PNF_READY notification    ${expected_pnf_ready_event}
 
 Verify PNF ready sent and logical link created
     [Arguments]    ${test_case_directory}
@@ -32,7 +33,7 @@ Verify incorrect JSON event is logged
     [Arguments]    ${test_case_directory}
     ${invalid_ves_event}=    Get Data From File    ${test_case_directory}/invalid-ves-event.json
     Set VES event in DMaaP    ${invalid_ves_event}
-    Wait Until Keyword Succeeds    10x    3000ms    Check PRH log    |Element is neither JSON Object or Array
+    Wait Until Keyword Succeeds    10x    3000ms    Check PRH log    |com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonArray
 
 Verify missing AAI record is logged
     [Timeout]    100s
@@ -54,9 +55,10 @@ Verify AAI not responding is logged
     Ensure Container Is Running   aai_simulator
 
 Check CBS ready
-    ${resp}=    Get Request    ${consul_setup_session}    /v1/catalog/service/cbs
+    ${resp}=    Get Request    ${consul_setup_session}    /v1/catalog/services
     Should Be Equal As Strings    ${resp.status_code}    200
-    Log    CBS ${resp.content}
+    Log    Service Catalog response: ${resp.content}
+    Dictionary Should Contain Key    ${resp.json()}    cbs    |Consul service catalog should contain CBS entry
 
 Check recorded PNF_READY notification
     [Arguments]    ${expected_event_pnf_ready_in_dpaap}
@@ -94,8 +96,12 @@ Set VES event in DMaaP
     Should Be Equal As Strings    ${resp.status_code}    200
 
 Should Be Equal As JSON
-    [Arguments]    ${given}    ${expected}
-    Should Be True    ${given}==${expected}
+    [Arguments]    ${actual}    ${expected}
+    Log    EXPECTED: ${expected}
+    Log    ACTUAL: ${actual}
+    ${expected_json}=    Evaluate    json.loads("""${expected}""")    json
+    ${actual_json}=    Evaluate    json.loads("""${actual}""")    json
+    Should Be Equal    ${actual_json}    ${expected_json}
 
 Create sessions
     Create Session    dmaap_setup_session    ${DMAAP_SIMULATOR_SETUP_URL}
@@ -104,7 +110,6 @@ Create sessions
     Set Suite Variable    ${aai_setup_session}    aai_setup_session
     Create Session    consul_setup_session    ${CONSUL_SETUP_URL}
     Set Suite Variable    ${consul_setup_session}    consul_setup_session
-    Sleep    120s
 
 Reset Simulators
     Reset AAI simulator
index 4457ef1..ff36803 100644 (file)
@@ -143,7 +143,7 @@ class AAIHandler(BaseHTTPRequestHandler):
 def _main_(handler_class=AAIHandler, protocol="HTTP/1.0"):
     handler_class.protocol_version = protocol
     httpServerLib.start_http_endpoint(3333, AAIHandler)
-    httpServerLib.start_https_endpoint(3334, AAIHandler, keyfile="certs/org.onap.aai.key", certfile="certs/aai_aai.onap.org.cer", ca_certs="certs/ca_local_0.cer")
+    httpServerLib.start_https_endpoint(3334, AAIHandler, keyfile="certs/aai.key", certfile="certs/aai.crt", ca_certs="certs/root.crt")
     httpServerLib.start_http_endpoint(3335, AAISetup)
     while 1:
         time.sleep(10)
index 92985cb..ce9858d 100644 (file)
@@ -41,7 +41,7 @@ class DmaapSetup(BaseHTTPRequestHandler):
                 global ves_event
                 ves_event = httpServerLib.get_payload(self)
                 httpServerLib.set_response_200_ok(self)
-                logger.debug('DmaapSetup PUT /setup/ves_event -> 200 OK')
+                logger.debug('DmaapSetup PUT /setup/ves_event -> 200 OK, content: ' + ves_event.decode("utf-8"))
             else:
                 httpServerLib.set_response_404_not_found(self)
                 logger.info('DmaapSetup PUT ' + self.path + ' -> 404 Not found')
@@ -73,7 +73,8 @@ class DMaaPHandler(BaseHTTPRequestHandler):
                 global captured_prh_event
                 captured_prh_event = httpServerLib.get_payload(self)
                 httpServerLib.set_response_200_ok(self)
-                logger.debug('DMaaPHandler POST /events/unauthenticated.PNF_READY -> 200')
+                logger.debug('DMaaPHandler POST /events/unauthenticated.PNF_READY -> 200, content: '
+                             + captured_prh_event.decode("utf-8"))
             else:
                 httpServerLib.set_response_404_not_found(self)
                 logger.info('DMaaPHandler POST ' + self.path + ' -> 404 Not found')
@@ -86,6 +87,9 @@ class DMaaPHandler(BaseHTTPRequestHandler):
             if re.search('/events/unauthenticated.VES_PNFREG_OUTPUT/OpenDCAE-c12/c12', self.path):
                 global ves_event
                 httpServerLib.set_response_200_ok(self, payload = ves_event)
+                logger.debug(
+                    'DMaaPHandler GET /events/unauthenticated.VES_PNFREG_OUTPUT/OpenDcae-c12/c12 -> 200, content: '
+                    + ves_event.decode("utf-8"))
                 ves_event = DMAAP_EMPTY
                 logger.debug('DMaaPHandler GET /events/unauthenticated.VES_PNFREG_OUTPUT/OpenDcae-c12/c12 -> 200')
             else:
@@ -98,7 +102,7 @@ class DMaaPHandler(BaseHTTPRequestHandler):
 def _main_(handler_class=DMaaPHandler, protocol="HTTP/1.0"):
     handler_class.protocol_version = protocol
     httpServerLib.start_http_endpoint(2222, DMaaPHandler)
-    httpServerLib.start_https_endpoint(2223, DMaaPHandler, keyfile="certs/org.onap.dmaap-bc.key", certfile="certs/dmaap_bc_topic_mgr_dmaap_bc.onap.org.cer", ca_certs="certs/ca_local_0.cer")
+    httpServerLib.start_https_endpoint(2223, DMaaPHandler, keyfile="certs/dmaap-mr.key", certfile="certs/dmaap-mr.crt", ca_certs="certs/root.crt")
     httpServerLib.start_http_endpoint(2224, DmaapSetup)
     while 1:
         time.sleep(10)
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/aai.crt b/tests/dcaegen2/prh-testcases/resources/simulator/certs/aai.crt
new file mode 100644 (file)
index 0000000..6de63ad
--- /dev/null
@@ -0,0 +1,87 @@
+Certificate:
+    Data:
+        Version: 1 (0x0)
+        Serial Number: 2 (0x2)
+        Signature Algorithm: sha256WithRSAEncryption
+        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediate
+        Validity
+            Not Before: May 28 06:34:02 2019 GMT
+            Not After : May  4 06:34:02 2119 GMT
+        Subject: C=US, O=ONAP, OU=OSAAF, CN=aai
+        Subject Public Key Info:
+            Public Key Algorithm: rsaEncryption
+                RSA Public-Key: (2048 bit)
+                Modulus:
+                    00:82:9f:3d:41:06:47:03:cb:53:3b:dc:03:60:91:
+                    b7:f0:60:03:52:24:f7:67:53:f9:9e:5e:98:07:29:
+                    8b:d7:6b:cc:5b:10:8d:cb:b2:2e:44:9c:1e:e8:f6:
+                    7b:61:64:57:54:e5:d3:d9:44:55:79:b8:91:0e:97:
+                    4a:63:b7:7a:20:98:fa:34:5d:91:98:3b:ef:86:7d:
+                    13:4b:ab:e7:36:61:59:98:8d:32:e0:16:f1:33:e8:
+                    6c:d4:b4:bb:9e:62:3a:e5:d8:92:2d:19:1b:a0:c7:
+                    4c:0d:3d:74:26:68:05:f7:ff:cc:03:ee:73:93:01:
+                    98:e5:9a:e4:96:09:e7:89:bb:91:81:69:7e:1a:6a:
+                    2c:15:38:e3:43:1a:19:99:67:b8:c8:49:31:34:c6:
+                    fb:d4:f7:7e:84:0a:75:21:49:9b:6d:fe:a4:6f:9c:
+                    0d:44:24:1f:c7:86:ce:52:7b:85:4f:c7:a9:53:5d:
+                    87:fc:3d:7a:ae:23:42:20:0d:5e:3d:86:52:e1:6c:
+                    f3:0a:69:d4:3c:96:8d:b2:8a:d8:9a:48:c2:47:b0:
+                    b6:75:5a:de:a8:6f:da:0d:16:50:5c:71:ea:b7:b5:
+                    f5:cf:31:55:72:96:cb:2e:00:8d:69:73:71:ec:6e:
+                    65:7b:90:c2:30:83:43:f5:7f:25:68:20:02:c7:95:
+                    78:03
+                Exponent: 65537 (0x10001)
+    Signature Algorithm: sha256WithRSAEncryption
+         c0:cd:d8:83:c2:c1:89:d5:87:58:91:30:36:e5:fc:95:62:d1:
+         66:13:05:2e:4d:8c:0e:21:54:73:6f:d7:4a:05:a4:91:25:35:
+         80:db:01:aa:e3:7a:cb:48:62:66:f1:11:b7:a0:c3:d9:9d:7b:
+         36:8c:9e:74:85:5d:25:1c:0f:57:21:25:71:c8:55:ed:f2:ea:
+         4a:b7:98:92:f4:5a:f7:4d:90:df:5b:dc:ff:34:01:df:31:f5:
+         85:1f:e1:63:7a:4b:7e:9d:37:63:fd:cb:c6:59:42:01:af:d1:
+         eb:32:5d:d5:43:cb:28:68:39:25:ed:37:88:3a:0c:d2:f4:0e:
+         d5:f3:18:59:7a:41:17:f3:d3:35:d5:bb:04:ec:77:a8:c2:bd:
+         29:65:dd:7c:8d:f2:f7:a5:a3:88:25:c4:e6:0f:4f:31:b8:9c:
+         77:bf:35:39:27:78:a7:a6:37:c5:f3:a2:16:10:38:8a:cd:cb:
+         c2:75:8a:29:dc:8d:16:82:2e:28:b7:93:2e:88:e8:f7:59:9e:
+         91:de:58:77:d6:3b:54:bc:e2:b1:79:c4:f7:b2:53:d1:d4:a3:
+         c9:71:ac:01:f9:79:98:5c:2c:2d:30:30:e8:d2:71:3e:32:6f:
+         9d:ca:d4:fc:61:4a:bc:ea:b7:85:6a:70:30:12:08:4c:ec:ab:
+         43:91:4b:e0:65:56:a9:14:d5:c5:57:4d:15:89:9b:e6:a7:b3:
+         43:aa:39:f0:8e:c2:5f:36:cd:1c:fb:38:0b:ed:2b:96:14:3d:
+         20:05:3b:04:e4:33:8f:fe:0d:ca:38:6a:01:d9:c2:59:d4:e4:
+         3f:18:58:cd:e7:6e:e3:93:34:20:ff:9f:fc:40:c4:17:65:af:
+         0c:d5:22:81:40:24:6e:34:98:2a:fc:62:4f:7a:fe:7d:4d:e3:
+         a9:a9:2a:de:ea:10:3e:fc:39:e6:af:2f:2c:d9:88:f7:c0:60:
+         40:d2:ff:b2:a5:d7:50:db:9e:24:d1:1b:ad:c6:71:1f:36:04:
+         06:d8:b6:32:db:0c:27:3e:71:1a:49:9f:85:4f:12:00:bc:ab:
+         dd:96:fb:ce:d1:08:94:54:d7:bb:e2:38:41:a0:06:17:a2:07:
+         3c:88:99:1d:7d:f4:b1:25:38:18:c2:12:fb:9a:e0:55:d0:55:
+         72:dd:f5:13:59:1e:e0:d6:69:f1:b6:f8:33:3b:63:af:e8:d8:
+         2b:16:d1:50:9e:6a:63:fd:50:30:27:63:ac:ed:83:22:a7:a0:
+         b0:29:ac:1e:fa:0a:cb:af:4a:c4:c8:ec:e6:5c:d9:14:1e:8d:
+         82:71:93:ee:a8:fe:ba:e3:92:b2:99:80:22:78:f2:7c:d1:80:
+         a2:c0:2c:e0:90:62:90:e5
+-----BEGIN CERTIFICATE-----
+MIID8zCCAdsCAQIwDQYJKoZIhvcNAQELBQAwQzELMAkGA1UEBhMCVVMxDTALBgNV
+BAoMBE9OQVAxDjAMBgNVBAsMBU9TQUFGMRUwEwYDVQQDDAxpbnRlcm1lZGlhdGUw
+IBcNMTkwNTI4MDYzNDAyWhgPMjExOTA1MDQwNjM0MDJaMDoxCzAJBgNVBAYTAlVT
+MQ0wCwYDVQQKDARPTkFQMQ4wDAYDVQQLDAVPU0FBRjEMMAoGA1UEAwwDYWFpMIIB
+IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgp89QQZHA8tTO9wDYJG38GAD
+UiT3Z1P5nl6YBymL12vMWxCNy7IuRJwe6PZ7YWRXVOXT2URVebiRDpdKY7d6IJj6
+NF2RmDvvhn0TS6vnNmFZmI0y4BbxM+hs1LS7nmI65diSLRkboMdMDT10JmgF9//M
+A+5zkwGY5ZrklgnnibuRgWl+GmosFTjjQxoZmWe4yEkxNMb71Pd+hAp1IUmbbf6k
+b5wNRCQfx4bOUnuFT8epU12H/D16riNCIA1ePYZS4WzzCmnUPJaNsorYmkjCR7C2
+dVreqG/aDRZQXHHqt7X1zzFVcpbLLgCNaXNx7G5le5DCMIND9X8laCACx5V4AwID
+AQABMA0GCSqGSIb3DQEBCwUAA4ICAQDAzdiDwsGJ1YdYkTA25fyVYtFmEwUuTYwO
+IVRzb9dKBaSRJTWA2wGq43rLSGJm8RG3oMPZnXs2jJ50hV0lHA9XISVxyFXt8upK
+t5iS9Fr3TZDfW9z/NAHfMfWFH+Fjekt+nTdj/cvGWUIBr9HrMl3VQ8soaDkl7TeI
+OgzS9A7V8xhZekEX89M11bsE7Heowr0pZd18jfL3paOIJcTmD08xuJx3vzU5J3in
+pjfF86IWEDiKzcvCdYop3I0Wgi4ot5MuiOj3WZ6R3lh31jtUvOKxecT3slPR1KPJ
+cawB+XmYXCwtMDDo0nE+Mm+dytT8YUq86reFanAwEghM7KtDkUvgZVapFNXFV00V
+iZvmp7NDqjnwjsJfNs0c+zgL7SuWFD0gBTsE5DOP/g3KOGoB2cJZ1OQ/GFjN527j
+kzQg/5/8QMQXZa8M1SKBQCRuNJgq/GJPev59TeOpqSre6hA+/Dnmry8s2Yj3wGBA
+0v+ypddQ254k0RutxnEfNgQG2LYy2wwnPnEaSZ+FTxIAvKvdlvvO0QiUVNe74jhB
+oAYXogc8iJkdffSxJTgYwhL7muBV0FVy3fUTWR7g1mnxtvgzO2Ov6NgrFtFQnmpj
+/VAwJ2Os7YMip6CwKawe+grLr0rEyOzmXNkUHo2CcZPuqP6645KymYAiePJ80YCi
+wCzgkGKQ5Q==
+-----END CERTIFICATE-----
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/aai_aai.onap.org.cer b/tests/dcaegen2/prh-testcases/resources/simulator/certs/aai_aai.onap.org.cer
deleted file mode 100644 (file)
index 327f57b..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIE5TCCA82gAwIBAgIJAI5fEseaW2LVMA0GCSqGSIb3DQEBCwUAMEcxCzAJBgNV
-BAYTAlVTMQ0wCwYDVQQKDARPTkFQMQ4wDAYDVQQLDAVPU0FBRjEZMBcGA1UEAwwQ
-aW50ZXJtZWRpYXRlQ0FfMjAeFw0xODEwMTgxMDM3MzJaFw0xOTA0MTgxMDM3MzJa
-MGYxDDAKBgNVBAMMA2FhaTEPMA0GCSqGSIb3DQEJARYAMRkwFwYDVQQLDBBhYWlA
-YWFpLm9uYXAub3JnMQ4wDAYDVQQLDAVPU0FBRjENMAsGA1UECgwET05BUDELMAkG
-A1UEBhMCVVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCCnz1BBkcD
-y1M73ANgkbfwYANSJPdnU/meXpgHKYvXa8xbEI3Lsi5EnB7o9nthZFdU5dPZRFV5
-uJEOl0pjt3ogmPo0XZGYO++GfRNLq+c2YVmYjTLgFvEz6GzUtLueYjrl2JItGRug
-x0wNPXQmaAX3/8wD7nOTAZjlmuSWCeeJu5GBaX4aaiwVOONDGhmZZ7jISTE0xvvU
-936ECnUhSZtt/qRvnA1EJB/Hhs5Se4VPx6lTXYf8PXquI0IgDV49hlLhbPMKadQ8
-lo2yitiaSMJHsLZ1Wt6ob9oNFlBcceq3tfXPMVVylssuAI1pc3HsbmV7kMIwg0P1
-fyVoIALHlXgDAgMBAAGjggGzMIIBrzAJBgNVHRMEAjAAMA4GA1UdDwEB/wQEAwIF
-4DAgBgNVHSUBAf8EFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwVAYDVR0jBE0wS4AU
-BASNACQ4xpx414BXQWdJBoDmckehMKQuMCwxDjAMBgNVBAsMBU9TQUFGMQ0wCwYD
-VQQKDARPTkFQMQswCQYDVQQGEwJVU4IBAjAdBgNVHQ4EFgQUMghLmZ4l0T+MY3uk
-AR6YBJP5gwMwgfoGA1UdEQSB8jCB74IDYWFpgoHnYWFpLmFwaS5zaW1wbGVkZW1v
-Lm9uYXAub3JnIGFhaS5lbGFzdGljc2VhcmNoLnNpbXBsZWRlbW8ub25hcC5vcmcg
-YWFpLmdyZW1saW5zZXJ2ZXIuc2ltcGxlZGVtby5vbmFwLm9yZyBhYWkuaGJhc2Uu
-c2ltcGxlZGVtby5vbmFwLm9yZyBhYWkub25hcCBhYWkuc2VhcmNoc2VydmljZS5z
-aW1wbGVkZW1vLm9uYXAub3JnIGFhaS5zaW1wbGVkZW1vLm9uYXAub3JnIGFhaS51
-aS5zaW1wbGVkZW1vLm9uYXAub3JnMA0GCSqGSIb3DQEBCwUAA4IBAQBJyXk6ZTfA
-f9mYi5ey/ZpchB9egJfwEXXOqSKeYYTjqUr3uXXk+usb8YXsFVoD9Id5do3Hnxv+
-J3ISGmyPTgQfV/9KDmtHPTyclR9mLji+j4GviZnIpAIsI/duPKlEfLcym9smAC7Q
-+HYanUQ7s8sjJJ4ORdBLOy1HkfTu9pjNKZ1CcEnJZ8Y5juLOeEj+Xa+QzcywSK2E
-iuPXJwFFtcX9fO+ojiQV9g0L9JgABMqm4Q6si03gXofYEgvAUJSxsirydB8kcqPU
-jCgw8/XIsHj4VRNNWlwkvzskeX9ZlcFMmn6DTfyDD1Rrij1efotO2ie3OrKUEzpH
-N1G5vCuZqOla
------END CERTIFICATE-----
------BEGIN CERTIFICATE-----
-MIIEVDCCAjygAwIBAgIBAjANBgkqhkiG9w0BAQsFADAsMQ4wDAYDVQQLDAVPU0FB
-RjENMAsGA1UECgwET05BUDELMAkGA1UEBhMCVVMwHhcNMTgwOTI0MTE0MjE2WhcN
-MjMwOTI0MTE0MjE2WjBHMQswCQYDVQQGEwJVUzENMAsGA1UECgwET05BUDEOMAwG
-A1UECwwFT1NBQUYxGTAXBgNVBAMMEGludGVybWVkaWF0ZUNBXzIwggEiMA0GCSqG
-SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjPFeAho7BtWjB4Enww/KXD0tTuoda/Fkc
-o/yv2waNNsx+pOYGdJwNHYvNS7/RLBHc8kCN+TbKnYZ6AE97wD1Pzrc7AZ58qpjq
-Ob7aTp4u3IAMWR5YOkDyjiibA5X7z9N/wveG/Ei2SgN2pY7O2lK5ucm6igarfxll
-rZC1MA9zAXrfmd5bLJQQqACT6q15KQaCIwhqwoXp8w+s0rXcZ2/L303lFIUXoHUp
-kzMsIPhJ/ZoEvAEkXIPgT2uFgOwIyWmr8Rg5jYzZhV7vey3bQUBlue9aiMIXih3d
-b4AVD6J6eF/NmJygtUfHFrWeTAYLppA0d69BWUQZ+XQgCwjOMLaNAgMBAAGjZjBk
-MB0GA1UdDgQWBBQEBI0AJDjGnHjXgFdBZ0kGgOZyRzAfBgNVHSMEGDAWgBTtc8Wb
-I4DL8Bm6CVi8//GsTyq8NTASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQE
-AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAt4VCLb2UHiZpDfSQbe62vlFzsGlODYKF
-k7BhW9Q5jfIXpPhhtBLFwJFEKAWFLVWubz+YIa7I5wtniS6zEPC/5t3JOiEXMJQY
-PfaPDSsovZ+eShu0QtrjjldFwL2MiqNsd2IWLSIRQUP63RZGBRTTxSsxB0VAfRyT
-cu/8znpmZsHna3DspGZQputm7qsxgUhAcPCdo9RQtG6Ox6L1wTXUJmTPHdKQtZjr
-qqSQ7kn8u3i5KQYYapmc3UO+CBbzoLPD5Rrlq+ROBbiNd9R/j5vVgRO7vsU9SHnm
-AaKFEjDPTSjDtMOxu1BsTNmftaE2jcYa9/ZW67H8URCuo92NE0cZRxBqHkPUjH3/
-/S43/TBAfjfarF5WW7iMAEZfEGhrQu26JWXBMcZshStuHUEPl2b+RC5LZcBMYKgi
-SqSOXzpiJeRNASpXKCQQZG8n03c/jBf1U20HaK/4Z2ikOql5B21suxhUbixG1EQN
-DOrFGOFUqG4Eyw+xjUR5rTfDnpKgQfJo0/aohZs9p5x+UwitkrQkJQ1ZmEzeVDjm
-7xsmOcAJS2T9DLle6fDWvyh76InymAPxzk1/2AWOp8uw8iwNfFxE+p+M7h0psZxp
-SnvlgASASdWlZLcMQtNiiKzMK75FW9SMctQfA/RfohNEwivpp6tNpgJozoKmhoPK
-zs5HS/mx8GI=
------END CERTIFICATE-----
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/ca_local_0.cer b/tests/dcaegen2/prh-testcases/resources/simulator/certs/ca_local_0.cer
deleted file mode 100644 (file)
index ff37eaf..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIFPjCCAyagAwIBAgIJAMhpcvbx/8/AMA0GCSqGSIb3DQEBCwUAMCwxDjAMBgNV
-BAsMBU9TQUFGMQ0wCwYDVQQKDARPTkFQMQswCQYDVQQGEwJVUzAeFw0xODA4MDMx
-MzI2NTBaFw0zODA3MjkxMzI2NTBaMCwxDjAMBgNVBAsMBU9TQUFGMQ0wCwYDVQQK
-DARPTkFQMQswCQYDVQQGEwJVUzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
-ggIBAO4j7nmAY9KX/ceFCITuWAMCHAmSoeHCTs+lgkYX7DpXPidsF5t0ijPaElUC
-rwwMnXz5h1o8FzXD64FMbqMVEseLUDZGelRZ7Rkz+hy0Y5i8QKsBTfeo7sP7ZEaC
-vpqom9imPLFUn4oDeYspCKjMF93Z69Cv8pxFYCFpZwY3eR9V4xOB613k8guBJtHR
-ccY9/NbdfbkrtUz5kNuQqwLj5ttvesqxPq0L4m3bPjkubQCb+QiJxx10Xcx6fcfu
-wIu7NR63qDlWFYstsDnH/VIT1pSCBHEw+muSEQ44sgPFy+AxB8O8HKd8wRfmkV2d
-YNPyotTLD+aLzDlCWtC0pGnTTJimdu9+hZRIZz5YT4m8BdLQ/jTBd6Gx2tVLvWso
-9IJSjfkhj6EtVxyZ81jM+rLAnKy3qPXDCN6CIKL07hNuSzIIhCrK2L4f82JWS7dP
-mg2acuhCH56qrhEr42Kjeak181KM/QKiRPgNyOSygJ7uRaLbqOQRh46c68NcmW4F
-13OwJQAsrjgaQY1ZWnFsvRYK9NnUqK+2XuCQFS7EYm02M2UwO2GCD88In8PCzzv8
-Q0Zj8Hb4h79fVRjG8/3MnQCJ164+9PfXyu9dj5l6XkkSvdj1IsewaSMy9NccGx7Q
-rE7yRPMB6FlAnGPj0KbJXHXJyiujPHSCF0D+Hbl9rxU7FRAbAgMBAAGjYzBhMB0G
-A1UdDgQWBBTtc8WbI4DL8Bm6CVi8//GsTyq8NTAfBgNVHSMEGDAWgBTtc8WbI4DL
-8Bm6CVi8//GsTyq8NTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAN
-BgkqhkiG9w0BAQsFAAOCAgEAW4IYy1PUrV/wHblIGFTBo5z7EB33rpHfAJzbDkop
-2n5wOlmh78pkeRNb1TOKcSHJPw0MdkwVBPI1wm/SOpHUPmKTW1muO6RUnFjZ68y9
-DiVa6zCW/RBFeG3f8kywxgqPLml1TbikRuMBU0ucOa/bXZ98P2hMLkjWTgeARGSj
-QCb7QyqeFzG0mPmAuX6zMj5xwpdyPB0zCoRGXa/BIWEvYjgkaRM+E+9oRWt/6BHQ
-4uw11R7gAV4/TSu7qYNfTMllBaLJ0o/1q0QF16e4mV1E4erDfWKlrvUlgCaHCx8Q
-3PL7ovM4jjrTNAjnX0q5xtWbF0mlJhJk/NbPDb7hArBv4vp9XoITyRW1vcbe94jv
-GzqLKlvBQUxGue4kLYDmUFdog7gaCkEH3N4mH3ad4HZUsOMeanvVgbVZr10VOlNq
-TEWqDPATayJdo+VhJCGc6hVa+IJsDTAa/z2MLybqcoOfNT/rxYIdvlX4OjSqAqOj
-bSivsCe9c4km56pP2ufA/woPzh+Z46Ukt+krGyFQwKdQQLh5Pp7Yuhvdld/5kd8M
-S2fqcBFpzzBSj+huVayw6jFi5qLlISouhCVsc0rBqvnfuQTQwmfFIlfaHBTSjniv
-5DdibZEtMqYYXl1VB4XUHTt5dOGHLEX2w/d5887DQVLUbaUKm1mfScb/vPjGgk6/
-re4=
------END CERTIFICATE-----
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap-mr.crt b/tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap-mr.crt
new file mode 100644 (file)
index 0000000..3fc90f9
--- /dev/null
@@ -0,0 +1,87 @@
+Certificate:
+    Data:
+        Version: 1 (0x0)
+        Serial Number: 3 (0x3)
+        Signature Algorithm: sha256WithRSAEncryption
+        Issuer: C=US, O=ONAP, OU=OSAAF, CN=intermediate
+        Validity
+            Not Before: May 28 06:34:02 2019 GMT
+            Not After : May  4 06:34:02 2119 GMT
+        Subject: C=US, O=ONAP, OU=OSAAF, CN=dmaap-mr
+        Subject Public Key Info:
+            Public Key Algorithm: rsaEncryption
+                RSA Public-Key: (2048 bit)
+                Modulus:
+                    00:b3:69:90:49:e4:ac:84:ae:19:ac:0c:1c:f3:f4:
+                    0d:1d:98:94:54:82:e5:43:06:32:a2:f8:8f:7c:bd:
+                    bb:f2:65:75:39:74:98:a1:35:be:3f:31:54:d5:3b:
+                    fa:1f:02:84:14:bd:ea:f6:2f:7f:cb:59:b4:0e:38:
+                    4f:e1:fa:c7:a4:d5:55:4e:8e:4a:21:e0:af:e9:f2:
+                    2c:01:89:e9:fe:9e:74:3f:71:0e:87:70:09:7a:1b:
+                    59:9b:80:2d:c4:de:83:78:c9:5a:06:fd:75:19:85:
+                    14:9b:a1:3a:d1:0d:fa:63:a5:a0:92:5a:bc:bb:52:
+                    83:9e:06:09:cb:5f:d0:06:5f:1a:02:22:5b:8f:6b:
+                    e9:2f:ae:16:48:8d:dc:c8:dc:ff:a9:e2:38:fc:fc:
+                    47:b2:a0:47:50:52:3d:e8:67:0b:b4:b3:cb:0d:29:
+                    48:41:6a:16:a1:98:64:89:04:c7:ad:4e:12:c7:9f:
+                    e7:55:d5:a2:85:f7:34:47:4f:a3:1b:92:07:fa:60:
+                    db:f1:65:0d:9b:21:e7:68:78:a7:ae:de:44:af:5b:
+                    32:a5:4f:cd:c4:3f:8d:95:13:c5:3b:52:b8:0f:1e:
+                    34:b3:17:c0:96:ed:8b:14:29:65:0e:04:92:fd:77:
+                    1f:b1:ed:27:cb:f4:eb:2f:64:56:10:ba:08:3b:3f:
+                    4d:8d
+                Exponent: 65537 (0x10001)
+    Signature Algorithm: sha256WithRSAEncryption
+         d2:43:ab:0f:cb:02:ff:00:56:eb:6a:1a:58:b9:df:a3:0f:47:
+         cf:e2:f3:43:7a:c8:b5:74:68:36:3f:82:1c:58:3a:32:86:5d:
+         2b:d2:81:74:e8:0f:6b:1b:40:45:40:f4:3a:d5:e4:1d:d0:c8:
+         33:89:ce:a0:0a:7a:75:13:2a:fb:17:3b:f0:9b:23:07:b1:92:
+         16:0a:5a:e0:b2:b6:56:cc:47:7d:3f:4d:c9:ce:5e:1b:56:0a:
+         36:c0:b2:2a:6a:10:33:ec:b9:4c:ff:d2:a4:22:62:16:0e:30:
+         b6:bb:4c:c9:e5:c6:03:2f:45:62:1b:55:2c:fb:2b:c8:23:a7:
+         41:16:1b:cd:21:06:c0:01:5e:71:97:9b:bb:21:26:4c:0c:88:
+         c4:f4:3e:9a:07:5c:2c:c0:4e:06:18:0c:b4:fe:69:39:0e:9b:
+         49:91:30:3d:e3:7e:82:ad:6a:09:f2:7a:7f:c3:07:b2:22:98:
+         ef:74:00:6d:5b:d5:c5:1b:f7:00:3f:14:cc:41:ad:66:54:65:
+         94:26:b2:10:f3:06:87:da:45:79:44:f8:41:6a:9d:13:98:08:
+         c4:9e:de:45:4b:a4:ca:a5:1b:a3:82:a0:fc:e8:aa:29:c7:43:
+         84:cb:cf:1a:4a:27:c6:c1:85:bc:06:62:e4:bb:e0:93:0e:8b:
+         fd:33:06:c0:17:a2:e4:49:0f:5d:be:7d:f3:da:5c:b5:20:29:
+         b1:c6:95:5a:33:94:d9:2d:ea:f1:e3:f0:94:67:3a:db:a1:e3:
+         b1:d1:31:fd:a8:53:a9:c4:7e:13:7f:d7:6e:4b:cf:dc:6a:b7:
+         05:d1:4e:07:68:ba:05:ab:48:f1:17:d6:ed:3b:26:96:7d:aa:
+         f3:e6:4a:4e:27:5d:0a:b6:ed:8d:d7:0c:6a:c5:2c:96:d5:8b:
+         31:b3:13:07:c6:fa:42:a8:fe:30:99:eb:1b:57:b0:fa:22:dc:
+         f7:1b:ad:16:f0:70:36:c3:41:d8:97:0f:aa:c6:8c:c2:eb:98:
+         e1:89:2c:ec:8e:e5:6d:c7:1c:0f:00:88:c4:fa:cb:52:b1:c1:
+         2e:e1:4f:34:54:de:d9:25:45:bc:eb:37:6b:6a:a3:5e:e0:41:
+         aa:ca:f6:36:61:3a:89:63:40:16:cf:dd:bd:97:11:d6:75:48:
+         6d:c1:0e:64:a3:ad:ef:9e:6c:a4:0c:df:c2:0e:ac:12:7b:ff:
+         36:64:98:26:f0:96:c5:9a:9f:f3:c6:63:70:e3:e4:24:74:ad:
+         08:c8:d3:55:a0:15:7a:57:a4:ce:ae:ed:f6:68:f2:1e:7c:d8:
+         96:35:74:7a:79:d0:e9:56:2c:bd:c5:d3:40:d1:cd:f9:b3:cc:
+         fc:c7:46:3d:57:79:3f:a7
+-----BEGIN CERTIFICATE-----
+MIID+DCCAeACAQMwDQYJKoZIhvcNAQELBQAwQzELMAkGA1UEBhMCVVMxDTALBgNV
+BAoMBE9OQVAxDjAMBgNVBAsMBU9TQUFGMRUwEwYDVQQDDAxpbnRlcm1lZGlhdGUw
+IBcNMTkwNTI4MDYzNDAyWhgPMjExOTA1MDQwNjM0MDJaMD8xCzAJBgNVBAYTAlVT
+MQ0wCwYDVQQKDARPTkFQMQ4wDAYDVQQLDAVPU0FBRjERMA8GA1UEAwwIZG1hYXAt
+bXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzaZBJ5KyErhmsDBzz
+9A0dmJRUguVDBjKi+I98vbvyZXU5dJihNb4/MVTVO/ofAoQUver2L3/LWbQOOE/h
++sek1VVOjkoh4K/p8iwBien+nnQ/cQ6HcAl6G1mbgC3E3oN4yVoG/XUZhRSboTrR
+DfpjpaCSWry7UoOeBgnLX9AGXxoCIluPa+kvrhZIjdzI3P+p4jj8/EeyoEdQUj3o
+Zwu0s8sNKUhBahahmGSJBMetThLHn+dV1aKF9zRHT6Mbkgf6YNvxZQ2bIedoeKeu
+3kSvWzKlT83EP42VE8U7UrgPHjSzF8CW7YsUKWUOBJL9dx+x7SfL9OsvZFYQugg7
+P02NAgMBAAEwDQYJKoZIhvcNAQELBQADggIBANJDqw/LAv8AVutqGli536MPR8/i
+80N6yLV0aDY/ghxYOjKGXSvSgXToD2sbQEVA9DrV5B3QyDOJzqAKenUTKvsXO/Cb
+IwexkhYKWuCytlbMR30/TcnOXhtWCjbAsipqEDPsuUz/0qQiYhYOMLa7TMnlxgMv
+RWIbVSz7K8gjp0EWG80hBsABXnGXm7shJkwMiMT0PpoHXCzATgYYDLT+aTkOm0mR
+MD3jfoKtagnyen/DB7IimO90AG1b1cUb9wA/FMxBrWZUZZQmshDzBofaRXlE+EFq
+nROYCMSe3kVLpMqlG6OCoPzoqinHQ4TLzxpKJ8bBhbwGYuS74JMOi/0zBsAXouRJ
+D12+ffPaXLUgKbHGlVozlNkt6vHj8JRnOtuh47HRMf2oU6nEfhN/125Lz9xqtwXR
+TgdougWrSPEX1u07JpZ9qvPmSk4nXQq27Y3XDGrFLJbVizGzEwfG+kKo/jCZ6xtX
+sPoi3PcbrRbwcDbDQdiXD6rGjMLrmOGJLOyO5W3HHA8AiMT6y1KxwS7hTzRU3tkl
+RbzrN2tqo17gQarK9jZhOoljQBbP3b2XEdZ1SG3BDmSjre+ebKQM38IOrBJ7/zZk
+mCbwlsWan/PGY3Dj5CR0rQjI01WgFXpXpM6u7fZo8h582JY1dHp50OlWLL3F00DR
+zfmzzPzHRj1XeT+n
+-----END CERTIFICATE-----
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap_bc_topic_mgr_dmaap_bc.onap.org.cer b/tests/dcaegen2/prh-testcases/resources/simulator/certs/dmaap_bc_topic_mgr_dmaap_bc.onap.org.cer
deleted file mode 100644 (file)
index 756dd3a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIELDCCAxSgAwIBAgIJAI5fEseaW2LbMA0GCSqGSIb3DQEBCwUAMEcxCzAJBgNV
-BAYTAlVTMQ0wCwYDVQQKDARPTkFQMQ4wDAYDVQQLDAVPU0FBRjEZMBcGA1UEAwwQ
-aW50ZXJtZWRpYXRlQ0FfMjAeFw0xODEwMjIxMjM4MTZaFw0xOTA0MjIxMjM4MTZa
-MH8xETAPBgNVBAMMCGRtYWFwLWJjMQ8wDQYJKoZIhvcNAQkBFgAxLTArBgNVBAsM
-JGRtYWFwLWJjLXRvcGljLW1nckBkbWFhcC1iYy5vbmFwLm9yZzEOMAwGA1UECwwF
-T1NBQUYxDTALBgNVBAoMBE9OQVAxCzAJBgNVBAYTAlVTMIIBIjANBgkqhkiG9w0B
-AQEFAAOCAQ8AMIIBCgKCAQEAs2mQSeSshK4ZrAwc8/QNHZiUVILlQwYyoviPfL27
-8mV1OXSYoTW+PzFU1Tv6HwKEFL3q9i9/y1m0DjhP4frHpNVVTo5KIeCv6fIsAYnp
-/p50P3EOh3AJehtZm4AtxN6DeMlaBv11GYUUm6E60Q36Y6Wgklq8u1KDngYJy1/Q
-Bl8aAiJbj2vpL64WSI3cyNz/qeI4/PxHsqBHUFI96GcLtLPLDSlIQWoWoZhkiQTH
-rU4Sx5/nVdWihfc0R0+jG5IH+mDb8WUNmyHnaHinrt5Er1sypU/NxD+NlRPFO1K4
-Dx40sxfAlu2LFCllDgSS/Xcfse0ny/TrL2RWELoIOz9NjQIDAQABo4HiMIHfMAkG
-A1UdEwQCMAAwDgYDVR0PAQH/BAQDAgXgMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMB
-BggrBgEFBQcDAjBUBgNVHSMETTBLgBQEBI0AJDjGnHjXgFdBZ0kGgOZyR6EwpC4w
-LDEOMAwGA1UECwwFT1NBQUYxDTALBgNVBAoMBE9OQVAxCzAJBgNVBAYTAlVTggEC
-MB0GA1UdDgQWBBTvkTjHV87v4IBJ8N/PqkjjWGKICjArBgNVHREEJDAigghkbWFh
-cC1iY4IWZG1hYXAtYmMgZG1hYXAtYmMub25hcDANBgkqhkiG9w0BAQsFAAOCAQEA
-EJFyoeQtkjDf/yUyWReewxiOfDdmmrDOO4gbxt6hd3ilOflmC7QolR1NAzmCML3b
-vmLS7a8zhwBsUU11wjasN8PI3qG7H36U7hP/NVwvql0YNGIcxvukPJJvDqW6V3MI
-fOaCFs4uJexSYeaXRWdk0Rq8GY9gB2j1TUsl+we9zJeErKr2vY2LAJI0iYJ+v6YY
-Ug14aPYu4m4ABUDhqfM+4z580h8GA+5ZkWNr5z9xfeJB520jAc6zx86obx9hep74
-OByfVqleMV0QfZeH9oLGYh2FnSSEG60GyWFIf9k76kh2LREVCbU+nOhFfVy9YD5Q
-+2TXjh/wMcv3RxAHqSeW9A==
------END CERTIFICATE-----
------BEGIN CERTIFICATE-----
-MIIEVDCCAjygAwIBAgIBAjANBgkqhkiG9w0BAQsFADAsMQ4wDAYDVQQLDAVPU0FB
-RjENMAsGA1UECgwET05BUDELMAkGA1UEBhMCVVMwHhcNMTgwOTI0MTE0MjE2WhcN
-MjMwOTI0MTE0MjE2WjBHMQswCQYDVQQGEwJVUzENMAsGA1UECgwET05BUDEOMAwG
-A1UECwwFT1NBQUYxGTAXBgNVBAMMEGludGVybWVkaWF0ZUNBXzIwggEiMA0GCSqG
-SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjPFeAho7BtWjB4Enww/KXD0tTuoda/Fkc
-o/yv2waNNsx+pOYGdJwNHYvNS7/RLBHc8kCN+TbKnYZ6AE97wD1Pzrc7AZ58qpjq
-Ob7aTp4u3IAMWR5YOkDyjiibA5X7z9N/wveG/Ei2SgN2pY7O2lK5ucm6igarfxll
-rZC1MA9zAXrfmd5bLJQQqACT6q15KQaCIwhqwoXp8w+s0rXcZ2/L303lFIUXoHUp
-kzMsIPhJ/ZoEvAEkXIPgT2uFgOwIyWmr8Rg5jYzZhV7vey3bQUBlue9aiMIXih3d
-b4AVD6J6eF/NmJygtUfHFrWeTAYLppA0d69BWUQZ+XQgCwjOMLaNAgMBAAGjZjBk
-MB0GA1UdDgQWBBQEBI0AJDjGnHjXgFdBZ0kGgOZyRzAfBgNVHSMEGDAWgBTtc8Wb
-I4DL8Bm6CVi8//GsTyq8NTASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQE
-AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAt4VCLb2UHiZpDfSQbe62vlFzsGlODYKF
-k7BhW9Q5jfIXpPhhtBLFwJFEKAWFLVWubz+YIa7I5wtniS6zEPC/5t3JOiEXMJQY
-PfaPDSsovZ+eShu0QtrjjldFwL2MiqNsd2IWLSIRQUP63RZGBRTTxSsxB0VAfRyT
-cu/8znpmZsHna3DspGZQputm7qsxgUhAcPCdo9RQtG6Ox6L1wTXUJmTPHdKQtZjr
-qqSQ7kn8u3i5KQYYapmc3UO+CBbzoLPD5Rrlq+ROBbiNd9R/j5vVgRO7vsU9SHnm
-AaKFEjDPTSjDtMOxu1BsTNmftaE2jcYa9/ZW67H8URCuo92NE0cZRxBqHkPUjH3/
-/S43/TBAfjfarF5WW7iMAEZfEGhrQu26JWXBMcZshStuHUEPl2b+RC5LZcBMYKgi
-SqSOXzpiJeRNASpXKCQQZG8n03c/jBf1U20HaK/4Z2ikOql5B21suxhUbixG1EQN
-DOrFGOFUqG4Eyw+xjUR5rTfDnpKgQfJo0/aohZs9p5x+UwitkrQkJQ1ZmEzeVDjm
-7xsmOcAJS2T9DLle6fDWvyh76InymAPxzk1/2AWOp8uw8iwNfFxE+p+M7h0psZxp
-SnvlgASASdWlZLcMQtNiiKzMK75FW9SMctQfA/RfohNEwivpp6tNpgJozoKmhoPK
-zs5HS/mx8GI=
------END CERTIFICATE-----
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/keystore.p12 b/tests/dcaegen2/prh-testcases/resources/simulator/certs/keystore.p12
new file mode 100644 (file)
index 0000000..bd8e3c0
Binary files /dev/null and b/tests/dcaegen2/prh-testcases/resources/simulator/certs/keystore.p12 differ
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.jks b/tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.jks
deleted file mode 100644 (file)
index e74ce64..0000000
Binary files a/tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.jks and /dev/null differ
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.trust.jks b/tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.trust.jks
deleted file mode 100644 (file)
index 10103cf..0000000
Binary files a/tests/dcaegen2/prh-testcases/resources/simulator/certs/org.onap.dcae.trust.jks and /dev/null differ
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/root.crt b/tests/dcaegen2/prh-testcases/resources/simulator/certs/root.crt
new file mode 100644 (file)
index 0000000..aea1159
--- /dev/null
@@ -0,0 +1,32 @@
+-----BEGIN CERTIFICATE-----
+MIIFbTCCA1WgAwIBAgIUG1QH8TpwSepBiBzrrt5Caw1NEf4wDQYJKoZIhvcNAQEL
+BQAwPTEPMA0GA1UEAwwGUm9vdENBMQ4wDAYDVQQLDAVPU0FBRjENMAsGA1UECgwE
+T05BUDELMAkGA1UEBhMCVVMwIBcNMTkwNTI4MDYzNDAyWhgPMjExOTA1MDQwNjM0
+MDJaMD0xDzANBgNVBAMMBlJvb3RDQTEOMAwGA1UECwwFT1NBQUYxDTALBgNVBAoM
+BE9OQVAxCzAJBgNVBAYTAlVTMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC
+AgEA5h/bBKaDM7IrsuiADWFsXEyoEgiUWfXkmat7nxjVu5P5EK7eowWLGwKSI6N1
+mimOzxsVvc6o1X6GhhNDAQGrfzWFSTf00TyXZc46NaZp6ti2AcD1H3rImzchC8/B
+AM/eHcB8/ZMoq9A5z+ljlI3xT0JiF3GbSEaXPAaLlWhoEShb3JBDUWV8TRI6AYS7
+MxaAcbrT1uOstiB+cIVTmafk7LbcV9829OdJbEcKVjMyF5PxHU5t4B+zO6lrAGr3
+BIMwwiFoSbGEow58wMN/lL+zB48P5uV+0wZqB4+zgU0DEzBfJ3Q7XZj65t9VsF95
+/qVDYW5JgEUB7fi+KrHgpKbdoHpZsHRiE7GZibJphxDN6CHSfcSuDoJiIHWbaDF4
+dR8qIObMCfdkbu+5QFc+RZceCmmTtMSI8JBN/FMhBeRJ7enIphcsoinCwINYjwWN
+oNT5A5wPLWGkGC51r535I55x2kgvbd+bUZSWapJ4tgQBHm5J/dGcUHNJMO4FFjsF
+LplrHb3o83jhagfwEZ3TsbGY+bUXXWkydKi6A66JrbNGR5/RgYhz+p5KOyjiR+JI
+g7guB5UaK6ZCl4OeVEfpmF3OFEXnLMvr8iJ3tlwvPoj9mxRKtS7Os3+/fvi6hRpl
+VgoSMDN7Pv0f4KSPuNQDgRBH7U9ez/YTYakRg6Xv1ACVdisCAwEAAaNjMGEwHQYD
+VR0OBBYEFIkwGLo5okMt2o0Qca+IQsgiwu1iMB8GA1UdIwQYMBaAFIkwGLo5okMt
+2o0Qca+IQsgiwu1iMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0G
+CSqGSIb3DQEBCwUAA4ICAQC7uexRjHGGYpGZKmgTmgQwDboxOdtpAoYHesnWAj7V
+NjbAZhAvrN7kEMKp0RE5IIE/JwnMmmY3H+pGKsSb8AqArMKVLn00kQhHjg+j36rw
+wlxA16NJAzWIXQ97EjbG7U/a9MhAnnUMAEtdWVp3ux1ISZta4s2zSapFw+CIlLJC
+81Lz1344DbQJQsy5bOfPrgHtCgWQafSV0cU8XsJnPo2HsnL+q4hDi+KxE6jJshE1
+alMa2kX/DRLWPGCifPe3zQJdn9IdLjWsOrRFOIZJqwtxRzdK0IvS1P9clit5NJ88
+d6qCK1kl5nW7EyueUMSIRldu/uG8UTcWNP5Cu9KPE14GgigLt7RwW9nPgsdbTwK0
+4jAeF6LsZ7QU29cvBjI9LpiA7VFfexkFEeTU8gAmbZuOS6HIhuswHdTGutT9XmO5
+HkA1sA1+L5taR+9UMo/hvzBCIKhFMQlgCWIkJ1iiYKuQ+SZsDR3CZ5+ma5NlhP9j
+1j6J91kkxB5qs4JrgaHZ8cqysljf48PQF3qkEiQfOxw/0WLsxVPxPNYDszX69FRF
+d5+gpSAPQjdJ7OT49ccfl5r1kVfGHpDZn2dKw7K34yeLAAPcjyukdrHFBgtXUVb1
+Ivic5rrDAv1UrqaXh1r6Q+HLOJHSEP1jklyXX0q2IekyQbXRYOMhALfcVbmRleZX
+Qg==
+-----END CERTIFICATE-----
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/certs/truststore.jks b/tests/dcaegen2/prh-testcases/resources/simulator/certs/truststore.jks
new file mode 100644 (file)
index 0000000..2b2d8b4
Binary files /dev/null and b/tests/dcaegen2/prh-testcases/resources/simulator/certs/truststore.jks differ
diff --git a/tests/dcaegen2/prh-testcases/ssl_prh_tests.robot b/tests/dcaegen2/prh-testcases/ssl_prh_tests.robot
deleted file mode 100644 (file)
index 6e350ce..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-*** Settings ***
-Documentation     Integration tests for PRH.
-...               PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event. PRH comunicates with AAI and DMaaP through SSL
-Suite Setup       Run keywords   Create headers  AND  Create sessions  AND  Ensure Container Is Running  ssl_prh  AND  Ensure Container Is Exited  prh
-Suite Teardown    Ensure Container Is Running  prh
-Test Teardown     Reset Simulators
-Library           resources/PrhLibrary.py
-Resource          resources/prh_library.robot
-Resource          ../../common.robot
-
-*** Variables ***
-${TEST_CASES_DIR}    %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets
-
-${DMAAP_SIMULATOR_SETUP_URL}    http://${DMAAP_SIMULATOR_SETUP}
-${AAI_SIMULATOR_SETUP_URL}    http://${AAI_SIMULATOR_SETUP}
-${CONSUL_SETUP_URL}    http://${CONSUL_SETUP}
-
-*** Test Cases ***
-Valid DMaaP event can be converted to PNF_READY notification with ssl connection to AAI
-    [Template]    Verify PNF ready sent
-    ${TEST_CASES_DIR}/ves-event-without-additional-fields
\ No newline at end of file
index 6c3ec29..b91a671 100644 (file)
@@ -7,7 +7,7 @@ Library           Collections
 ${GLOBAL_NBI_SERVER_PROTOCOL}   http
 ${GLOBAL_INJECTED_NBI_IP_ADDR}  localhost
 ${GLOBAL_NBI_SERVER_PORT}       8080
-${NBI_HEALTH_CHECK_PATH}        /nbi/api/v3/status
+${NBI_HEALTH_CHECK_PATH}        /nbi/api/v4/status
 ${NBI_ENDPOINT}                 ${GLOBAL_NBI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_NBI_IP_ADDR}:${GLOBAL_NBI_SERVER_PORT}
 
 *** Test Cases ***
index fb4601a..b3da1c0 100644 (file)
@@ -6,7 +6,7 @@ Library     json
 
 *** Variables ***
 @{return_ok_list}=         200  201  202
-${queryswagger_url}        /api/genericparser/v1/swagger.json
+${queryswagger_url}        /api/parser/v1/swagger.json
 ${queryVNFPackage_url}     /api/parser/v1/vnfpackages
 ${queryNSPackages_url}     /api/parser/v1/nspackages
 ${healthcheck_url}         /api/parser/v1/health_check
diff --git a/tests/optf-cmso/cmso/attlibs/CurlLibrary.py b/tests/optf-cmso/cmso/attlibs/CurlLibrary.py
deleted file mode 100644 (file)
index 44c6229..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-from curl import Curl
-
-class CurlLibrary:
-   
-
-    def get_zip(self, url, filename):
-        fp = open(filename, "wb")
-        c = Curl()
-        c.get(url, )
-        c.set_option(c.WRITEDATA, fp)
-        c.perform()
-        c.close()
-        fp.close()
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/attlibs/HTTPUtils.py b/tests/optf-cmso/cmso/attlibs/HTTPUtils.py
deleted file mode 100644 (file)
index f9d380c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-import urllib
-from selenium import webdriver 
-import base64
-
-class HTTPUtils:
-    """HTTPUtils is common resource for simple http helper keywords."""
-    
-    def url_encode_string(self, barestring):
-        """URL Encode String takes in a string and converts into 'percent-encoded' string"""
-        return urllib.quote_plus(barestring)
-    
-    def ff_profile(self):
-        fp =webdriver.FirefoxProfile()
-        fp.set_preference("dom.max_script_run_time",120)
-        fp.update_preferences()
-        return fp.path 
-    
-    def b64_encode(self, instring):
-        "" 
-        return base64.b64encode(instring)
-
diff --git a/tests/optf-cmso/cmso/attlibs/JSONUtils.py b/tests/optf-cmso/cmso/attlibs/JSONUtils.py
deleted file mode 100644 (file)
index 5df1e5c..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-import json
-
-from deepdiff import DeepDiff
-
-class JSONUtils:
-    """JSONUtils is common resource for simple json helper keywords."""
-    
-    def json_equals(self, left, right):
-        """JSON Equals takes in two strings or json objects, converts them into json if needed and then compares them, returning if they are equal or not."""
-        if isinstance(left, basestring):
-            left_json = json.loads(left);
-        else:
-            left_json = left;
-        if isinstance(right, basestring):
-            right_json = json.loads(right);
-        else:
-            right_json = right;
-            
-        ddiff = DeepDiff(left_json, right_json, ignore_order=True);
-        if ddiff == {}:
-            return True;
-        else:
-            return False;
-    
-    def json_escape(self, jsonObject):
-        jsonstr = json.dumps(jsonObject)
-        outstr = jsonstr.replace('"', '\\"').replace('\n', '\\n')
-        return  outstr    
-    
-    def make_list_into_dict(self, listOfDicts, key):
-        """ Converts a list of dicts that contains a field that has a unique key into a dict of dicts """
-        d = {}
-        if isinstance(listOfDicts, list):
-            for thisDict in listOfDicts:
-                v = thisDict[key]
-                d[v] = thisDict
-        return d          
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/attlibs/OSUtils.py b/tests/optf-cmso/cmso/attlibs/OSUtils.py
deleted file mode 100644 (file)
index 78968f0..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-from sys import platform
-
-class OSUtils:
-    """ Utilities useful for constructing OpenStack HEAT requests """
-
-    def get_normalized_os(self):
-        os = platform
-        if platform == "linux" or platform == "linux2":
-            os = 'linux64'
-        elif platform == "darwin":
-            os = 'mac64'
-        elif platform == "win32":
-            os = platform
-        return os
diff --git a/tests/optf-cmso/cmso/attlibs/RequestsClientCert.py b/tests/optf-cmso/cmso/attlibs/RequestsClientCert.py
deleted file mode 100644 (file)
index e1fd66f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-
-class RequestsClientCert:
-    """RequestsClientCert allows adding a client cert to the Requests Robot Library."""
-    
-    def add_client_cert(self, session, cert):
-        """Add Client Cert takes in a requests session object and a string path to the cert"""
-        session.cert = cert
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/attlibs/StringTemplater.py b/tests/optf-cmso/cmso/attlibs/StringTemplater.py
deleted file mode 100644 (file)
index 680600f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-from string import Template
-
-class StringTemplater:
-    """StringTemplater is common resource for templating with strings."""
-    
-    def template_string(self, template, values):
-        """Template String takes in a string and its values and converts it using the string.Template class"""
-        return Template(template).substitute(values) 
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/attlibs/UID.py b/tests/optf-cmso/cmso/attlibs/UID.py
deleted file mode 100644 (file)
index 4374809..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-import uuid
-
-class UID:
-    """UUID is a simple library that generates a uuid"""
-    
-    def generate_UUID(self):
-        """generate a uuid"""
-        return uuid.uuid4()
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/resources/approval_requests.robot b/tests/optf-cmso/cmso/resources/approval_requests.robot
deleted file mode 100644 (file)
index 9de1887..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-*** Settings ***
-Documentation    Scheduler keywords
-
-#Library   StringTemplater
-#Library   UUID
-Library                ../attlibs/UID.py
-Library                ../attlibs/StringTemplater.py
-Library   DateTime
-Library   Collections
-
-Resource       scheduler_common.robot
-Resource       json_templater.robot
-
-*** Variables ****
-${TEMPLATES}    assets/templates/changemanagement
-${UTC}   %Y-%m-%dT%H:%M:%SZ
-
-*** Keywords ***
-Wait For Pending Approval
-     [Documentation]    Gets the schedule identified by the uuid and checks if it is in the Pending Approval state
-     [Arguments]   ${uuid}     ${status}=Pending Approval
-     ${resp}=   Get Change Management   auth   schedules/${uuid}
-     ${json}=   Catenate   ${resp.json()}
-     Dictionary Should Contain Item    ${resp.json()}    status    ${status}    
-
-Send Tier2 Approval
-    [Documentation]    Sends an approval post request for the given schedule using the UUID and User given and checks that request worked
-    [Arguments]   ${uuid}   ${user}   ${status}
-    ${approval}=   Create Dictionary   approvalUserId=${user}   approvalType=Tier 2   approvalStatus=${status}          
-    ${resp}=   Post Change Management   auth   schedules/${uuid}/approvals   data=${approval}
-    Should Be Equal As Strings    ${resp.status_code}   204
-     
-    
-Send Invalid Approval    
-   [Arguments]   ${uuid}   ${user}   
-   ${approval}=   Create Dictionary   approvalUserId=${user}   approvalType=Tier 3   approvalStatus=Accepted              
-   Run Keyword and Expect Error   400   Post Change Management   auth   schedules/${uuid}/approvals   data=${approval}
-    
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyDomain.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyDomain.json.template
deleted file mode 100644 (file)
index 1aea5ef..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyScheduleID.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyScheduleID.json.template
deleted file mode 100644 (file)
index 2733b07..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyScheduleName.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyScheduleName.json.template
deleted file mode 100644 (file)
index 9d827bd..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyUserID.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowEmptyUserID.json.template
deleted file mode 100644 (file)
index d779f2c..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowIncorrectPolicyId.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowIncorrectPolicyId.json.template
deleted file mode 100644 (file)
index 061b6b7..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "string",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowIncorrectWorkflow.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowIncorrectWorkflow.json.template
deleted file mode 100644 (file)
index 87ab8f3..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Not A Workflow"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNegativeNormalDurationInSeconds.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNegativeNormalDurationInSeconds.json.template
deleted file mode 100644 (file)
index 633ce46..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : -5,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoEndTime.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoEndTime.json.template
deleted file mode 100644 (file)
index 62dae5b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : ""
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoNodeName.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoNodeName.json.template
deleted file mode 100644 (file)
index 22fc89a..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       ""
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoStartTime.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowNoStartTime.json.template
deleted file mode 100644 (file)
index 4f1f25b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowSwitchedTime.json.template b/tests/optf-cmso/cmso/resources/assets/templates/FailureCasesChangeManagement/OneVnfOneChangeWindowSwitchedTime.json.template
deleted file mode 100644 (file)
index a7f19d4..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO.TimeLimitAndVerticalTopology",
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${end_time1}",
-                                               "endTime" : "${start_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyAdditionalDuration.json.template b/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyAdditionalDuration.json.template
deleted file mode 100644 (file)
index 5c9e0a3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "VNFName1${testid}",
-                                       "VNFName2${testid}",
-                                       "VNFName3${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyDomain.json.template b/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyDomain.json.template
deleted file mode 100644 (file)
index 19c1d87..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "VNFName1${testid}",
-                                       "VNFName2${testid}",
-                                       "VNFName3${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyScheduleId.json.template b/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyScheduleId.json.template
deleted file mode 100644 (file)
index ab92d18..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "VNFName1${testid}",
-                                       "VNFName2${testid}",
-                                       "VNFName3${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyUserId.json.template b/tests/optf-cmso/cmso/resources/assets/templates/MutipleVNFImmediateFailureCases/MultipleVnfImmediateEmptyUserId.json.template
deleted file mode 100644 (file)
index 9de749c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "groupId" : "",
-                               "node" : [
-                                       "VNFName1${testid}",
-                                       "VNFName2${testid}",
-                                       "VNFName3${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyDomain.json.template b/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyDomain.json.template
deleted file mode 100644 (file)
index 8d2f09f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyScheduleId.json.template b/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyScheduleId.json.template
deleted file mode 100644 (file)
index b363a27..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyScheduleName.json.template b/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyScheduleName.json.template
deleted file mode 100644 (file)
index 4bb70ec..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-       
-               "vnfDetails" : [{
-                               "node" : [
-                                       "ZRDM1MMSC04${testid}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptySchedulingInfo.json.template b/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptySchedulingInfo.json.template
deleted file mode 100644 (file)
index 461f166..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyUserId.json.template b/tests/optf-cmso/cmso/resources/assets/templates/OneVNFImmediateFailureCases/OneVnfImmediateEmptyUserId.json.template
deleted file mode 100644 (file)
index a2a4ba4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData1.json.template b/tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData1.json.template
deleted file mode 100644 (file)
index 73c2e34..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}",
-                       "plans" : "Run ${workflow}",
-                       "question.000000000000001" : "Yes",
-                       "domainName1" : "domainValue1"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "vnfDetails" : [{
-                               "groupId" : "group1",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData2.json.template b/tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData2.json.template
deleted file mode 100644 (file)
index 0f02116..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}",
-                       "plans" : "Run ${workflow}",
-                       "question.000000000000001" : "Yes",
-                       "domainName1" : "domainValue1",
-                       "domainName2" : "domainValue2"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "vnfDetails" : [{
-                               "groupId" : "group1",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData3.json.template b/tests/optf-cmso/cmso/resources/assets/templates/SearchSchedulerDetails/OneVnfImmediate_domainData3.json.template
deleted file mode 100644 (file)
index dc64483..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}",
-                       "plans" : "Run ${workflow}",
-                       "question.000000000000001" : "Yes",
-                       "domainName1" : "domainValue1",
-                       "domainName2" : "domainValue2",
-                       "domainName3" : "domainValue3"
-                       
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "vnfDetails" : [{
-                               "groupId" : "group1",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/MultipleVnfImmediate.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/MultipleVnfImmediate.json.template
deleted file mode 100644 (file)
index 542e19e..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}",
-                                       "${node2}",
-                                       "${node3}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneGroupMultipleVNFsOneChangeWindow.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneGroupMultipleVNFsOneChangeWindow.json.template
deleted file mode 100644 (file)
index 9bfd3d2..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_pserver",
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}",
-                                       "${node2}",
-                                       "${node3}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneGroupMultipleVNSsTwoChangeWindows.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneGroupMultipleVNSsTwoChangeWindows.json.template
deleted file mode 100644 (file)
index a3cef8a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_pserver",
-               "vnfDetails" : [{
-                               "groupId" : "Group1",
-                               "node" : [
-                                       "${node1}",
-                                       "${node2}",
-                                       "${node3}",
-                                       "${node4}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       },{
-                                               "startTime" : "${start_time2}",
-                                               "endTime" : "${end_time2}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
-
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediate.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediate.json.template
deleted file mode 100644 (file)
index c108c15..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}",
-                       "plans" : "Run ${workflow}",
-                       "question.000000000000001" : "Yes"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "vnfDetails" : [{
-                               "groupId" : "group1",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediateIncorrectWorkflow.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediateIncorrectWorkflow.json.template
deleted file mode 100644 (file)
index e91c653..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Not A Workflow"
-               }
-       ],
-       "schedulingInfo" : {
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediateReplaceVNFInfra.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfImmediateReplaceVNFInfra.json.template
deleted file mode 100644 (file)
index d896a62..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "ReplaceVnfInfra"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "vnfDetails" : [{
-                       "groupId" : "group",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindow.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindow.json.template
deleted file mode 100644 (file)
index 93bb2ac..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "${workflow}"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_pserver",
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackData.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackData.json.template
deleted file mode 100644 (file)
index e6e584b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "",
-                       "WorkflowName" : "Build Software Upgrade for vNFs"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_v2_split_1",
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}"
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackURL.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowEmptyCallbackURL.json.template
deleted file mode 100644 (file)
index 57634d6..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Build Software Upgrade for vNFs"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_v2_split_1",
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowReplaceVNFInfra.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/OneVnfOneChangeWindowReplaceVNFInfra.json.template
deleted file mode 100644 (file)
index e5d62bf..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-{
-       "domain" : "ChangeManagement",
-       "scheduleId" : "${uuid}",
-       "scheduleName" : "${uuid}",
-       "userId" : "${userId}",
-       "domainData" : [{
-                       "CallbackUrl" : "${callbackUrl}",
-                       "CallbackData" : "${callbackData}",
-                       "WorkflowName" : "Replace"
-               }
-       ],
-       "schedulingInfo" : {
-               "normalDurationInSeconds" : 100,
-               "additionalDurationInSeconds" : 10,
-               "concurrencyLimit" : 10,
-               "policyId" : "SNIRO_CM.TimeLimitAndVerticalTopology_v2_split_1",
-               "vnfDetails" : [{
-                               "groupId" : "group",
-                               "node" : [
-                                       "${node1}"
-                               ],
-                               "changeWindow" : [{
-                                               "startTime" : "${start_time1}",
-                                               "endTime" : "${end_time1}"
-                                       }
-                               ]
-                       }
-               ]
-       }
-}
diff --git a/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/VidCallbackData.json.template b/tests/optf-cmso/cmso/resources/assets/templates/changemanagement/VidCallbackData.json.template
deleted file mode 100644 (file)
index 177b55a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-{
-       "requestType" : "Update",
-       "requestDetails" : [{
-                       "vnfName" : "mdns_2017_1011_oh22u_20171103",
-                       "vnfInstanceId" : "b8d99523-1e83-4fd1-b42f-849361ef7024",
-                       "modelInfo" : {
-                               "modelType" : "vnf",
-                               "modelInvariantId" : "93e16072-715a-42ef-9d0a-080052d6b716",
-                               "modelVersionId" : "4ec07a2d-6bb5-4373-8ed6-4bc7ac1246fd",
-                               "modelName" : "mdns_2017_1011_oh22u_20171103",
-                               "modelCustomizationId" : "1779a999-ea17-4f31-98e9-75b6fbdd0acb"
-                       },
-                       "cloudConfiguration" : {
-                               "lcpCloudRegionId" : "mdt1",
-                               "tenantId" : "88a6ca3ee0394ade9403f075db23167e"
-                       },
-                       "requestInfo" : {
-                               "source" : "VID",
-                               "suppressRollback" : false,
-                               "requestorId" : "az2016"
-                       },
-                       "relatedInstanceList" : [{
-                                       "relatedInstance" : {
-                                               "instanceId" : "54ba3628-9ee5-4b32-8a2a-3abf001bed4e",
-                                               "modelInfo" : {
-                                                       "modelType" : "service",
-                                                       "modelInvariantId" : "e58733ef-43cb-4b6b-b641-922078b6c88b",
-                                                       "modelVersionId" : "4ec07a2d-6bb5-4373-8ed6-4bc7ac1246fd",
-                                                       "modelName" : "mdns_2017_1011",
-                                                       "modelVersion" : "4.0"
-                                               }
-                                       }
-                               }
-                       ],
-                       "requestParameters" : {
-                               "usePreload" : true
-                       }
-               }
-       ]
-}
diff --git a/tests/optf-cmso/cmso/resources/browser_setup.robot b/tests/optf-cmso/cmso/resources/browser_setup.robot
deleted file mode 100644 (file)
index 032759e..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-*** Settings ***
-Documentation     The main interface for interacting with VID. It handles low level stuff like managing the selenium request library and VID required steps
-Library           Collections
-Library           OSUtils
-Library           OperatingSystem
-Library           Selenium2Library
-
-*** Variables ***
-${CHROME_DRIVER_WIN32_PATH}            drivers/win32
-${CHROME_DRIVER_MAC64_PATH}            drivers/mac64
-${CHROME_DRIVER_LINUX64_PATH}          drivers/linux64
-${CHROME_DRIVER_WIN32}            ${CHROME_DRIVER_WIN32_PATH}/chromedriver.exe
-${CHROME_DRIVER_MAC64}            ${CHROME_DRIVER_MAC64_PATH} /chromedriver
-${CHROME_DRIVER_LINUX64}          ${CHROME_DRIVER_LINUX64_PATH}/chromedriver
-
-*** Keywords ***
-Setup Browser
-    [Documentation]   Sets up browser based upon the value of 
-    [Arguments]    ${browser}
-    Run Keyword If    '${browser}' == 'firefox'    Setup Browser Firefox
-    Run Keyword If    '${browser}' == 'chrome'    Setup Browser Chrome
-    Log    Running with ${browser}
-    
-Setup Browser Firefox
-    ${dc}   Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.FIREFOX  sys, selenium.webdriver
-    Set To Dictionary   ${dc}   elementScrollBehavior    1 
-    Create Webdriver    Firefox    desired_capabilities=${dc}
-    ##Set Global Variable    ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES}    ${dc}
-           
- Setup Browser Chrome
-    ${os}=   Get Normalized Os 
-    Log    Normalized OS=${os}
-    Run Keyword If    '${os}' == 'win32'    Append To Environment Variable    PATH    ${CHROME_DRIVER_WIN32_PATH}
-    ##Run Keyword If    '${os}' == 'win32'    Set Environment Variable    webdriver.chrome.driver    ${CHROME_DRIVER_WIN32}
-    Run Keyword If    '${os}' == 'mac64'    Append To Environment Variable    PATH    ${CHROME_DRIVER_MAC64_PATH}
-    #Run Keyword If    '${os}' == 'mac64'    Set Environment Variable  webdriver.chrome.driver    ${CHROME_DRIVER_MAC64}
-    Run Keyword If    '${os}' == 'linux64'    Append To Environment Variable    PATH    ${CHROME_DRIVER_LINUX64_PATH}
-    #Run Keyword if    '${os}' == 'linux64'     Set Environment Variable  webdriver.chrome.driver    ${CHROME_DRIVER_LINUX64}
-    ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys
-    Call Method    ${chrome options}    add_argument    no-sandbox
-    ${dc}   Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME  sys, selenium.webdriver
-    Set To Dictionary   ${dc}   elementScrollBehavior    1
-    Create Webdriver    Chrome   chrome_options=${chrome_options}    desired_capabilities=${dc}  
-    #Set Global Variable    ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES}    ${dc}       
-
-Handle ATT Speed Bump    
-    [Documentation]    Handle AT&T Speed Bump when accessing Rackspace UI from AT&T network
-    ${test}    ${value}=    Run keyword and ignore error    Title Should Be     Notice - Uncategorized Site
-    Run keyword If    '${test}' == 'PASS'    Click Element    xpath=//a[contains(@href, 'accepted-Notify-Uncategorized')] 
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/resources/change_management_ete.robot b/tests/optf-cmso/cmso/resources/change_management_ete.robot
deleted file mode 100644 (file)
index 2b1ff54..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-*** Settings ***
-Documentation    Creates VID VNF Instance
-
-#Library   StringTemplater
-#Library   UUID
-Library                ../attlibs/UID.py
-Library                ../attlibs/StringTemplater.py
-Library   Collections
-Library   SSHLibrary
-
-Resource       scheduler_common.robot
-Resource       json_templater.robot
-Resource       create_schedule.robot
-Resource       approval_requests.robot
-
-*** Variables ****
-${TEMPLATES}   /assets/templates
-
-*** Keywords ***
-Change Management Template
-   [Arguments]    ${request_file}   ${workflow}   ${minutesFromNow}=1
-   ${template_folder}=    Catenate   ${TEMPLATES}/changemanagement
-   ${uuid}=   Generate UUID 
-   ${resp}=   Create Schedule   ${uuid}   ${request_file}   ${template_folder}   workflow=${workflow}   minutesFromNow=${minutesFromNow}   
-   Should Be Equal as Strings    ${resp.status_code}    202
-   Validate Acknowledgment Response Headers    ${resp} 
-   Wait Until Keyword Succeeds    600s    30s    Wait For Pending Approval   ${uuid}
-   Send Tier2 Approval   ${uuid}   jf9860    Accepted      
-   ${resp}=   Get Change Management   auth   schedules/${uuid}
-   Wait Until Keyword Succeeds    120s    30s    Wait For All VNFs Reach Status   Completed   ${uuid}
-   Wait Until Keyword Succeeds    120s    30s    Wait for Schedule to Complete   Completed   ${uuid}
-   ${reps}=   Delete Change Management   auth   schedules/${uuid}
-
-Change Management Immediate Template
-   [Arguments]    ${request_file}    ${workflow}  
-   ${template_folder}=    Catenate   ${TEMPLATES}/changemanagement
-   ${uuid}=   Generate UUID 
-   ${resp}=   Create Schedule   ${uuid}   ${request_file}   ${template_folder}   workflow=${workflow}
-   Should Be Equal as Strings    ${resp.status_code}   202
-   Validate Acknowledgment Response Headers    ${resp}
-   Wait Until Keyword Succeeds    120s    30s    Wait For All VNFs Reach Status   Completed   ${uuid}
-   Wait Until Keyword Succeeds    120s    30s    Wait for Schedule to Complete   Completed   ${uuid}
-   ${reps}=   Delete Change Management   auth   schedules/${uuid}
-    
-Wait For All VNFs Reach Status
-    [Arguments]   ${status}   ${uuid}
-    ${resp}=   Get Change Management   auth   schedules/scheduleDetails?request.scheduleId=${uuid}
-    : for   ${vnf}   in  @{resp.json()}
-    \   Dictionary Should Contain Item   ${vnf}   status   Completed 
-      
-Wait for Schedule to Complete
-    [Arguments]   ${status}   ${uuid}
-    ${resp}=   Get Change Management   auth   schedules/${uuid}
-    Dictionary Should Contain Item   ${resp.json()}   status   Completed 
-
-Create and Approve
-   [Arguments]    ${request_file}   ${workflow}   ${minutesFromNow}=5  
-   ${template_folder}=    Catenate   ${TEMPLATES}/changemanagement
-   ${uuid}=   Generate UUID 
-   ${resp}=   Create Schedule   ${uuid}   ${request_file}   ${template_folder}   workflow=${workflow}   minutesFromNow=${minutesFromNow}   
-   Should Be Equal as Strings    ${resp.status_code}    202 
-   Validate Acknowledgment Response Headers    ${resp}
-   Wait Until Keyword Succeeds    300s    5s    Wait For Pending Approval   ${uuid}
-   Send Tier2 Approval   ${uuid}   jf9860    Accepted      
-
-Change Management Cancel Template
-   [Arguments]    ${request_file}   ${workflow}   ${minutesFromNow}=5
-   ${template_folder}=    Catenate   ${TEMPLATES}/changemanagement
-   ${uuid}=   Generate UUID 
-   ${resp}=   Create Schedule   ${uuid}   ${request_file}   ${template_folder}   workflow=${workflow}   minutesFromNow=${minutesFromNow}   
-   Should Be Equal as Strings    ${resp.status_code}    202 
-   Validate Acknowledgment Response Headers    ${resp}
-   Wait Until Keyword Succeeds    600s    5s    Wait For Pending Approval   ${uuid}
-   Send Tier2 Approval   ${uuid}   jf9860    Accepted      
-   ${resp}=   Delete Change Management   auth   schedules/${uuid}
-   Should Be Equal as Strings    ${resp.status_code}    204 
-   Log    ${resp.headers}    
-   
-Validate Acknowledgment Response Headers 
-    [Arguments]    ${Response} 
-    Log     ${Response.headers} 
-    ${act_headers_keys} =    Get Dictionary Keys    ${Response.headers} 
-    Dictionary Should Contain Key    ${Response.headers}    X-LatestVersion 
-    Dictionary Should Contain Key    ${Response.headers}    X-MinorVersion 
-    Dictionary Should Contain Key    ${Response.headers}    X-PatchVersion
-    
-    
-    
-Change Management Immediate Template Query Data    
-   [Arguments]    ${request_file}    ${workflow}  
-   ${template_folder}=    Catenate   ${TEMPLATES}/SearchSchedulerDetails
-   ${uuid}=   Generate UUID 
-   ${resp}=   Create Schedule   ${uuid}   ${request_file}   ${template_folder}   workflow=${workflow}
-   Should Be Equal as Strings    ${resp.status_code}   202
-   Validate Acknowledgment Response Headers    ${resp}
-   Wait Until Keyword Succeeds    120s    30s    Wait For All VNFs Reach Status   Completed   ${uuid}
-   Wait Until Keyword Succeeds    120s    30s    Wait for Schedule to Complete   Completed   ${uuid}
-   [Return]    ${uuid}
-   
-   
-
-               
diff --git a/tests/optf-cmso/cmso/resources/create_schedule.robot b/tests/optf-cmso/cmso/resources/create_schedule.robot
deleted file mode 100644 (file)
index 43d5ff1..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-*** Settings ***
-Documentation    SCheduler tests
-
-#Library   StringTemplater
-#Library   UUID
-Library                ../attlibs/UID.py
-Library                ../attlibs/StringTemplater.py
-Library                ../attlibs/JSONUtils.py
-Library   String
-Library   DateTime
-Library   Collections 
-Library   OperatingSystem 
-#Library   JSONUtils
-
-Resource       scheduler_common.robot
-Resource       json_templater.robot
-
-*** Variables ****
-${VID_TEMPLATES}    /assets/templates/changemanagement
-${GLOBAL_VID_CALLBACK_URL}             http://127.0.0.1:8080/scheduler/v1/loopbacktest/vid
-${GLOBAL_VID_USERID}           jf9860
-${NODES}       aaiaic25ctsf0002v,dpa2bhsfe0001v,ctsf0008v,nsbg0002v
-${UTC}   %Y-%m-%dT%H:%M:%SZ
-
-*** Keywords ***
-Create Schedule
-    [Arguments]   ${uuid}   ${request_file}    ${TEMPLATES}   ${workflow}=Unknown    ${minutesFromNow}=5
-    ${testid}=   Catenate   ${uuid}
-    ${testid}=   Get Substring   ${testid}   -4
-    ${dict}=   Create Dictionary   serviceInstanceId=${uuid}   parent_service_model_name=${uuid}
-    ${callbackData}=   Fill JSON Template File    ${CURDIR}${VID_TEMPLATES}/VidCallbackData.json.template   ${dict} 
-    ${callbackDataString}=   Json Escape    ${callbackData}   
-       ${map}=   Create Dictionary   uuid=${uuid}   callbackUrl=${GLOBAL_VID_CALLBACK_URL}   callbackData=${callbackDataString}    testid=${testid}   workflow=${workflow}      userId=${GLOBAL_VID_USERID}
-       ${nodelist}=   Split String    ${NODES}   ,
-       ${nn}=    Catenate    1
-    # Support up to 4 ChangeWindows
-    : For   ${i}   in range   1    4    
-    \  ${today}=    Evaluate   ((${i}-1)*1440)+${minutesFromNow}
-    \  ${tomorrow}   Evaluate   ${today}+1440 
-    \  ${last_time}   Evaluate  ${today}+30   
-    \  ${start_time}=    Get Current Date   UTC  + ${today} minutes   result_format=${UTC}
-    \  ${end_time}=    Get Current Date   UTC   + ${tomorrow} minutes   result_format=${UTC}
-    \  Set To Dictionary    ${map}   start_time${i}=${start_time}   end_time${i}=${end_time}      
-
-       : For   ${vnf}   in    @{nodelist}
-       \   Set To Dictionary    ${map}   node${nn}   ${vnf}   
-       \   ${nn}=   Evaluate    ${nn}+1     
-
-    ${data}=   Fill JSON Template File    ${CURDIR}${TEMPLATES}/${request_file}   ${map}    
-    ${resp}=   Post Change Management   auth   schedules/${uuid}   data=${data}
-    [Return]   ${resp}
-    
-       
-    
diff --git a/tests/optf-cmso/cmso/resources/files.robot b/tests/optf-cmso/cmso/resources/files.robot
deleted file mode 100644 (file)
index fcfffbb..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-*** Settings ***
-Documentation     Some handy Keywords for accessing log files over SSH.  Assumptions are that logs will belong to users other than the currently logged in user and that sudo will be required
-Library           OperatingSystem
-Library              SSHLibrary
-Library           HttpLibrary.HTTP
-Library           String
-Library           Collections
-
-*** Variables ***
-
-*** Keywords ***
-Open Connection And Log In
-   [Documentation]    Open a connection using the passed user and SSH key. Connection alias will be the host name by default.
-   [Arguments]    ${HOST}    ${user}    ${pvt}    ${password}=    ${alias}=${HOST}    ${timeout}=120s
-   Open Connection    ${HOST}    alias=${alias}    timeout=${timeout}
-   Login With Public Key    ${user}    ${pvt}    password=${password}    delay=0.5 seconds
-
-Grep Local File
-    [Documentation]     Grep the passed file name and return all of the lines that match the passed pattern using the current connection
-    [Arguments]    ${pattern}     ${fullpath}
-    ${output}=    Execute Command    grep ${pattern} ${fullpath}
-    [Return]     ${output}
-
- Grep File on Host
-    [Documentation]     Grep the passed file name and return all of the lines that match the passed pattern using passed connection alias/host
-    [Arguments]     ${host}    ${pattern}     ${fullpath}
-    Switch Connection    ${host}
-    ${output}=    Grep Local File    ${pattern}    ${fullpath}
-    @{lines}=    Split To Lines    ${output}
-    [Return]     @{lines}
-
-Grep File on Hosts
-    [Documentation]     Grep the passed file name and return all of the lines that match the passed pattern using passed list of connections
-    [Arguments]    ${HOSTS}    ${pattern}    ${fullpath}
-    &{map}=    Create Dictionary
-    :FOR    ${HOST}    IN    @{HOSTS}
-    \    Log    ${HOST}
-    \    @{lines}=    Grep File on Host    ${HOST}   ${pattern}    ${fullpath}
-    \    &{map}=    Create Dictionary    ${HOST}=@{lines}    &{map}
-    [Return]    &{map}
-
-Tail File on Host Until
-    [Documentation]     Tail log file into grep which returns file lines containing the grep pattern. Will timeout after timeout= if expected pattern not received.
-    [Arguments]    ${host}    ${pattern}    ${fullpath}    ${expected}    ${timeout}=60    ${options}=-c -0
-    Switch Connection    ${host}
-    ${tailcommand}=    Catenate    tail ${options} -f ${fullpath} | grep --color=never ${pattern}
-    Write    ${tailcommand}
-    ${stdout}= Read Until Regexp    ${expected}
-    @{lines}=    Split To Lines    ${stdout}
-    [Return]    @{lines}
diff --git a/tests/optf-cmso/cmso/resources/json_templater.robot b/tests/optf-cmso/cmso/resources/json_templater.robot
deleted file mode 100644 (file)
index ebbbf43..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-*** Settings ***
-Documentation     This resource is filling out json string templates and returning the json back
-Library              RequestsLibrary
-#Library           StringTemplater
-Library                ../attlibs/StringTemplater.py
-Library           OperatingSystem
-
-*** Keywords ***
-Fill JSON Template
-    [Documentation]    Runs substitution on template to return a filled in json
-    [Arguments]    ${json}    ${arguments}
-    ${returned_string}=    Template String    ${json}    ${arguments}
-    ${returned_json}=  To Json    ${returned_string}
-    [Return]    ${returned_json}
-
-Fill JSON Template File
-    [Documentation]    Runs substitution on template to return a filled in json
-    [Arguments]    ${json_file}    ${arguments}
-    ${json}=    OperatingSystem.Get File    ${json_file}
-    ${returned_json}=  Fill JSON Template    ${json}    ${arguments}
-    [Return]    ${returned_json}
diff --git a/tests/optf-cmso/cmso/resources/misc.robot b/tests/optf-cmso/cmso/resources/misc.robot
deleted file mode 100644 (file)
index e20640c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-*** Settings ***
-Library     Collections
-Library     String
-#Library     UUID
-Library                ../attlibs/UID.py
-Library     Process
-Library     HttpLibrary.HTTP
-Documentation     Miscellaneous keywords
-
-Resource    json_templater.robot
-Resource    create_schedule.robot
-
-
-*** Variables ***
-
-*** Keywords ***
-
-Validate Status
-    [Documentation]    Fail unless the Request response is in the passed list of valid HTTP status codes.
-    [Arguments]    ${resp}    ${valid_status_list}
-    ${status_code}   Convert To String   ${resp.status_code}
-    Return From Keyword If   '${resp.status_code}' in ${valid_status_list}
-    Fail   ${resp.status_code}
-    
-Validate JSON Error
-    [Documentation]     Fails if messageIds do not match. expected_errors should be a list but a string would likely work as well
-    [Arguments]    ${resp_json}    ${expected_errors}
-    ${result}=   Get From Dictionary   ${resp_json['requestError']}   messageId   
-    Should Contain    ${expected_errors}    ${result}    #checks expected_errors list for the actual error received from schedule
-    
-Check ATTIDs Template
-   [Documentation]    This just checks a list of uuids 
-   [Arguments]    ${expected_status_code}    ${template_folder}
-   ${request_file}=    Convert to String    OneVnfImmediateATTID.json.template
-   ${attid_file}=    OperatingSystem.Get File    robot/assets/AOTS_CM_IDs.txt
-   @{attids}=    Split to lines    ${attid_file}
-   :for    ${attid}    in    @{attids}
-   \   ${uuid}=    Generate UUID
-   \   ${resp}=   Run Keyword and Continue on Failure    Create Schedule   ${uuid}   ${request_file}   ${template_folder}    attid=${attid}
-   \   Run Keyword and Continue on Failure   Should Be Equal as Strings    ${resp.status_code}    ${expected_status_code}
-   \   ${reps}=   Delete Change Management   auth   schedules/${uuid}
-    
-    
diff --git a/tests/optf-cmso/cmso/resources/scheduler_common.robot b/tests/optf-cmso/cmso/resources/scheduler_common.robot
deleted file mode 100644 (file)
index dd2f611..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-*** Settings ***
-Documentation     The private interface for interacting with Openstack. It handles low level stuff like managing the authtoken and Openstack required fields
-
-Library           Collections
-Library              RequestsLibrary
-#Library                 UUID
-Library                ../attlibs/UID.py
-#Library           HTTPUtils
-Library                ../attlibs/HTTPUtils.py
-Library           String
-Resource   misc.robot
-*** Variables ***
-*** Variables ***
-${GLOBAL_SCHEDULER_PORT}               8080
-${GLOBAL_SCHEDULER_PROTOCOL}           http
-#${GLOBAL_SCHEDULER_HOST}              127.0.0.1
-${GLOBAL_SCHEDULER_USER}               jf9860@csp.att.com
-${GLOBAL_SCHEDULER_PASSWORD}           45=Forty5
-${GLOBAL_APPLICATION_ID}               schedulertest
-${SCHEDULER_PATH}    /cmso/v1
-${CHANGE_MANAGEMENT_PATH}    ${SCHEDULER_PATH}
-${valid_status_codes}    200    202    400    404    204    409
-#**************** Test Case Variables ******************
-
-*** Keywords ***
-
-
-Post Change Management
-    [Documentation]    Runs a scheduler POST request
-    [Arguments]    ${alias}    ${resource}   ${data}={}
-    ${data_path}=   Catenate   ${CHANGE_MANAGEMENT_PATH}/${resource}
-    ${resp}=    Post Scheduler    ${alias}    ${data_path}   ${data}
-    [Return]   ${resp}   
-
-Delete Change Management
-    [Documentation]    Runs a scheduler DELETE request (this may need to be changed for 1802 US change Delete schedule to Cancel Schedule)
-    [Arguments]    ${alias}    ${resource}
-    ${data_path}=   Catenate   ${CHANGE_MANAGEMENT_PATH}/${resource}
-    ${resp}=    Delete Scheduler    ${alias}    ${data_path}
-    [Return]   ${resp}   
-
-Get Change Management
-    [Documentation]    Runs a scheduler GET request
-    [Arguments]    ${alias}    ${resource}  
-    ${data_path}=   Catenate   ${CHANGE_MANAGEMENT_PATH}/${resource} 
-    ${resp}=   Get Scheduler    ${alias}    ${data_path}
-    [Return]   ${resp}    
-
-Post Scheduler
-    [Documentation]    Runs a scheduler POST request
-    [Arguments]    ${alias}   ${data_path}   ${data}={}
-    ${url}=   Catenate   ${GLOBAL_SCHEDULER_PROTOCOL}://${GLOBAL_SCHEDULER_HOST}:${GLOBAL_SCHEDULER_PORT}
-    ${uuid}=    Generate UUID
-    ${proxies}=   Create Dictionary   no=pass
-    ${session}=    Create Session      ${alias}   ${url}    
-    ${auth_string}=   B64 Encode    ${GLOBAL_SCHEDULER_USER}:${GLOBAL_SCHEDULER_PASSWORD}
-    ${headers}=  Create Dictionary   Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}   Authorization=Basic ${auth_string}
-    ${resp}=   Post Request    ${alias}        ${data_path}     headers=${headers}   data=${data}
-    Log    Received response from scheduler ${resp.text}
-    ${valid}=   Split String   ${valid_status_codes}
-    
-    Validate Status   ${resp}   ${valid}
-    [Return]    ${resp}
-
-Delete Scheduler
-    [Documentation]    Runs a scheduler POST request
-    [Arguments]    ${alias}   ${data_path} 
-    ${url}=   Catenate   ${GLOBAL_SCHEDULER_PROTOCOL}://${GLOBAL_SCHEDULER_HOST}:${GLOBAL_SCHEDULER_PORT}
-    ${uuid}=    Generate UUID
-    ${proxies}=   Create Dictionary   no=pass
-    ${session}=    Create Session      ${alias}   ${url}     
-    ${auth_string}=   B64 Encode    ${GLOBAL_SCHEDULER_USER}:${GLOBAL_SCHEDULER_PASSWORD}
-    ${headers}=  Create Dictionary   Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}      Authorization=Basic ${auth_string}  
-    ${resp}=   Delete Request  ${alias}        ${data_path}     headers=${headers}
-    Log    Received response from scheduler ${resp.text}
-    ${valid}=   Split String   ${valid_status_codes}
-    Validate Status   ${resp}   ${valid}
-    [Return]    ${resp}
-
-Get Scheduler
-    [Documentation]    Runs a scheduler GET request
-    [Arguments]    ${alias}   ${data_path} 
-    ${url}=   Catenate   ${GLOBAL_SCHEDULER_PROTOCOL}://${GLOBAL_SCHEDULER_HOST}:${GLOBAL_SCHEDULER_PORT}
-    ${uuid}=    Generate UUID
-    ${proxies}=   Create Dictionary   no=pass
-    ${session}=    Create Session      ${alias}   ${url}     
-    ${auth_string}=   B64 Encode    ${GLOBAL_SCHEDULER_USER}:${GLOBAL_SCHEDULER_PASSWORD}
-    ${headers}=  Create Dictionary   Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}      Authorization=Basic ${auth_string}
-    ${resp}=   Get Request     ${alias}        ${data_path}     headers=${headers}
-    Log    Received response from scheduler ${resp.json()}
-    ${valid}=   Split String   ${valid_status_codes}
-    Validate Status   ${resp}   ${valid}
-    [Return]    ${resp}
diff --git a/tests/optf-cmso/cmso/resources/vtm_common.robot b/tests/optf-cmso/cmso/resources/vtm_common.robot
deleted file mode 100644 (file)
index 3d5b50a..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-*** Settings ***
-Documentation     The private interface for interacting with Openstack. It handles low level stuff like managing the authtoken and Openstack required fields
-
-Library           Collections
-Library              RequestsLibrary
-Library                ../attlibs/UID.py
-Library           HTTPUtils
-Library           DateTime
-
-Resource   misc.robot
-*** Variables ***
-*** Variables ***
-# http://zld03290.vci.att.com:9018
-#
-${CLOSE_PATH}    /vtm/manageChangeRecord/v1/closeCancelChangeRecord
-${CLOSE_PORT}    31127
-
-
-#**************** Test Case Variables ******************
-
-*** Keywords ***
-
-vTM Query Template
-    [Documentation]    
-    [Arguments]    ${alias}    ${offset}=0  ${numOfrows}=100   ${display}=[]   ${filter}={}
-    ${request}=   Create Dictionary   offset=${offset}   numOfRows=${numOfRows}   displayTuple=${display}   filterTuple=${filter}
-    Log   ${request}
-    ${resp}=   vTM Query   ${alias}   ${request}
-    [Return]   ${resp}
-
-
-vTM Query
-    [Documentation]    
-    [Arguments]    ${alias}    ${request}
-    ${url}=   Catenate   ${GLOBAL_VTM_URL}
-    ${data_path}=   Catenate   ${GLOBAL_LISTCHANGE_PATH}
-    ${uuid}=    Generate UUID
-    ${proxies}=   Create Dictionary   no=pass
-    ${session}=    Create Session      ${alias}   ${url}   verify=True      
-    ${auth_string}=   B64 Encode    ${GLOBAL_VTM_USER}:${GLOBAL_VTM_PASSWORD}
-    #Authorization=Basic ${GLOBAL_POLICY_AUTH}   ClientAuth=${GLOBAL_POLICY_CLIENTAUTH}   
-    ${headers}=  Create Dictionary  Authorization=Basic ${auth_string}   Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
-    ${resp}=   Post Request    ${alias}        ${data_path}     headers=${headers}   data=${request}
-    Log    Received response from vTM ${resp.text}
-    ${valid}=   Create List   200    404
-    Validate Status   ${resp}   ${valid}
-    [Return]    ${resp}
-
-
-vTM Close Ticket
-    [Documentation]    
-    [Arguments]    ${alias}    ${ticket}   ${changeClosedBy}=jf9860
-    ${url}=   Catenate   ${GLOBAL_VTM_PROTO}://${GLOBAL_VTM_HOST}:${CLOSE_PORT}
-    ${data_path}=   Catenate   ${CLOSE_PATH}
-    ${uuid}=    Generate UUID
-    ${proxies}=   Create Dictionary   no=pass
-    ${session}=    Create Session      ${alias}   ${url}   verify=True      
-    ${auth_string}=   B64 Encode    ${GLOBAL_VTM_USER}:${GLOBAL_VTM_PASSWORD}
-    ${end}=   Get Current Date   result_format=epoch    exclude_millis=True
-    ${end}=   Convert To Integer   ${end}
-    ${start}=   Evaluate   ${end}-60
-    ${request}=   Create Dictionary   changeId=${ticket}   status=Closed   changeClosedBy=${changeClosedBy}   closureCode=Successful As Scheduled    
-       Set To Dictionary   ${request}   customerImpacted=Unknown    actualStartDate=${start}   actualEndDate=${end}
-    
-    #Authorization=Basic ${GLOBAL_POLICY_AUTH}   ClientAuth=${GLOBAL_POLICY_CLIENTAUTH}   
-    ${headers}=  Create Dictionary  Authorization=Basic ${auth_string}   Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
-    ${resp}=   Post Request    ${alias}        ${data_path}     headers=${headers}   data=${request}
-    Log    Received response from vTM ${resp.json()}
-    ${valid}=   Create List   200    404
-    Validate Status   ${resp}   ${valid}
-    [Return]    ${resp}
-
-
-vTM Cancel Ticket
-    [Documentation]    
-    [Arguments]    ${alias}    ${ticket}
-    ${url}=   Catenate   ${GLOBAL_VTM_PROTO}://${GLOBAL_VTM_HOST}:${CLOSE_PORT}
-    ${data_path}=   Catenate   ${CLOSE_PATH}
-    ${uuid}=    Generate UUID
-    ${proxies}=   Create Dictionary   no=pass
-    ${session}=    Create Session      ${alias}   ${url}   verify=True      
-    ${auth_string}=   B64 Encode    ${GLOBAL_VTM_USER}:${GLOBAL_VTM_PASSWORD}
-    ${end}=   Get Current Date   result_format=epoch    exclude_millis=True
-    ${end}=   Convert To Integer   ${end}
-    ${start}=   Evaluate   ${end}-60
-    ${request}=   Create Dictionary   changeId=${ticket}   status=Closed   changeClosedBy=${GLOBAL_VID_USERID}   closureCode=Cancelled    closingComments=Cancel requested by user    
-       Set To Dictionary   ${request}      customerImpacted=No
-    ${headers}=  Create Dictionary  Authorization=Basic ${auth_string}   Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
-    ${resp}=   Post Request    ${alias}        ${data_path}     headers=${headers}   data=${request}
-    Log    Received response from vTM ${resp.json()}
-    ${valid}=   Create List   200    404
-    Validate Status   ${resp}   ${valid}
-    [Return]    ${resp}
diff --git a/tests/optf-cmso/cmso/testsuites/ChangeManagementImmediate.robot b/tests/optf-cmso/cmso/testsuites/ChangeManagementImmediate.robot
deleted file mode 100644 (file)
index 6990cf4..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-*** Settings ***
-Documentation    Placeholder for running CMSO IT 
-
-*** Test Cases ***
-CMSO Robot Test
-   Log    CMSO IT tests run via cmso-robot docker container.
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/testsuites/CmsoCsit.robot b/tests/optf-cmso/cmso/testsuites/CmsoCsit.robot
new file mode 100644 (file)
index 0000000..1d57b53
--- /dev/null
@@ -0,0 +1,3 @@
+*** Test Cases ***
+CSIT Test Case
+    Log   See output of cmso-robot 
\ No newline at end of file
diff --git a/tests/optf-cmso/cmso/testsuites/__init__.robot b/tests/optf-cmso/cmso/testsuites/__init__.robot
deleted file mode 100644 (file)
index baa56c7..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-*** Settings ***
-Documentation    Scheduler 
-
-*** Variables ***
index f1dea17..dcdf2d8 100644 (file)
@@ -6,8 +6,67 @@ Library     json
 
 *** Test Cases ***
 
-Call Apex Policy
-    Create Session   apexSession  http://${APEX_IP}:23324   max_retries=3
+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    CreateOperationalPolicyType
+     Wait Until Keyword Succeeds    2 min    5 sec    CreateNewOperationalPolicy
+     Wait Until Keyword Succeeds    2 min    5 sec    DeployOperationalPolicy
+     Wait Until Keyword Succeeds    4 min    10 sec    RunEventOnApexEngine
+
+*** Keywords ***
+
+CreateOperationalPolicyType
+     [Documentation]    Create Operational Policy Type
+     ${auth}=    Create List    healthcheck    zb!XztG34
+     ${postjson}=  Get file  ${CURDIR}/data/onap.policies.controlloop.operational.Apex.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 policy2 ${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
+
+CreateNewOperationalPolicy
+     [Documentation]    Create a new Operational Apex policy
+     ${auth}=    Create List    healthcheck    zb!XztG34
+     ${postjson}=  Get file  ${CURDIR}/data/onap.policies.controlloop.operational.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.controlloop.operational.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
+
+DeployOperationalPolicy
+     [Documentation]    Make the PAP to initiate a PDP_UPDATE with policies
+     ${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  data=${postjson}   headers=${headers}
+     Log    Received response from policy5 ${resp.text}
+     ${postjsonobject}   To Json    ${postjson}
+     Should Be Equal As Strings    ${resp.status_code}     200
+
+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}
diff --git a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json
new file mode 100644 (file)
index 0000000..8795b13
--- /dev/null
@@ -0,0 +1,284 @@
+{
+  "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+  "policy_types": [
+    {
+      "onap.policies.controlloop.operational.Apex": {
+        "version": "1.0.0",
+        "description": "Operational Policy for Control Loops using the APEX PDP",
+        "properties": {
+          "engine_service": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.EngineService",
+            "description": "APEX Engine Service Parameters"
+          },
+          "inputs": {
+            "type": "map",
+            "description": "Inputs for handling events coming into the APEX engine",
+            "entry_schema": {
+              "type": "onap.datatypes.policies.controlloop.operational.apex.EventHandler"
+            }
+          },
+          "outputs": {
+            "type": "map",
+            "description": "Outputs for handling events going out of the APEX engine",
+            "entry_schema": {
+              "type": "onap.datatypes.policies.controlloop.operational.apex.EventHandler"
+            }
+          },
+          "environment": {
+            "type": "list",
+            "description": "Envioronmental parameters for the APEX engine",
+            "entry_schema": {
+              "type": "onap.datatypes.policies.controlloop.operational.apex.Environment"
+            }
+          }
+        }
+      }
+    }
+  ],
+  "data_types": [
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.EngineService": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "Specifies the engine name",
+            "required": false,
+            "default": "ApexEngineService"
+          },
+          "version": {
+            "type": "string",
+            "description": "Specifies the engine version in double dotted format",
+            "required": false,
+            "default": "1.0.0"
+          },
+          "id": {
+            "type": "int",
+            "description": "Specifies the engine id",
+            "required": true
+          },
+          "instance_count": {
+            "type": "int",
+            "description": "Specifies the number of engine threads that should be run",
+            "required": true
+          },
+          "deployment_port": {
+            "type": "int",
+            "description": "Specifies the port to connect to for engine administration",
+            "required": false,
+            "default": 1
+          },
+          "policy_model_file_name": {
+            "type": "string",
+            "description": "The name of the file from which to read the APEX policy model",
+            "required": false,
+            "default": ""
+          },
+          "policy_type_impl": {
+            "type": "string",
+            "description": "The policy type implementation from which to read the APEX policy model",
+            "required": false,
+            "default": ""
+          },
+          "periodic_event_period": {
+            "type": "string",
+            "description": "The time interval in milliseconds for the periodic scanning event, 0 means \"don't scan\"",
+            "required": false,
+            "default": 0
+          },
+          "engine": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine",
+            "description": "The parameters for all engines in the APEX engine service",
+            "required": true
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.EventHandler": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "Specifies the event handler name, if not specified this is set to the key name",
+            "required": false
+          },
+          "carrier_technology": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology",
+            "description": "Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)",
+            "required": true
+          },
+          "event_protocol": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.EventProtocol",
+            "description": "Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)",
+            "required": true
+          },
+          "event_name": {
+            "type": "string",
+            "description": "Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent",
+            "required": false
+          },
+          "event_name_filter": {
+            "type": "string",
+            "description": "Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through",
+            "required": false
+          },
+          "synchronous_mode": {
+            "type": "bool",
+            "description": "Specifies the event handler is syncronous (receive event and send response)",
+            "required": false,
+            "default": false
+          },
+          "synchronous_peer": {
+            "type": "string",
+            "description": "The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode",
+            "required": false,
+            "default": ""
+          },
+          "synchronous_timeout": {
+            "type": "int",
+            "description": "The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode",
+            "required": false,
+            "default": ""
+          },
+          "requestor_mode": {
+            "type": "bool",
+            "description": "Specifies the event handler is in requestor mode (send event and wait for response mode)",
+            "required": false,
+            "default": false
+          },
+          "requestor_peer": {
+            "type": "string",
+            "description": "The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode",
+            "required": false,
+            "default": ""
+          },
+          "requestor_timeout": {
+            "type": "int",
+            "description": "The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode",
+            "required": false,
+            "default": ""
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "label": {
+            "type": "string",
+            "description": "The label (name) of the carrier technology (such as REST, Kafka, WebSocket)",
+            "required": true
+          },
+          "plugin_parameter_class_name": {
+            "type": "string",
+            "description": "The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class",
+            "required": false
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.EventProtocol": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "label": {
+            "type": "string",
+            "description": "The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)",
+            "required": true
+          },
+          "event_protocol_plugin_class": {
+            "type": "string",
+            "description": "The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class",
+            "required": false
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.Environmental": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "The name of the environment variable",
+            "required": true
+          },
+          "value": {
+            "type": "string",
+            "description": "The value of the environment variable",
+            "required": true
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "context": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context",
+            "description": "The properties for handling context in APEX engines, defaults to using Java maps for context",
+            "required": false
+          },
+          "executors": {
+            "type": "map",
+            "description": "The plugins for policy executors used in engines such as javascript, MVEL, Jython",
+            "required": true,
+            "entry_schema": {
+              "description": "The plugin class path for this policy executor",
+              "type": "string"
+            }
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "distributor": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin",
+            "description": "The plugin to be used for distributing context between APEX PDPs at runtime",
+            "required": false
+          },
+          "schemas": {
+            "type": "map",
+            "description": "The plugins for context schemas available in APEX PDPs such as Java and Avro",
+            "required": false,
+            "entry_schema": {
+              "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin"
+            }
+          },
+          "locking": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.plugin",
+            "description": "The plugin to be used for locking context in and between APEX PDPs at runtime",
+            "required": false
+          },
+          "persistence": {
+            "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin",
+            "description": "The plugin to be used for persisting context for APEX PDPs at runtime",
+            "required": false
+          }
+        }
+      }
+    },
+    {
+      "onap.datatypes.policies.controlloop.operational.apex.Plugin": {
+        "derived_from": "tosca.datatypes.Root",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "The name of the executor such as Javascript, Jython or MVEL",
+            "required": true
+          },
+          "plugin_class_name": {
+            "type": "string",
+            "description": "The class path of the plugin class for this executor"
+          }
+        }
+      }
+    }
+  ]
+}
\ No newline at end of file
diff --git a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json
new file mode 100644 (file)
index 0000000..3d09643
--- /dev/null
@@ -0,0 +1,68 @@
+{
+  "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+  "topology_template": {
+    "policies": [
+      {
+        "operational.sampledomain": {
+          "type": "onap.policies.controlloop.operational.Apex",
+          "type_version": "1.0.0",
+          "derived_from": "tosca.policies.Root",
+          "name": "onap.policies.controlloop.Operational.apex.sampledomain",
+          "version": "1.0.0",
+          "properties": {
+            "content": {
+              "engineServiceParameters": {
+                "name": "MyApexEngine",
+                "version": "0.0.1",
+                "id": 45,
+                "instanceCount": 4,
+                "deploymentPort": 12561,
+                "policy_type_impl": "{\r\n   \"apexPolicyModel\" : {\r\n      \"key\" : {\r\n         \"name\" : \"SamplePolicyModelJAVASCRIPT\",\r\n         \"version\" : \"0.0.1\"\r\n      },\r\n      \"keyInformation\" : {\r\n         \"key\" : {\r\n            \"name\" : \"KeyInformation\",\r\n            \"version\" : \"0.0.1\"\r\n         },\r\n         \"keyInfoMap\" : {\r\n            \"entry\" : [ {\r\n               \"key\" : {\r\n                  \"name\" : \"Context\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Context\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"ca36bfd8-6042-3633-8c85-89c66507c3bf\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Context:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0000\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0000\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"465a81cc-885f-3a4d-bc4e-1508da92b236\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0000:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0001\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0001\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"36b2d570-fff7-3a4b-bab2-6bf492f5129a\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0001:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0002\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0002\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"ff6160a7-fb5e-379c-a6d2-2cd28053eacf\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0002:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0003\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0003\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"5899e216-2abf-3781-abc4-2c257b92721e\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0003:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0004\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0004\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"7c2692a7-4587-3d09-abf9-d96b339a316f\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0004:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0100\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0100\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0100:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0101\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0101\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"edbfa868-2ab2-30fd-8078-4c7f67ca6122\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0101:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0102\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0102\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0102:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0103\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0103\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"c2550912-10d9-3000-8826-377288cd6cb1\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0103:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0104\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0104\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"f6d75b71-c8a7-3337-a121-88d68c389f5a\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Event0104:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Events\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Events\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"0215644c-4531-375c-8335-d558b4de8c03\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Events:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"ExternalContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"976a79e7-5c80-3c03-9503-da3f41fec395\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"ExternalContextAlbum:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"GlobalContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"c95e9e5f-d2c7-3ac7-a205-ea3574530cb7\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"GlobalContextAlbum:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"KeyInformation\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"KeyInformation\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"1ff2f905-685c-3caf-95bc-0bbc90345888\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"KeyInformation:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policies\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policies\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"f54c3b2b-be76-31c4-adfc-87c494c06808\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Policies:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policy0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"3410e939-30ca-32c4-a2d8-c30b6fee6eec\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Policy0:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy0ContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"e27564c4-3cbf-3db2-9bf3-83ae80a2f907\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Policy0ContextAlbum:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policy1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"d0b2b585-f344-33b8-af9e-250e7f4cfbce\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Policy1:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy1ContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Policy1ContextAlbum:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"SamplePolicyModelJAVASCRIPT\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"SamplePolicyModelJAVASCRIPT\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"bc8ee312-81ce-3c4a-92d5-4a73b8077148\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"SamplePolicyModelJAVASCRIPT:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"0589ff20-adcc-3ce5-95fe-8d7978ed54ed\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Act0:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"095b126d-ca8b-32c9-ad52-d744e817a79c\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Act1:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"3d786b4c-d9ee-3367-ab71-c67271a4ea2f\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Act2:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"9231753e-20c5-3436-982f-9100340cc570\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Act3:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"502383d3-483f-3a56-a426-2f0406674c8d\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Decide0:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"16598106-41c8-3b5a-99c6-5fcf6d1a5ddf\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Decide1:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"ad3a89f5-e369-3c66-b22c-669f7b3653b8\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Decide2:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"56815939-1164-3867-9ed1-0a27ff8aafb3\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Decide3:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"0db0c566-ecd7-3e27-9865-4b82c893abdb\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Establish0:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Establish1:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Establish2:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Establish3:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"051bcfd5-cf73-3c89-8ee7-ea6e005ec059\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Match0:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"3754fe19-98f2-34a1-9f45-db31052208d8\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Match1:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"8c200709-a180-3c8b-916f-275ff49ce194\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Match2:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"a1a879c6-4510-33b0-bbd0-ad6256189a37\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Task_Match3:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Tasks\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Tasks\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"a7fab96b-ce1c-37ce-bbb2-556b6db524a5\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"Tasks:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestCase\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestCase\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"0a652886-c88d-3f8c-8994-ae9161e7c963\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestCase:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem000\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem000\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"8efba9fa-371e-33df-a7d6-88b0284e7fd0\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem000:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem001\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem001\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"3740077c-a2b3-356b-81dc-5ded2118a951\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem001:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem002\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem002\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"b5c7df95-9af5-322f-9ea8-eb440a2bf926\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem002:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem003\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem003\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem003:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem004\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem004\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"093cda11-eaeb-3a46-a5b6-d5e30c00935b\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem004:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem005\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem005\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"569a758d-ba40-37c0-aebb-7ad138df25ac\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem005:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem006\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem006\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"252818d9-b61f-3962-a905-8865fb00fb04\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem006:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem007\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem007\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"fe1a5f7c-c083-377b-a797-752b01fc6c73\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem007:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem008\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem008\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"aa87d007-d07e-3f67-8c6d-0ebc3d85479d\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem008:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem009\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem009\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"126e7a3a-11b6-3f88-9397-c21d8819f859\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem009:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem00A\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem00A\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem00A:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem00B\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem00B\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"dbdc98df-3ff4-360c-b8d3-a7a836ac3de6\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem00B:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem00C\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem00C\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"32a2f355-77f3-3b25-ace6-7a9c5763a5ad\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestContextItem00C:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestDatatypes\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestDatatypes\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"3f95472c-973e-30e2-95f1-bf00cbef909a\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestDatatypes:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestExternalContextItem\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestExternalContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"610dbbd4-9149-3b3c-9af4-819056f0e169\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestExternalContextItem:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestGlobalContextItem\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestGlobalContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"07fa8f68-55f1-3fd0-81c1-749a379753a7\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestGlobalContextItem:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestPolicyContextItem\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestPolicyContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"d9c93cd1-539e-35c5-aaec-bb711ceb1251\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestPolicyContextItem:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestSlogan\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestSlogan\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"683fe492-7eae-3ac7-9924-bb7850208d05\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestSlogan:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestTemperature\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestTemperature\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"bba25b6f-e3cd-3060-9022-4ef3a79f8eb0\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestTemperature:0.0.1\\\"\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestTimestamp\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestTimestamp\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"UUID\" : \"97b73937-c344-33c0-924c-4d26b6449564\",\r\n                  \"description\" : \"Generated description for concept referred to by key \\\"TestTimestamp:0.0.1\\\"\"\r\n               }\r\n            } ]\r\n         }\r\n      },\r\n      \"policies\" : {\r\n         \"key\" : {\r\n            \"name\" : \"Policies\",\r\n            \"version\" : \"0.0.1\"\r\n         },\r\n         \"policyMap\" : {\r\n            \"entry\" : [ {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"policyKey\" : {\r\n                     \"name\" : \"Policy0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"template\" : \"MEDA\",\r\n                  \"state\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Act\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Act\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0003\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Act_NULL\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0004\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"NULL\",\r\n                                       \"parentKeyVersion\" : \"0.0.0\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"NULL\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Act1\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act0_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act1_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act2_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act3_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Decide\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Decide\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0002\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Decide_Act\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0003\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"Act\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"ExternalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"Policy0ContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Decide3\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide0_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide1_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide2_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide3_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Establish\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Establish\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0001\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Establish_Decide\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0002\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"Decide\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"ExternalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"Policy1ContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Establish2\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish0_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish1_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish2_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish3_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Match\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Match\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0000\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Match_Establish\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0001\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"Establish\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"Policy0ContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Match0\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match0_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match1_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match2_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match3_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy0\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"firstState\" : \"Match\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"policyKey\" : {\r\n                     \"name\" : \"Policy1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"template\" : \"MEDA\",\r\n                  \"state\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Act\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Act\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0103\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Act_NULL\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0104\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"NULL\",\r\n                                       \"parentKeyVersion\" : \"0.0.0\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"NULL\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Act0\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act0_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act1_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act2_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Act3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Task_Act3_DIRECT_Act_NULL\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Act\",\r\n                                       \"localName\" : \"Act_NULL\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Decide\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Decide\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0102\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Decide_Act\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0103\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"Act\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"ExternalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"Policy1ContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Decide3\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide0_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide1_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide2_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Decide3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Task_Decide3_DIRECT_Decide_Act\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Decide\",\r\n                                       \"localName\" : \"Decide_Act\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Establish\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Establish\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0101\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Establish_Decide\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0102\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"Decide\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"ExternalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"Policy1ContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Establish1\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish0_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish1_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish2_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Establish3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Task_Establish3_DIRECT_Establish_Decide\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Establish\",\r\n                                       \"localName\" : \"Establish_Decide\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Match\",\r\n                        \"value\" : {\r\n                           \"stateKey\" : {\r\n                              \"parentKeyName\" : \"Policy1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Match\"\r\n                           },\r\n                           \"trigger\" : {\r\n                              \"name\" : \"Event0100\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"stateOutputs\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : \"Match_Establish\",\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    },\r\n                                    \"outgoingEvent\" : {\r\n                                       \"name\" : \"Event0101\",\r\n                                       \"version\" : \"0.0.1\"\r\n                                    },\r\n                                    \"nextState\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"NULL\",\r\n                                       \"localName\" : \"Establish\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           },\r\n                           \"contextAlbumReference\" : [ {\r\n                              \"name\" : \"ExternalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"GlobalContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           }, {\r\n                              \"name\" : \"Policy1ContextAlbum\",\r\n                              \"version\" : \"0.0.1\"\r\n                           } ],\r\n                           \"taskSelectionLogic\" : {\r\n                              \"key\" : \"TaskSelectionLigic\",\r\n                              \"logicFlavour\" : \"JAVASCRIPT\",\r\n                              \"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\\nvar returnValue = executor.isTrue;\"\r\n                           },\r\n                           \"stateFinalizerLogicMap\" : {\r\n                              \"entry\" : [ ]\r\n                           },\r\n                           \"defaultTask\" : {\r\n                              \"name\" : \"Task_Match3\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"taskReferences\" : {\r\n                              \"entry\" : [ {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match0\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match0_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match1\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match1_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match2\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match2_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              }, {\r\n                                 \"key\" : {\r\n                                    \"name\" : \"Task_Match3\",\r\n                                    \"version\" : \"0.0.1\"\r\n                                 },\r\n                                 \"value\" : {\r\n                                    \"key\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Task_Match3_DIRECT_Match_Establish\"\r\n                                    },\r\n                                    \"outputType\" : \"DIRECT\",\r\n                                    \"output\" : {\r\n                                       \"parentKeyName\" : \"Policy1\",\r\n                                       \"parentKeyVersion\" : \"0.0.1\",\r\n                                       \"parentLocalName\" : \"Match\",\r\n                                       \"localName\" : \"Match_Establish\"\r\n                                    }\r\n                                 }\r\n                              } ]\r\n                           }\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"firstState\" : \"Match\"\r\n               }\r\n            } ]\r\n         }\r\n      },\r\n      \"tasks\" : {\r\n         \"key\" : {\r\n            \"name\" : \"Tasks\",\r\n            \"version\" : \"0.0.1\"\r\n         },\r\n         \"taskMap\" : {\r\n            \"entry\" : [ {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestActCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestActStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter2\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter2\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue2\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestActCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestActStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestActCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestActStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act2\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Act3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Act3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestActCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestActStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Act3\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter2\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter2\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue2\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide2\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Decide3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Decide3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Decide3\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter2\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter2\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue2\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish2\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Establish3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Establish3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Establish3\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match0\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match0\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter2\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match0\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter2\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue2\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match1\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match1\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"Parameter1\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match1\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter1\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue1\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match2\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match2\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match2\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Task_Match3\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Task_Match3\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"inputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"outputFields\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"taskParameters\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"Parameter0\",\r\n                        \"value\" : {\r\n                           \"key\" : {\r\n                              \"parentKeyName\" : \"Task_Match3\",\r\n                              \"parentKeyVersion\" : \"0.0.1\",\r\n                              \"parentLocalName\" : \"NULL\",\r\n                              \"localName\" : \"Parameter0\"\r\n                           },\r\n                           \"defaultValue\" : \"DefaultValue0\"\r\n                        }\r\n                     } ]\r\n                  },\r\n                  \"contextAlbumReference\" : [ {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }, {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  } ],\r\n                  \"taskLogic\" : {\r\n                     \"key\" : \"_TaskLogic\",\r\n                     \"logicFlavour\" : \"JAVASCRIPT\",\r\n                     \"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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\r\n                  }\r\n               }\r\n            } ]\r\n         }\r\n      },\r\n      \"events\" : {\r\n         \"key\" : {\r\n            \"name\" : \"Events\",\r\n            \"version\" : \"0.0.1\"\r\n         },\r\n         \"eventMap\" : {\r\n            \"entry\" : [ {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0000\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0000\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Outside\",\r\n                  \"target\" : \"Match\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0001\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0001\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Match\",\r\n                  \"target\" : \"Establish\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0002\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0002\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Establish\",\r\n                  \"target\" : \"Decide\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0003\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0003\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Decide\",\r\n                  \"target\" : \"Act\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0004\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0004\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Act\",\r\n                  \"target\" : \"Outside\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestActCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestActStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0100\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0100\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Outside\",\r\n                  \"target\" : \"Match\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0101\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0101\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Match\",\r\n                  \"target\" : \"Establish\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0102\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0102\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Establish\",\r\n                  \"target\" : \"Decide\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0103\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0103\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Decide\",\r\n                  \"target\" : \"Act\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Event0104\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Event0104\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"nameSpace\" : \"org.onap.policy.apex.sample.events\",\r\n                  \"source\" : \"Act\",\r\n                  \"target\" : \"Outside\",\r\n                  \"parameter\" : {\r\n                     \"entry\" : [ {\r\n                        \"key\" : \"TestActCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestActStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestActStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestDecideStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestDecideStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestEstablishStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestEstablishStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCase\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCase\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchCaseSelected\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchCaseSelected\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestCase\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestMatchStateTime\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestMatchStateTime\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestSlogan\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestSlogan\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestSlogan\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTemperature\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTemperature\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTemperature\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     }, {\r\n                        \"key\" : \"TestTimestamp\",\r\n                        \"value\" : {\r\n                           \"key\" : \"TestTimestamp\",\r\n                           \"fieldSchemaKey\" : {\r\n                              \"name\" : \"TestTimestamp\",\r\n                              \"version\" : \"0.0.1\"\r\n                           },\r\n                           \"optional\" : false\r\n                        }\r\n                     } ]\r\n                  }\r\n               }\r\n            } ]\r\n         }\r\n      },\r\n      \"albums\" : {\r\n         \"key\" : {\r\n            \"name\" : \"Context\",\r\n            \"version\" : \"0.0.1\"\r\n         },\r\n         \"albums\" : {\r\n            \"entry\" : [ {\r\n               \"key\" : {\r\n                  \"name\" : \"ExternalContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"ExternalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"scope\" : \"EXTERNAL\",\r\n                  \"isWritable\" : false,\r\n                  \"itemSchema\" : {\r\n                     \"name\" : \"TestExternalContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"GlobalContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"GlobalContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"scope\" : \"GLOBAL\",\r\n                  \"isWritable\" : true,\r\n                  \"itemSchema\" : {\r\n                     \"name\" : \"TestGlobalContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy0ContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policy0ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"scope\" : \"APPLICATION\",\r\n                  \"isWritable\" : true,\r\n                  \"itemSchema\" : {\r\n                     \"name\" : \"TestPolicyContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"Policy1ContextAlbum\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"Policy1ContextAlbum\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"scope\" : \"APPLICATION\",\r\n                  \"isWritable\" : true,\r\n                  \"itemSchema\" : {\r\n                     \"name\" : \"TestPolicyContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  }\r\n               }\r\n            } ]\r\n         }\r\n      },\r\n      \"schemas\" : {\r\n         \"key\" : {\r\n            \"name\" : \"TestDatatypes\",\r\n            \"version\" : \"0.0.1\"\r\n         },\r\n         \"schemas\" : {\r\n            \"entry\" : [ {\r\n               \"key\" : {\r\n                  \"name\" : \"TestCase\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestCase\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"java.lang.Byte\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem000\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem000\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem000\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem001\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem001\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem001\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem002\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem002\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem002\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem003\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem003\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem003\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem004\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem004\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem004\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem005\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem005\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem005\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem006\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem006\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem006\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem007\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem007\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem007\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem008\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem008\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem008\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem009\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem009\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem009\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem00A\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem00A\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem00A\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem00B\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem00B\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem00B\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestContextItem00C\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestContextItem00C\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestContextItem00C\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestExternalContextItem\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestExternalContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestExternalContextItem\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestGlobalContextItem\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestGlobalContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestGlobalContextItem\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestPolicyContextItem\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestPolicyContextItem\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"org.onap.policy.apex.context.test.concepts.TestPolicyContextItem\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestSlogan\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestSlogan\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"java.lang.String\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestTemperature\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestTemperature\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"java.lang.Double\"\r\n               }\r\n            }, {\r\n               \"key\" : {\r\n                  \"name\" : \"TestTimestamp\",\r\n                  \"version\" : \"0.0.1\"\r\n               },\r\n               \"value\" : {\r\n                  \"key\" : {\r\n                     \"name\" : \"TestTimestamp\",\r\n                     \"version\" : \"0.0.1\"\r\n                  },\r\n                  \"schemaFlavour\" : \"Java\",\r\n                  \"schemaDefinition\" : \"java.lang.Long\"\r\n               }\r\n            } ]\r\n         }\r\n      }\r\n   }\r\n}",
+                "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
new file mode 100644 (file)
index 0000000..95dbf13
--- /dev/null
@@ -0,0 +1,117 @@
+{
+    "groups": [
+        {
+            "name": "defaultGroup",
+            "description": "The default group that registers all supported policy types and pdps.",
+            "pdpGroupState": "ACTIVE",
+            "properties": {},
+            "pdpSubgroups": [
+                {
+                    "pdpType": "apex",
+                    "supportedPolicyTypes": [
+                        {
+                            "name": "onap.policies.controlloop.operational.Apex",
+                            "version": "1.0.0"
+                        }
+                    ],
+                    "policies": [{
+                            "name": "onap.policies.controlloop.Operational.apex.sampledomain",
+                            "version": "1.0.0"
+                        }],
+                    "currentInstanceCount": 1,
+                    "desiredInstanceCount": 1,
+                    "properties": {},
+                    "pdpInstances": []
+                },
+                {
+                    "pdpType": "drools",
+                    "supportedPolicyTypes": [
+                        {
+                            "name": "onap.policies.controlloop.Operational",
+                            "version": "1.0.0"
+                        }
+                    ],
+                    "policies": [],
+                    "currentInstanceCount": 0,
+                    "desiredInstanceCount": 1,
+                    "properties": {},
+                    "pdpInstances": []
+                },
+                {
+                    "pdpType": "xacml",
+                    "supportedPolicyTypes": [
+                        {
+                            "name": "onap.policies.controlloop.guard.FrequencyLimiter",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.controlloop.guard.MinMax",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.controlloop.guard.Blacklist",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.controlloop.guard.coordination.FirstBlocksSecond",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.Monitoring",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.monitoring.cdap.tca.hi.lo.app",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.AffinityPolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.DistancePolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.HpaPolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.OptimizationPolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.PciPolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.QueryPolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.SubscriberPolicy",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.Vim_fit",
+                            "version": "1.0.0"
+                        },
+                        {
+                            "name": "onap.policies.optimization.VnfPolicy",
+                            "version": "1.0.0"
+                        }
+                    ],
+                    "policies": [],
+                    "currentInstanceCount": 0,
+                    "desiredInstanceCount": 1,
+                    "properties": {},
+                    "pdpInstances": []
+                }
+            ]
+        }
+    ]
+}
\ No newline at end of file
index 745f781..da7fdd8 100644 (file)
@@ -1,11 +1,7 @@
 *** Settings ***
 Documentation    The main interface for interacting with Policy. It handles low level stuff like managing the http request library and Policy required fields
-Library           eteutils/RequestsClientCert.py
-#Library          RequestsClientCert
 Library    RequestsLibrary
 Library    String
-Library    eteutils/JSONUtils.py
-#Library    JSONUtils
 Library    Collections      
 Resource   global_properties.robot
 
diff --git a/tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json b/tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json
new file mode 100644 (file)
index 0000000..1d1a4d6
--- /dev/null
@@ -0,0 +1,223 @@
+{
+    "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+    "policy_types": [
+        {
+            "onap.policies.Monitoring": {
+                "derived_from": "tosca.policies.Root",
+                "description": "a base policy type for all policies that governs monitoring provisioning"
+            }
+        },
+        {
+            "onap.policies.monitoring.cdap.tca.hi.lo.app": {
+                "derived_from": "onap.policies.Monitoring",
+                "version": "1.0.0",
+                "properties": {
+                    "tca_policy": {
+                        "type": "map",
+                        "description": "TCA Policy JSON",
+                        "entry_schema": {
+                            "type": "onap.datatypes.monitoring.tca_policy"
+                        }
+                    }
+                }
+            }
+        }
+    ],
+    "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"
+                    }
+                }
+            }
+        }
+    ]
+}
\ No newline at end of file
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
new file mode 100644 (file)
index 0000000..f79f4eb
--- /dev/null
@@ -0,0 +1,9 @@
+{
+  "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/vCPE.policy.monitoring.input.tosca.deploy.json b/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.deploy.json
new file mode 100644 (file)
index 0000000..c0d157c
--- /dev/null
@@ -0,0 +1 @@
+{"policies":[{"policy-id":"onap.restart.tca"}]}
\ No newline at end of file
diff --git a/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json b/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json
new file mode 100644 (file)
index 0000000..fac5cfa
--- /dev/null
@@ -0,0 +1,51 @@
+{
+    "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+    "topology_template": {
+        "policies": [
+            {
+                "onap.restart.tca": {
+                    "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
+                    "version": "1.0.0",
+                    "type_version": "1.0.0",
+                    "metadata": {
+                        "policy-id": "onap.restart.tca"
+                    },
+                    "properties": {
+                        "tca_policy": {
+                            "domain": "measurementsForVfScaling",
+                            "metricsPerEventName": [
+                                {
+                                    "eventName": "Measurement_vGMUX",
+                                    "controlLoopSchemaType": "VNF",
+                                    "policyScope": "DCAE",
+                                    "policyName": "DCAE.Config_tca-hi-lo",
+                                    "policyVersion": "v0.0.1",
+                                    "thresholds": [
+                                        {
+                                            "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
+                                            "version": "1.0.2",
+                                            "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
+                                            "thresholdValue": 0,
+                                            "direction": "EQUAL",
+                                            "severity": "MAJOR",
+                                            "closedLoopEventStatus": "ABATED"
+                                        },
+                                        {
+                                            "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
+                                            "version": "1.0.2",
+                                            "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
+                                            "thresholdValue": 0,
+                                            "direction": "GREATER",
+                                            "severity": "CRITICAL",
+                                            "closedLoopEventStatus": "ONSET"
+                                        }
+                                    ]
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        ]
+    }
+}
index 1a626c0..86463c3 100644 (file)
@@ -26,3 +26,110 @@ Statistics
      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
+     
+ExecuteXacmlPolicy
+     Wait Until Keyword Succeeds    2 min    5 sec    CreateMonitorPolicyType
+     Wait Until Keyword Succeeds    2 min    5 sec    CreateNewMonitorPolicy
+     Wait Until Keyword Succeeds    2 min    5 sec    DeployMonitorPolicy
+     Wait Until Keyword Succeeds    2 min    10 sec   GetDecision
+     
+*** Keywords ***
+
+CreateMonitorPolicyType
+     [Documentation]    Create Monitoring Policy Type
+     ${auth}=    Create List    healthcheck    zb!XztG34
+     ${postjson}=  Get file  ${CURDIR}/data/onap.policies.monitoring.cdap.tca.hi.lo.app.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 policy2 ${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
+
+CreateNewMonitorPolicy
+     [Documentation]    Create a new Monitoring policy
+     ${auth}=    Create List    healthcheck    zb!XztG34
+     ${postjson}=  Get file  ${CURDIR}/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.cdap.tca.hi.lo.app/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
+
+DeployMonitorPolicy
+     [Documentation]   Runs Policy PAP to deploy a policy
+     ${auth}=    Create List    healthcheck    zb!XztG34
+     ${postjson}=  Get file  ${CURDIR}/data/vCPE.policy.monitoring.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}     200
+
+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
+     
+GetDecision
+    [Documentation]    Get Decision 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
+     ${resp}=   Post Request     policy  /policy/pdpx/v1/decision  data=${postjson}   headers=${headers}
+     Log    Received response from policy ${resp.text}
+     Should Be Equal As Strings    ${resp.status_code}     200
+     
+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}     200
+     
+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
+
+     
index 6ef4f72..dfa6ab6 100644 (file)
@@ -1,7 +1,6 @@
 *** Settings ***
 Documentation     The main interface for interacting with VID. It handles low level stuff like managing the selenium request library and VID required steps
 Library           Collections
-Library           OSUtils
 Library           OperatingSystem
 Library           ExtendedSelenium2Library
 Resource          global_properties.robot
@@ -22,8 +21,6 @@ Setup Browser Firefox
     Set Global Variable    ${GLOBAL_SELENIUM_BROWSER_CAPABILITIES}    ${dc}
            
  Setup Browser Chrome
-    ${os}=   Get Normalized Os 
-    Log    Normalized OS=${os}
     ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys
     Call Method    ${chrome options}    add_argument    no-sandbox
     ${dc}   Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME  sys, selenium.webdriver
index d0fef06..516fb0d 100644 (file)
@@ -7,7 +7,6 @@ Library         RequestsLibrary
 Library                eteutils/UUID.py 
 Library                DateTime  
 Library                Collections
-Library                eteutils/OSUtils.py
 Library                eteutils/StringTemplater.py
 Library                String
 Library                XvfbRobot
@@ -231,8 +230,6 @@ Setup Browser
     
           
  Setup Browser Chrome
-    ${os}=   Get Normalized Os 
-    Log    Normalized OS=${os}
     ${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys
     Call Method    ${chrome options}    add_argument    no-sandbox
     ${dc}   Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME  sys, selenium.webdriver
index 1af2ae7..c3032aa 100644 (file)
@@ -39,11 +39,11 @@ add new VNF Change in VID GUI From SO NATIVE worfkow
     Select From List  xpath=//select[@name='workflow']  VNF In Place Software Update
 
     Wait Until Page Contains    Operations timeout    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
-    Input Text    xpath=//input[@id='so-workflow-parameter-operations_timeout']    10
-    Input Text    xpath=//input[@id='so-workflow-parameter-existing_software_version']    test
-    Input Text    xpath=//input[@id='so-workflow-parameter-new_software_version']    test
+    Input Text    xpath=//input[@id='internal-workflow-parameter-text-2']    10
+    Input Text    xpath=//input[@id='internal-workflow-parameter-text-3']    test
+    Input Text    xpath=//input[@id='internal-workflow-parameter-text-4']    test
 
     Wait Until Element Is Enabled   xpath=//button[@id='submit']  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
     Click Button    xpath=//button[@id='submit']
 
-    Wait Until Page Does Not Contain  New VNF Change  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
\ No newline at end of file
+    Wait Until Page Does Not Contain  New VNF Change  ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
index 01fa92b..6bd0c13 100644 (file)
@@ -1,7 +1,7 @@
 version: '3'
 services:
     vid-server:
-        image: nexus3.onap.org:10001/onap/vid:4.0-STAGING-latest
+        image: nexus3.onap.org:10001/onap/vid:4.3-STAGING-latest
         environment:
         - VID_MYSQL_DBNAME=vid_openecomp_epsdk
         - VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
index 9f3c10a..ee55f29 100644 (file)
                   "description": "Activity to Complete the BPMN Flow"
                 }
               ],
-              "workflowInputParameters": [{
-                "label": "Cloud Owner",
-                "inputType": "text",
-                "required": true,
-                "validation": [{
-                  "maxLength": "7",
-                  "allowableChars": "[a-zA-Z0-9]*"
-                }],
-                "soFieldName": "cloudOwner",
-                "soPayloadLocation": "cloudConfiguration"
-              },
-                {
-                  "label": "Cloud Region ID",
-                  "inputType": "text",
-                  "required": true,
-                  "validation": [{
-                    "maxLength": "7",
-                    "allowableChars": "[a-zA-Z0-9]*"
-                  }],
-                  "soFieldName": "lcpCloudRegionId",
-                  "soPayloadLocation": "cloudConfiguration"
-                },
-                {
-                  "label": "Tenant/Project ID",
-                  "inputType": "text",
-                  "required": true,
-                  "validation": [{
-                    "maxLength": "36",
-                    "allowableChars": "[a-zA-Z0-9]*"
-                  }],
-                  "soFieldName": "tenantId",
-                  "soPayloadLocation": "cloudConfiguration"
-                },
-                {
-                  "label": "Operations timeout",
-                  "inputType": "text",
-                  "required": true,
-                  "description": "some description",
-                  "validation": [{
-                    "maxLength": "50",
-                    "allowableChars": "[0-9]*"
-                  }],
-                  "soFieldName": "operations_timeout",
-                  "soPayloadLocation": "userParams"
-                },
-                {
-                  "label": "Existing software version",
-                  "inputType": "text",
-                  "required": true,
-                  "validation": [{
-                    "maxLength": "50",
-                    "allowableChars": "[a-zA-Z0-9]*"
-                  }],
-                  "soFieldName": "existing_software_version",
-                  "soPayloadLocation": "userParams"
-                },
-                {
-                  "label": "New software version",
-                  "inputType": "text",
-                  "required": true,
-                  "soFieldName": "new_software_version",
-                  "soPayloadLocation": "userParams"
-                }
+              "workflowInputParameters": [
               ]
             }
           }]
       }
     }
   ]
-}
\ No newline at end of file
+}