12:47:08 Triggered by Gerrit: https://gerrit.onap.org/r/c/policy/api/+/139346 12:47:08 Running as SYSTEM 12:47:08 [EnvInject] - Loading node environment variables. 12:47:08 Building remotely on prd-ubuntu1804-docker-8c-8g-82163 (ubuntu1804-docker-8c-8g) in workspace /w/workspace/policy-api-master-merge-java 12:47:08 [ssh-agent] Looking for ssh-agent implementation... 12:47:08 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:47:08 $ ssh-agent 12:47:08 SSH_AUTH_SOCK=/tmp/ssh-e3jT8LOvO4VQ/agent.2110 12:47:08 SSH_AGENT_PID=2112 12:47:08 [ssh-agent] Started. 12:47:08 Running ssh-add (command line suppressed) 12:47:08 Identity added: /w/workspace/policy-api-master-merge-java@tmp/private_key_7552626639352803153.key (/w/workspace/policy-api-master-merge-java@tmp/private_key_7552626639352803153.key) 12:47:08 [ssh-agent] Using credentials onap-jobbuiler (Gerrit user) 12:47:08 The recommended git tool is: NONE 12:47:10 using credential onap-jenkins-ssh 12:47:10 Wiping out workspace first. 12:47:10 Cloning the remote Git repository 12:47:10 Cloning repository git://cloud.onap.org/mirror/policy/api.git 12:47:10 > git init /w/workspace/policy-api-master-merge-java # timeout=10 12:47:10 Fetching upstream changes from git://cloud.onap.org/mirror/policy/api.git 12:47:10 > git --version # timeout=10 12:47:10 > git --version # 'git version 2.17.1' 12:47:10 using GIT_SSH to set credentials Gerrit user 12:47:10 Verifying host key using manually-configured host key entries 12:47:10 > git fetch --tags --progress -- git://cloud.onap.org/mirror/policy/api.git +refs/heads/*:refs/remotes/origin/* # timeout=30 12:47:10 > git config remote.origin.url git://cloud.onap.org/mirror/policy/api.git # timeout=10 12:47:10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:47:11 Avoid second fetch 12:47:11 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 12:47:11 Checking out Revision 0fc9d4058c9e9b580f70d3595c5ea73d3130654a (refs/remotes/origin/master) 12:47:11 > git config core.sparsecheckout # timeout=10 12:47:11 > git checkout -f 0fc9d4058c9e9b580f70d3595c5ea73d3130654a # timeout=30 12:47:11 Commit message: "Fix references and organize dependencies in policy-api after splitting policy-endpoints and message-bus from common" 12:47:11 > git rev-list --no-walk cb69ae09a1ac85beabd52e125320d8427def09b1 # timeout=10 12:47:14 Run condition [Regular expression match] enabling prebuild for step [Execute shell] 12:47:14 provisioning config files... 12:47:14 copy managed file [npmrc] to file:/home/jenkins/.npmrc 12:47:14 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 12:47:14 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins2415362254491237716.sh 12:47:14 ---> python-tools-install.sh 12:47:14 Setup pyenv: 12:47:14 * system (set by /opt/pyenv/version) 12:47:14 * 3.8.13 (set by /opt/pyenv/version) 12:47:14 * 3.9.13 (set by /opt/pyenv/version) 12:47:14 * 3.10.6 (set by /opt/pyenv/version) 12:47:19 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-dXdj 12:47:19 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 12:47:21 lf-activate-venv(): INFO: Installing: lftools 12:47:50 lf-activate-venv(): INFO: Adding /tmp/venv-dXdj/bin to PATH 12:47:50 Generating Requirements File 12:48:09 Python 3.10.6 12:48:10 pip 24.3.1 from /tmp/venv-dXdj/lib/python3.10/site-packages/pip (python 3.10) 12:48:10 appdirs==1.4.4 12:48:10 argcomplete==3.5.1 12:48:10 aspy.yaml==1.3.0 12:48:10 attrs==24.2.0 12:48:10 autopage==0.5.2 12:48:10 beautifulsoup4==4.12.3 12:48:10 boto3==1.35.55 12:48:10 botocore==1.35.55 12:48:10 bs4==0.0.2 12:48:10 cachetools==5.5.0 12:48:10 certifi==2024.8.30 12:48:10 cffi==1.17.1 12:48:10 cfgv==3.4.0 12:48:10 chardet==5.2.0 12:48:10 charset-normalizer==3.4.0 12:48:10 click==8.1.7 12:48:10 cliff==4.7.0 12:48:10 cmd2==2.5.4 12:48:10 cryptography==3.3.2 12:48:10 debtcollector==3.0.0 12:48:10 decorator==5.1.1 12:48:10 defusedxml==0.7.1 12:48:10 Deprecated==1.2.14 12:48:10 distlib==0.3.9 12:48:10 dnspython==2.7.0 12:48:10 docker==4.2.2 12:48:10 dogpile.cache==1.3.3 12:48:10 durationpy==0.9 12:48:10 email_validator==2.2.0 12:48:10 filelock==3.16.1 12:48:10 future==1.0.0 12:48:10 gitdb==4.0.11 12:48:10 GitPython==3.1.43 12:48:10 google-auth==2.36.0 12:48:10 httplib2==0.22.0 12:48:10 identify==2.6.1 12:48:10 idna==3.10 12:48:10 importlib-resources==1.5.0 12:48:10 iso8601==2.1.0 12:48:10 Jinja2==3.1.4 12:48:10 jmespath==1.0.1 12:48:10 jsonpatch==1.33 12:48:10 jsonpointer==3.0.0 12:48:10 jsonschema==4.23.0 12:48:10 jsonschema-specifications==2024.10.1 12:48:10 keystoneauth1==5.8.0 12:48:10 kubernetes==31.0.0 12:48:10 lftools==0.37.10 12:48:10 lxml==5.3.0 12:48:10 MarkupSafe==3.0.2 12:48:10 msgpack==1.1.0 12:48:10 multi_key_dict==2.0.3 12:48:10 munch==4.0.0 12:48:10 netaddr==1.3.0 12:48:10 netifaces==0.11.0 12:48:10 niet==1.4.2 12:48:10 nodeenv==1.9.1 12:48:10 oauth2client==4.1.3 12:48:10 oauthlib==3.2.2 12:48:10 openstacksdk==4.1.0 12:48:10 os-client-config==2.1.0 12:48:10 os-service-types==1.7.0 12:48:10 osc-lib==3.1.0 12:48:10 oslo.config==9.6.0 12:48:10 oslo.context==5.6.0 12:48:10 oslo.i18n==6.4.0 12:48:10 oslo.log==6.1.2 12:48:10 oslo.serialization==5.5.0 12:48:10 oslo.utils==7.4.0 12:48:10 packaging==24.1 12:48:10 pbr==6.1.0 12:48:10 platformdirs==4.3.6 12:48:10 prettytable==3.12.0 12:48:10 psutil==6.1.0 12:48:10 pyasn1==0.6.1 12:48:10 pyasn1_modules==0.4.1 12:48:10 pycparser==2.22 12:48:10 pygerrit2==2.0.15 12:48:10 PyGithub==2.5.0 12:48:10 PyJWT==2.9.0 12:48:10 PyNaCl==1.5.0 12:48:10 pyparsing==2.4.7 12:48:10 pyperclip==1.9.0 12:48:10 pyrsistent==0.20.0 12:48:10 python-cinderclient==9.6.0 12:48:10 python-dateutil==2.9.0.post0 12:48:10 python-heatclient==4.0.0 12:48:10 python-jenkins==1.8.2 12:48:10 python-keystoneclient==5.5.0 12:48:10 python-magnumclient==4.7.0 12:48:10 python-openstackclient==7.2.1 12:48:10 python-swiftclient==4.6.0 12:48:10 PyYAML==6.0.2 12:48:10 referencing==0.35.1 12:48:10 requests==2.32.3 12:48:10 requests-oauthlib==2.0.0 12:48:10 requestsexceptions==1.4.0 12:48:10 rfc3986==2.0.0 12:48:10 rpds-py==0.21.0 12:48:10 rsa==4.9 12:48:10 ruamel.yaml==0.18.6 12:48:10 ruamel.yaml.clib==0.2.12 12:48:10 s3transfer==0.10.3 12:48:10 simplejson==3.19.3 12:48:10 six==1.16.0 12:48:10 smmap==5.0.1 12:48:10 soupsieve==2.6 12:48:10 stevedore==5.3.0 12:48:10 tabulate==0.9.0 12:48:10 toml==0.10.2 12:48:10 tomlkit==0.13.2 12:48:10 tqdm==4.67.0 12:48:10 typing_extensions==4.12.2 12:48:10 tzdata==2024.2 12:48:10 urllib3==1.26.20 12:48:10 virtualenv==20.27.1 12:48:10 wcwidth==0.2.13 12:48:10 websocket-client==1.8.0 12:48:10 wrapt==1.16.0 12:48:10 xdg==6.0.0 12:48:10 xmltodict==0.14.2 12:48:10 yq==3.4.3 12:48:10 [EnvInject] - Injecting environment variables from a build step. 12:48:10 [EnvInject] - Injecting as environment variables the properties content 12:48:10 SET_JDK_VERSION=openjdk17 12:48:10 GIT_URL="git://cloud.onap.org/mirror" 12:48:10 12:48:10 [EnvInject] - Variables injected successfully. 12:48:10 [policy-api-master-merge-java] $ /bin/sh /tmp/jenkins15374645954402033377.sh 12:48:10 ---> update-java-alternatives.sh 12:48:10 ---> Updating Java version 12:48:10 ---> Ubuntu/Debian system detected 12:48:10 update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode 12:48:10 update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode 12:48:10 update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode 12:48:11 openjdk version "17.0.4" 2022-07-19 12:48:11 OpenJDK Runtime Environment (build 17.0.4+8-Ubuntu-118.04) 12:48:11 OpenJDK 64-Bit Server VM (build 17.0.4+8-Ubuntu-118.04, mixed mode, sharing) 12:48:11 JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 12:48:11 [EnvInject] - Injecting environment variables from a build step. 12:48:11 [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' 12:48:11 [EnvInject] - Variables injected successfully. 12:48:11 provisioning config files... 12:48:11 copy managed file [global-settings] to file:/w/workspace/policy-api-master-merge-java@tmp/config8272472145008633398tmp 12:48:11 copy managed file [policy-api-settings] to file:/w/workspace/policy-api-master-merge-java@tmp/config16577394656359108361tmp 12:48:11 Regular expression run condition: Expression=[.*(amd64|arm64).*], Label=[policy-api] 12:48:11 Run condition [Regular expression match] preventing perform for step [Execute shell] 12:48:11 Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip to /w/tools/hudson.tasks.Maven_MavenInstallation/mvn36 on prd-ubuntu1804-docker-8c-8g-82163 12:48:12 using settings config with name policy-api-settings 12:48:12 Replacing all maven server entries not found in credentials list is true 12:48:12 using global settings config with name global-settings 12:48:12 Replacing all maven server entries not found in credentials list is true 12:48:12 [policy-api-master-merge-java] $ /w/tools/hudson.tasks.Maven_MavenInstallation/mvn36/bin/mvn -s /tmp/settings7859080157081580606.xml -gs /tmp/global-settings14381841242884192945.xml -DGERRIT_BRANCH=master -DGERRIT_PATCHSET_REVISION=0fc9d4058c9e9b580f70d3595c5ea73d3130654a -DGERRIT_HOST=gerrit.onap.org -DMVN=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn36/bin/mvn -DGERRIT_CHANGE_OWNER_EMAIL=adheli.tavares@est.tech "-DGERRIT_EVENT_ACCOUNT_NAME=Ramesh Murugan Iyer" -DGERRIT_CHANGE_URL=https://gerrit.onap.org/r/c/policy/api/+/139346 -DGERRIT_PATCHSET_UPLOADER_EMAIL=adheli.tavares@est.tech "-DARCHIVE_ARTIFACTS= **/target/surefire-reports/*-output.txt" -DGERRIT_EVENT_TYPE=change-merged -DSTACK_NAME=$JOB_NAME-$BUILD_NUMBER -DGERRIT_PROJECT=policy/api -DGERRIT_CHANGE_NUMBER=139346 -DGERRIT_SCHEME=ssh '-DGERRIT_PATCHSET_UPLOADER=\"Adheli Tavares\" ' -DGERRIT_PORT=29418 -DGERRIT_CHANGE_PRIVATE_STATE=false -DGERRIT_REFSPEC=refs/changes/46/139346/1 -DGERRIT_NEWREV=0fc9d4058c9e9b580f70d3595c5ea73d3130654a "-DGERRIT_PATCHSET_UPLOADER_NAME=Adheli Tavares" '-DGERRIT_CHANGE_OWNER=\"Adheli Tavares\" ' -DPROJECT=policy/api -DGERRIT_HASHTAGS= -DGERRIT_CHANGE_COMMIT_MESSAGE=Rml4IHJlZmVyZW5jZXMgYW5kIG9yZ2FuaXplIGRlcGVuZGVuY2llcyBpbiBwb2xpY3ktYXBpIGFmdGVyCnNwbGl0dGluZyBwb2xpY3ktZW5kcG9pbnRzIGFuZCBtZXNzYWdlLWJ1cyBmcm9tIGNvbW1vbgoKSXNzdWUtSUQ6IFBPTElDWS01MTMxCkNoYW5nZS1JZDogSTNmMjY2MmZhODYyMzZlYTY4ZWI2ZDJiYzEyOTczODhlMjc0YTAxOGQKU2lnbmVkLW9mZi1ieTogYWRoZWxpLnRhdmFyZXMgPGFkaGVsaS50YXZhcmVzQGVzdC50ZWNoPgo= -DGERRIT_NAME=Primary -DGERRIT_TOPIC= "-DGERRIT_CHANGE_SUBJECT=Fix references and organize dependencies in policy-api after splitting policy-endpoints and message-bus from common" '-DGERRIT_EVENT_ACCOUNT=\"Ramesh Murugan Iyer\" ' -DGERRIT_CHANGE_WIP_STATE=false -DGERRIT_CHANGE_ID=I3f2662fa86236ea68eb6d2bc1297388e274a018d -DGERRIT_EVENT_HASH=-388385275 -DGERRIT_VERSION=3.7.2 -DGERRIT_EVENT_ACCOUNT_EMAIL=ramesh.murugan.iyer@est.tech -DGERRIT_PATCHSET_NUMBER=1 "-DGERRIT_CHANGE_OWNER_NAME=Adheli Tavares" clean deploy -B -P docker -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn 12:48:13 [INFO] Scanning for projects... 12:48:14 [INFO] ------------------------------------------------------------------------ 12:48:14 [INFO] Reactor Build Order: 12:48:14 [INFO] 12:48:14 [INFO] policy-api [pom] 12:48:14 [INFO] api-main [jar] 12:48:14 [INFO] api-packages [pom] 12:48:14 [INFO] policy-api-tarball [jar] 12:48:14 [INFO] policy-api-docker [pom] 12:48:14 [INFO] api-testsuites [pom] 12:48:14 [INFO] api-stability [jar] 12:48:14 [INFO] api-performance [jar] 12:48:14 [INFO] 12:48:14 [INFO] -------------------< org.onap.policy.api:policy-api >------------------- 12:48:14 [INFO] Building policy-api 4.0.1-SNAPSHOT [1/8] 12:48:14 [INFO] --------------------------------[ pom ]--------------------------------- 12:48:15 [INFO] 12:48:15 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ policy-api --- 12:48:15 [INFO] 12:48:15 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ policy-api --- 12:48:15 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:48:15 --add-opens java.base/java.util=ALL-UNNAMED 12:48:15 --add-opens java.sql/java.sql=ALL-UNNAMED 12:48:15 [INFO] 12:48:15 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ policy-api --- 12:48:26 [INFO] Starting audit... 12:48:26 Audit done. 12:48:26 [INFO] You have 0 Checkstyle violations. 12:48:26 [INFO] 12:48:26 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ policy-api --- 12:48:27 [INFO] Starting audit... 12:48:27 Audit done. 12:48:27 [INFO] You have 0 Checkstyle violations. 12:48:27 [INFO] 12:48:27 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ policy-api --- 12:48:27 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:48:27 [INFO] 12:48:27 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ policy-api --- 12:48:32 [INFO] No tests to run. 12:48:32 [INFO] 12:48:32 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ policy-api --- 12:48:32 [INFO] Analyzed bundle 'policy-api' with 0 classes 12:48:32 [INFO] 12:48:32 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ policy-api --- 12:48:32 [INFO] 12:48:32 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ policy-api --- 12:48:33 [INFO] Installing /w/workspace/policy-api-master-merge-java/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/policy-api/4.0.1-SNAPSHOT/policy-api-4.0.1-SNAPSHOT.pom 12:48:33 [INFO] 12:48:33 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ policy-api --- 12:48:34 [INFO] 12:48:34 [INFO] --------------------< org.onap.policy.api:api-main >-------------------- 12:48:34 [INFO] Building api-main 4.0.1-SNAPSHOT [2/8] 12:48:34 [INFO] --------------------------------[ jar ]--------------------------------- 12:48:41 [INFO] 12:48:41 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ api-main --- 12:48:41 [INFO] 12:48:41 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ api-main --- 12:48:41 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/main/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:48:41 --add-opens java.base/java.util=ALL-UNNAMED 12:48:41 --add-opens java.sql/java.sql=ALL-UNNAMED 12:48:41 [INFO] 12:48:41 [INFO] --- swagger-codegen-maven-plugin:3.0.52:generate (code-gen) @ api-main --- 12:48:43 [WARNING] Output directory does not exist, or is inaccessible. No file (.swagger-codegen-ignore) will be evaluated. 12:48:43 [INFO] Set base package to invoker package (org.onap.policy.api.main.rest) 12:48:44 [INFO] writing file /w/workspace/policy-api-master-merge-java/main/target/generated-sources/swagger/src/gen/java/org/onap/policy/api/main/rest/genapi/PolicyDesignApi.java 12:48:45 [INFO] writing file /w/workspace/policy-api-master-merge-java/main/target/generated-sources/swagger/src/gen/java/org/onap/policy/api/main/rest/genapi/ToscaNodeTemplateDesignApi.java 12:48:45 [INFO] 12:48:45 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ api-main --- 12:48:45 [INFO] Starting audit... 12:48:45 Audit done. 12:48:45 [INFO] You have 0 Checkstyle violations. 12:48:45 [INFO] 12:48:45 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ api-main --- 12:48:46 [INFO] Starting audit... 12:48:46 Audit done. 12:48:46 [INFO] You have 0 Checkstyle violations. 12:48:46 [INFO] 12:48:46 [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ api-main --- 12:48:46 [INFO] Copying 1 resource from src/main/resources to target/classes 12:48:46 [INFO] Copying 4 resources from src/main/resources to target/classes 12:48:46 [INFO] 12:48:46 [INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ api-main --- 12:48:46 [INFO] Changes detected - recompiling the module! :dependency 12:48:46 [INFO] Compiling 30 source files with javac [debug release 17] to target/classes 12:48:48 [INFO] 12:48:48 [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ api-main --- 12:48:48 [INFO] Copying 21 resources from src/test/resources to target/test-classes 12:48:48 [INFO] 12:48:48 [INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ api-main --- 12:48:48 [INFO] Changes detected - recompiling the module! :dependency 12:48:48 [INFO] Compiling 19 source files with javac [debug release 17] to target/test-classes 12:48:50 [INFO] 12:48:50 [INFO] --- maven-surefire-plugin:3.1.2:test (default-test) @ api-main --- 12:48:50 [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider 12:48:50 [INFO] 12:48:50 [INFO] ------------------------------------------------------- 12:48:50 [INFO] T E S T S 12:48:50 [INFO] ------------------------------------------------------- 12:48:51 [INFO] Running org.onap.policy.api.contract.ApiContractTest 12:48:52 12:48:52 . ____ _ __ _ _ 12:48:52 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:48:52 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:48:52 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:48:52 ' |____| .__|_| |_|_| |_\__, | / / / / 12:48:52 =========|_|==============|___/=/_/_/_/ 12:48:52 12:48:52 :: Spring Boot :: (v3.3.3) 12:48:52 12:48:52 2024-11-07T12:48:52.933Z INFO 2910 --- [policy-api-stub] [ main] o.o.policy.api.contract.ApiContractTest : Starting ApiContractTest using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:48:52 2024-11-07T12:48:52.938Z INFO 2910 --- [policy-api-stub] [ main] o.o.policy.api.contract.ApiContractTest : The following 2 profiles are active: "test", "stub" 12:48:54 2024-11-07T12:48:54.384Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:48:54 2024-11-07T12:48:54.592Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 198 ms. Found 6 JPA repository interfaces. 12:48:55 2024-11-07T12:48:55.756Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) 12:48:55 2024-11-07T12:48:55.778Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 12:48:55 2024-11-07T12:48:55.779Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28] 12:48:55 2024-11-07T12:48:55.855Z INFO 2910 --- [policy-api-stub] [ main] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring embedded WebApplicationContext 12:48:55 2024-11-07T12:48:55.856Z INFO 2910 --- [policy-api-stub] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2895 ms 12:48:56 2024-11-07T12:48:56.286Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:48:56 2024-11-07T12:48:56.362Z INFO 2910 --- [policy-api-stub] [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.5.2.Final 12:48:56 2024-11-07T12:48:56.406Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:48:56 2024-11-07T12:48:56.825Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:48:56 2024-11-07T12:48:56.864Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 12:48:57 2024-11-07T12:48:57.252Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:testdb user=POLICY_USER 12:48:57 2024-11-07T12:48:57.255Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 12:48:59 2024-11-07T12:48:59.527Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:48:59 2024-11-07T12:48:59.813Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:00 2024-11-07T12:49:00.595Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:01 2024-11-07T12:49:01.327Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:02 2024-11-07T12:49:02.442Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:03 2024-11-07T12:49:03.452Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:03 2024-11-07T12:49:03.679Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 33765 (http) with context path '/policy/api/v1' 12:49:03 2024-11-07T12:49:03.703Z INFO 2910 --- [policy-api-stub] [ main] o.o.policy.api.contract.ApiContractTest : Started ApiContractTest in 11.348 seconds (process running for 13.092) 12:49:04 OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended 12:49:04 2024-11-07T12:49:04.959Z INFO 2910 --- [policy-api-stub] [o-auto-1-exec-1] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring DispatcherServlet 'dispatcherServlet' 12:49:04 2024-11-07T12:49:04.959Z INFO 2910 --- [policy-api-stub] [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 12:49:04 2024-11-07T12:49:04.961Z INFO 2910 --- [policy-api-stub] [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms 12:49:07 2024-11-07T12:49:07.626Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:07 2024-11-07T12:49:07.660Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 12:49:07 2024-11-07T12:49:07.666Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 12:49:07 [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.96 s -- in org.onap.policy.api.contract.ApiContractTest 12:49:07 [INFO] Running org.onap.policy.api.main.rest.provider.healthcheck.TestHealthCheckProvider 12:49:08 2024-11-07T12:49:08.150Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.p.h.HealthCheckProvider : Api to database connection check failed. Details: 12:49:08 12:49:08 org.onap.policy.api.main.exception.PolicyApiRuntimeException: Error 12:49:08 at org.onap.policy.api.main.service.ToscaServiceTemplateService.getDefaultJpaToscaServiceTemplate(ToscaServiceTemplateService.java:572) ~[classes/:na] 12:49:08 at org.onap.policy.api.main.rest.provider.healthcheck.HealthCheckProvider.verifyApiDatabase(HealthCheckProvider.java:75) ~[classes/:na] 12:49:08 at org.onap.policy.api.main.rest.provider.healthcheck.HealthCheckProvider.performHealthCheck(HealthCheckProvider.java:59) ~[classes/:na] 12:49:08 at org.onap.policy.api.main.rest.provider.healthcheck.TestHealthCheckProvider.performHealthCheck_NotHealthy(TestHealthCheckProvider.java:73) ~[test-classes/:na] 12:49:08 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] 12:49:08 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] 12:49:08 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] 12:49:08 at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na] 12:49:08 at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728) ~[junit-platform-commons-1.10.2.jar:1.10.2] 12:49:08 at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ~[na:na] 12:49:08 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ~[na:na] 12:49:08 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:08 at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:08 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:08 12:49:08 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.524 s -- in org.onap.policy.api.main.rest.provider.healthcheck.TestHealthCheckProvider 12:49:08 [INFO] Running org.onap.policy.api.main.rest.TestApiRestController 12:49:08 2024-11-07T12:49:08.256Z INFO 2910 --- [policy-api-stub] [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [org.onap.policy.api.main.rest.TestApiRestController]: TestApiRestController does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 12:49:08 2024-11-07T12:49:08.329Z INFO 2910 --- [policy-api-stub] [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration org.onap.policy.api.main.PolicyApiApplication for test class org.onap.policy.api.main.rest.TestApiRestController 12:49:08 12:49:08 . ____ _ __ _ _ 12:49:08 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:08 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:08 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:08 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:08 =========|_|==============|___/=/_/_/_/ 12:49:08 12:49:08 :: Spring Boot :: (v3.3.3) 12:49:08 12:49:08 2024-11-07T12:49:08.463Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.TestApiRestController : Starting TestApiRestController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:08 2024-11-07T12:49:08.464Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.TestApiRestController : The following 2 profiles are active: "default", "test-mvc" 12:49:09 2024-11-07T12:49:09.041Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:09 2024-11-07T12:49:09.102Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.102Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.103Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.135Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.TestApiRestController : Started TestApiRestController in 0.786 seconds (process running for 18.524) 12:49:09 2024-11-07T12:49:09.159Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.159Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.160Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.198Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policies/ -- 12:49:09 2024-11-07T12:49:09.287Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.287Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.288Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.293Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : DELETE /policytypes/wrong/versions/wrong 12:49:09 2024-11-07T12:49:09.302Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.302Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.303Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.310Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : /policytypes/wrong/versions/wrong/policies/wrong 12:49:09 2024-11-07T12:49:09.318Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.318Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.319Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.330Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.330Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.330Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.355Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.c.u.services.OrderedServiceImpl : ***** OrderedServiceImpl implementers: 12:49:09 [] 12:49:09 2024-11-07T12:49:09.357Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/policytypes] 12:49:09 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.Test":{"properties":{"scope":{"type":"list","description":"Scope for the policy - could be for a specific release.","required":true,"entry_schema":{"type":"string"},"metadata":{"matchable":"true"}},"geography":{"type":"list","description":"One or more geographic regions","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["US","International"]}]},"metadata":{"matchable":"true"}},"identity":{"type":"string","description":"Used internally for identification","required":true}},"name":"NULL","version":"1.0.0","derived_from":"tosca.policies.Root","description":"The base policy type for all policies that govern optimization"}},"name":"NULL","version":"0.0.0"} 12:49:09 2024-11-07T12:49:09.358Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : POST /policytypes 12:49:09 2024-11-07T12:49:09.367Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.367Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.368Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.374Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/policytypes] 12:49:09 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.Test":{"properties":{"scope":{"type":"list","description":"Scope for the policy - could be for a specific release.","required":true,"entry_schema":{"type":"string"},"metadata":{"matchable":"true"}},"geography":{"type":"list","description":"One or more geographic regions","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["US","International"]}]},"metadata":{"matchable":"true"}},"identity":{"type":"string","description":"Used internally for identification","required":true}},"name":"NULL","version":"1.0.0","derived_from":"tosca.policies.Root","description":"The base policy type for all policies that govern optimization"}},"name":"NULL","version":"0.0.0"} 12:49:09 2024-11-07T12:49:09.405Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.405Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.406Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.414Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong/versions/wrong/policies/wrong/versions/wrong 12:49:09 2024-11-07T12:49:09.424Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.425Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.426Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.431Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong 12:49:09 2024-11-07T12:49:09.440Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.440Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.441Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.448Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong/versions/wrong/policies 12:49:09 2024-11-07T12:49:09.455Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.456Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.456Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.461Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong/versions/latest 12:49:09 2024-11-07T12:49:09.467Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.467Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.468Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.472Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : DELETE /policies/wrong/versions/wrong 12:49:09 2024-11-07T12:49:09.478Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.478Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.478Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.485Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.485Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.486Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.491Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong/versions/wrong 12:49:09 2024-11-07T12:49:09.497Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.497Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.498Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.505Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.505Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.505Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.514Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.514Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.515Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.517Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong/versions/wrong/policies/wrong/versions/latest 12:49:09 2024-11-07T12:49:09.523Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.523Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.524Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.528Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policies/wrong/versions/wrong 12:49:09 2024-11-07T12:49:09.534Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.534Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.534Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.536Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : DELETE /policytypes/wrong/versions/wrong/policies/wrong/versions/wrong 12:49:09 2024-11-07T12:49:09.542Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.542Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.542Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.545Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policytypes 12:49:09 2024-11-07T12:49:09.550Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.550Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.551Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.558Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/policytypes/somePolicyType/versions/somePolicyTypeVersion/policies] 12:49:09 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.vfirewall.tca":{"type":"onap.policies.monitoring.tcagen2","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"resource=vLoadBalancer;type=configuration","policyName":"onap.vfirewall.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.vfirewall.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:09 2024-11-07T12:49:09.562Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/policytypes/wrong/versions/wrong/policies] 12:49:09 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.vfirewall.tca":{"type":"onap.policies.monitoring.tcagen2","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"resource=vLoadBalancer;type=configuration","policyName":"onap.vfirewall.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.vfirewall.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:09 2024-11-07T12:49:09.563Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : POST /policytypes/wrong/versions/wrong/policies 12:49:09 2024-11-07T12:49:09.568Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.569Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.569Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.574Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/policies] 12:49:09 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.vfirewall.tca":{"type":"onap.policies.monitoring.tcagen2","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"resource=vLoadBalancer;type=configuration","policyName":"onap.vfirewall.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.vfirewall.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:09 2024-11-07T12:49:09.578Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/policies] 12:49:09 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.vfirewall.tca":{"type":"onap.policies.monitoring.tcagen2","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"resource=vLoadBalancer;type=configuration","policyName":"onap.vfirewall.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.vfirewall.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:09 2024-11-07T12:49:09.579Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : POST /policies 12:49:09 2024-11-07T12:49:09.585Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.585Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.586Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:09 2024-11-07T12:49:09.601Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:09 2024-11-07T12:49:09.601Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:09 2024-11-07T12:49:09.601Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:09 2024-11-07T12:49:09.604Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /policies/ -- 12:49:09 [INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.376 s -- in org.onap.policy.api.main.rest.TestApiRestController 12:49:09 [INFO] Running org.onap.policy.api.main.rest.TestCommonRestController 12:49:09 2024-11-07T12:49:09.926Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : cannot convert java.lang.String to JSON 12:49:09 12:49:09 org.onap.policy.common.utils.coder.CoderException: fail 12:49:09 at org.onap.policy.common.utils.coder.StandardCoder.encode(StandardCoder.java:125) ~[utils-3.0.1-SNAPSHOT.jar:na] 12:49:09 at org.onap.policy.api.main.rest.CommonRestController.toJson(CommonRestController.java:111) ~[classes/:na] 12:49:09 at org.onap.policy.api.main.rest.TestCommonRestController.testToJsonNull(TestCommonRestController.java:62) ~[test-classes/:na] 12:49:09 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] 12:49:09 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] 12:49:09 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] 12:49:09 at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na] 12:49:09 at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728) ~[junit-platform-commons-1.10.2.jar:1.10.2] 12:49:09 at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) ~[junit-jupiter-engine-5.10.2.jar:5.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ~[na:na] 12:49:09 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ~[na:na] 12:49:09 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) ~[junit-platform-engine-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) ~[junit-platform-launcher-1.10.2.jar:1.10.2] 12:49:09 at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122) ~[surefire-junit-platform-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:09 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) ~[surefire-booter-3.1.2.jar:3.1.2] 12:49:09 12:49:09 [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.317 s -- in org.onap.policy.api.main.rest.TestCommonRestController 12:49:09 [INFO] Running org.onap.policy.api.main.rest.TestNodeTemplateController 12:49:10 2024-11-07T12:49:09.953Z INFO 2910 --- [policy-api-stub] [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [org.onap.policy.api.main.rest.TestNodeTemplateController]: TestNodeTemplateController does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 12:49:10 2024-11-07T12:49:09.971Z INFO 2910 --- [policy-api-stub] [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration org.onap.policy.api.main.PolicyApiApplication for test class org.onap.policy.api.main.rest.TestNodeTemplateController 12:49:10 12:49:10 . ____ _ __ _ _ 12:49:10 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:10 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:10 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:10 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:10 =========|_|==============|___/=/_/_/_/ 12:49:10 12:49:10 :: Spring Boot :: (v3.3.3) 12:49:10 12:49:10 2024-11-07T12:49:10.020Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:10 2024-11-07T12:49:10.020Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:10 2024-11-07T12:49:10.280Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:10 2024-11-07T12:49:10.293Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:10 2024-11-07T12:49:10.294Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:10 2024-11-07T12:49:10.294Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:10 2024-11-07T12:49:10.302Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.327 seconds (process running for 19.691) 12:49:10 2024-11-07T12:49:10.308Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:10 2024-11-07T12:49:10.308Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:10 2024-11-07T12:49:10.308Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:10 2024-11-07T12:49:10.334Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/nodetemplates] 12:49:10 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:10 2024-11-07T12:49:10.335Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : POST /nodetemplates 12:49:10 12:49:10 . ____ _ __ _ _ 12:49:10 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:10 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:10 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:10 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:10 =========|_|==============|___/=/_/_/_/ 12:49:10 12:49:10 :: Spring Boot :: (v3.3.3) 12:49:10 12:49:10 2024-11-07T12:49:10.389Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:10 2024-11-07T12:49:10.389Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:10 2024-11-07T12:49:10.588Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:10 2024-11-07T12:49:10.605Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:10 2024-11-07T12:49:10.606Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:10 2024-11-07T12:49:10.606Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:10 2024-11-07T12:49:10.613Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.266 seconds (process running for 20.002) 12:49:10 2024-11-07T12:49:10.619Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:10 2024-11-07T12:49:10.619Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:10 2024-11-07T12:49:10.620Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:10 2024-11-07T12:49:10.625Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /nodetemplates/nodeName/versions/nodeVersion 12:49:10 12:49:10 . ____ _ __ _ _ 12:49:10 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:10 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:10 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:10 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:10 =========|_|==============|___/=/_/_/_/ 12:49:10 12:49:10 :: Spring Boot :: (v3.3.3) 12:49:10 12:49:10 2024-11-07T12:49:10.681Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:10 2024-11-07T12:49:10.682Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:10 2024-11-07T12:49:10.869Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:10 2024-11-07T12:49:10.880Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:10 2024-11-07T12:49:10.881Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:10 2024-11-07T12:49:10.881Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:10 2024-11-07T12:49:10.886Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.251 seconds (process running for 20.275) 12:49:10 2024-11-07T12:49:10.893Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:10 2024-11-07T12:49:10.893Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:10 2024-11-07T12:49:10.894Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:10 2024-11-07T12:49:10.909Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/nodetemplates] 12:49:10 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:11 12:49:11 . ____ _ __ _ _ 12:49:11 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:11 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:11 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:11 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:11 =========|_|==============|___/=/_/_/_/ 12:49:11 12:49:11 :: Spring Boot :: (v3.3.3) 12:49:11 12:49:11 2024-11-07T12:49:10.978Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:11 2024-11-07T12:49:10.978Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:11 2024-11-07T12:49:11.188Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:11 2024-11-07T12:49:11.199Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.200Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.200Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:11 2024-11-07T12:49:11.206Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.289 seconds (process running for 20.595) 12:49:11 2024-11-07T12:49:11.214Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.214Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.215Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:11 12:49:11 . ____ _ __ _ _ 12:49:11 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:11 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:11 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:11 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:11 =========|_|==============|___/=/_/_/_/ 12:49:11 12:49:11 :: Spring Boot :: (v3.3.3) 12:49:11 12:49:11 2024-11-07T12:49:11.262Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:11 2024-11-07T12:49:11.262Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:11 2024-11-07T12:49:11.425Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:11 2024-11-07T12:49:11.437Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.437Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.437Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:11 2024-11-07T12:49:11.443Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.213 seconds (process running for 20.832) 12:49:11 2024-11-07T12:49:11.450Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.450Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.451Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:11 12:49:11 . ____ _ __ _ _ 12:49:11 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:11 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:11 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:11 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:11 =========|_|==============|___/=/_/_/_/ 12:49:11 12:49:11 :: Spring Boot :: (v3.3.3) 12:49:11 12:49:11 2024-11-07T12:49:11.488Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:11 2024-11-07T12:49:11.489Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:11 2024-11-07T12:49:11.641Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:11 2024-11-07T12:49:11.651Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.651Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.652Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:11 2024-11-07T12:49:11.657Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.195 seconds (process running for 21.046) 12:49:11 2024-11-07T12:49:11.662Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.663Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.663Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:11 2024-11-07T12:49:11.673Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/nodetemplates] 12:49:11 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:11 12:49:11 . ____ _ __ _ _ 12:49:11 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:11 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:11 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:11 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:11 =========|_|==============|___/=/_/_/_/ 12:49:11 12:49:11 :: Spring Boot :: (v3.3.3) 12:49:11 12:49:11 2024-11-07T12:49:11.718Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:11 2024-11-07T12:49:11.719Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:11 2024-11-07T12:49:11.848Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:11 2024-11-07T12:49:11.857Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.857Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.857Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:11 2024-11-07T12:49:11.861Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.181 seconds (process running for 21.25) 12:49:11 2024-11-07T12:49:11.874Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:11 2024-11-07T12:49:11.875Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:11 2024-11-07T12:49:11.875Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:11 12:49:11 . ____ _ __ _ _ 12:49:11 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:11 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:11 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:11 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:11 =========|_|==============|___/=/_/_/_/ 12:49:11 12:49:11 :: Spring Boot :: (v3.3.3) 12:49:11 12:49:11 2024-11-07T12:49:11.906Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:11 2024-11-07T12:49:11.907Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:12 2024-11-07T12:49:12.044Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:12 2024-11-07T12:49:12.054Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:12 2024-11-07T12:49:12.054Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:12 2024-11-07T12:49:12.055Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:12 2024-11-07T12:49:12.059Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.173 seconds (process running for 21.449) 12:49:12 2024-11-07T12:49:12.067Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:12 2024-11-07T12:49:12.067Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:12 2024-11-07T12:49:12.068Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 12:49:12 2024-11-07T12:49:12.080Z INFO 2910 --- [policy-api-stub] [ main] network : [IN|REST|/nodetemplates] 12:49:12 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:12 2024-11-07T12:49:12.082Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : PUT /nodetemplates 12:49:12 12:49:12 . ____ _ __ _ _ 12:49:12 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:12 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:12 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:12 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:12 =========|_|==============|___/=/_/_/_/ 12:49:12 12:49:12 :: Spring Boot :: (v3.3.3) 12:49:12 12:49:12 2024-11-07T12:49:12.114Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:12 2024-11-07T12:49:12.115Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:12 2024-11-07T12:49:12.245Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:12 2024-11-07T12:49:12.254Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:12 2024-11-07T12:49:12.254Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:12 2024-11-07T12:49:12.254Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:12 2024-11-07T12:49:12.259Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.166 seconds (process running for 21.648) 12:49:12 2024-11-07T12:49:12.263Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:12 2024-11-07T12:49:12.263Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:12 2024-11-07T12:49:12.263Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:12 2024-11-07T12:49:12.269Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : DELETE /nodetemplates/nodeName/versions/nodeVersion 12:49:12 12:49:12 . ____ _ __ _ _ 12:49:12 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:12 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:12 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:12 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:12 =========|_|==============|___/=/_/_/_/ 12:49:12 12:49:12 :: Spring Boot :: (v3.3.3) 12:49:12 12:49:12 2024-11-07T12:49:12.311Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Starting TestNodeTemplateController using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:12 2024-11-07T12:49:12.312Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : The following 2 profiles are active: "default", "test-mvc" 12:49:12 2024-11-07T12:49:12.447Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:12 2024-11-07T12:49:12.456Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:12 2024-11-07T12:49:12.456Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:12 2024-11-07T12:49:12.457Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:12 2024-11-07T12:49:12.461Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.TestNodeTemplateController : Started TestNodeTemplateController in 0.181 seconds (process running for 21.85) 12:49:12 2024-11-07T12:49:12.466Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 12:49:12 2024-11-07T12:49:12.466Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 12:49:12 2024-11-07T12:49:12.466Z INFO 2910 --- [policy-api-stub] [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 12:49:12 2024-11-07T12:49:12.470Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.main.rest.CommonRestController : GET /nodetemplates 12:49:12 [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.533 s -- in org.onap.policy.api.main.rest.TestNodeTemplateController 12:49:12 [INFO] Running org.onap.policy.api.main.rest.e2e.TestApiRestControllerE2E 12:49:12 2024-11-07T12:49:12.483Z INFO 2910 --- [policy-api-stub] [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [org.onap.policy.api.main.rest.e2e.TestApiRestControllerE2E]: TestApiRestControllerE2E does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 12:49:12 2024-11-07T12:49:12.490Z INFO 2910 --- [policy-api-stub] [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration org.onap.policy.api.main.PolicyApiApplication for test class org.onap.policy.api.main.rest.e2e.TestApiRestControllerE2E 12:49:12 12:49:12 . ____ _ __ _ _ 12:49:12 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:12 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:12 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:12 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:12 =========|_|==============|___/=/_/_/_/ 12:49:12 12:49:12 :: Spring Boot :: (v3.3.3) 12:49:12 12:49:12 2024-11-07T12:49:12.516Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.e.TestApiRestControllerE2E : Starting TestApiRestControllerE2E using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:12 2024-11-07T12:49:12.516Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.e.TestApiRestControllerE2E : The following 2 profiles are active: "default", "test" 12:49:12 2024-11-07T12:49:12.742Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:49:12 2024-11-07T12:49:12.753Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 10 ms. Found 6 JPA repository interfaces. 12:49:13 2024-11-07T12:49:12.937Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) 12:49:13 2024-11-07T12:49:12.939Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 12:49:13 2024-11-07T12:49:12.939Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28] 12:49:13 2024-11-07T12:49:12.962Z INFO 2910 --- [policy-api-stub] [ main] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring embedded WebApplicationContext 12:49:13 2024-11-07T12:49:12.962Z INFO 2910 --- [policy-api-stub] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 445 ms 12:49:13 2024-11-07T12:49:13.081Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:49:13 2024-11-07T12:49:13.084Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:49:13 2024-11-07T12:49:13.096Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:49:13 2024-11-07T12:49:13.097Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Starting... 12:49:13 2024-11-07T12:49:13.100Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-2 - Added connection conn10: url=jdbc:h2:mem:testdb user=POLICY_USER 12:49:13 2024-11-07T12:49:13.100Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Start completed. 12:49:13 2024-11-07T12:49:13.722Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:49:13 2024-11-07T12:49:13.896Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:14 2024-11-07T12:49:14.087Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:14 2024-11-07T12:49:14.742Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:15 2024-11-07T12:49:15.569Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:15 2024-11-07T12:49:15.866Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:15 2024-11-07T12:49:15.909Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 38739 (http) with context path '/policy/api/v1' 12:49:15 2024-11-07T12:49:15.916Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.r.e.TestApiRestControllerE2E : Started TestApiRestControllerE2E in 3.423 seconds (process running for 25.306) 12:49:16 2024-11-07T12:49:15.943Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring DispatcherServlet 'dispatcherServlet' 12:49:16 2024-11-07T12:49:15.943Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 12:49:16 2024-11-07T12:49:15.946Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 3 ms 12:49:16 2024-11-07T12:49:16.129Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] network : [IN|REST|/policytypes] 12:49:16 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"onap.datatypes.monitoring.metricsPerEventName":{"properties":{"controlLoopSchemaType":{"type":"string","description":"Specifies Control Loop Schema Type for the event Name e.g. VNF, VM","required":true,"constraints":[{"valid_values":["VM","VNF"]}]},"eventName":{"type":"string","description":"Event name to which thresholds need to be applied","required":true},"policyName":{"type":"string","description":"TCA Policy Scope Name","required":true},"policyScope":{"type":"string","description":"TCA Policy Scope","required":true},"policyVersion":{"type":"string","description":"TCA Policy Scope Version","required":true},"thresholds":{"type":"list","description":"Thresholds associated with eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.thresholds"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.tca_policy":{"properties":{"domain":{"type":"string","description":"Domain name to which TCA needs to be applied","default":"measurementsForVfScaling","required":true,"constraints":[{"equal":"measurementsForVfScaling"}]},"metricsPerEventName":{"type":"list","description":"Contains eventName and threshold details that need to be applied to given eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.metricsPerEventName"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.thresholds":{"properties":{"closedLoopControlName":{"type":"string","description":"Closed Loop Control Name associated with the threshold","required":true},"closedLoopEventStatus":{"type":"string","description":"Closed Loop Event Status of the threshold","required":true,"constraints":[{"valid_values":["ONSET","ABATED"]}]},"direction":{"type":"string","description":"Direction of the threshold","required":true,"constraints":[{"valid_values":["LESS","LESS_OR_EQUAL","GREATER","GREATER_OR_EQUAL","EQUAL"]}]},"fieldPath":{"type":"string","description":"Json field Path as per CEF message which needs to be analyzed for TCA","required":true,"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","description":"Threshold Event Severity","required":true,"constraints":[{"valid_values":["CRITICAL","MAJOR","MINOR","WARNING","NORMAL"]}]},"thresholdValue":{"type":"integer","description":"Threshold value for the field Path inside CEF message","required":true},"version":{"type":"string","description":"Version number associated with the threshold","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"}},"policy_types":{"onap.policies.Monitoring":{"name":"onap.policies.Monitoring","version":"1.0.0","derived_from":"tosca.policies.Root","description":"a base policy type for all policies that govern monitoring provisioning"},"onap.policies.monitoring.tcagen2":{"properties":{"tca.policy":{"type":"onap.datatypes.monitoring.tca_policy","description":"TCA Policy JSON","required":true}},"name":"onap.policies.monitoring.tcagen2","version":"1.0.0","derived_from":"onap.policies.Monitoring"}},"name":"NULL","version":"0.0.0"} 12:49:16 2024-11-07T12:49:16.469Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-2] network : [IN|REST|/policytypes] 12:49:16 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.Monitoring":{"name":"onap.policies.Monitoring","version":"1.0.0","derived_from":"tosca.policies.Root","description":"a base policy type for all policies that govern monitoring provisioning"},"onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server":{"properties":{"buscontroller_feed_publishing_endpoint":{"type":"string","description":"Bus Controller feed endpoint","required":false},"datafile.policy":{"type":"string","description":"datafile Policy JSON as string","required":false}},"name":"onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server","version":"1.0.0","derived_from":"onap.policies.Monitoring"}},"name":"NULL","version":"0.0.0"} 12:49:16 2024-11-07T12:49:16.784Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-3] network : [IN|REST|/policytypes] 12:49:16 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.controlloop.operational.common.Drools":{"properties":{"controllerName":{"type":"string","description":"Drools controller properties","required":false}},"name":"onap.policies.controlloop.operational.common.Drools","version":"1.0.0","derived_from":"onap.policies.controlloop.operational.Common","description":"Operational policies for Drools PDP"}},"name":"NULL","version":"0.0.0"} 12:49:17 2024-11-07T12:49:17.107Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-4] network : [IN|REST|/policytypes] 12:49:17 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.controlloop.guard.Common":{"properties":{"actor":{"type":"string","description":"Specifies the Actor the guard applies to.","required":true},"operation":{"type":"string","description":"Specified the operation that the actor is performing the guard applies to.","required":true},"timeRange":{"type":"tosca.datatypes.TimeInterval","description":"An optional range of time during the day the guard policy is valid for.\n","required":false},"id":{"type":"string","description":"The Control Loop id this applies to.","required":false}},"name":"onap.policies.controlloop.guard.Common","version":"1.0.0","derived_from":"tosca.policies.Root","description":"This is the base Policy Type for Guard policies that guard the execution of Operational\nPolicies.\n"}},"name":"NULL","version":"0.0.0"} 12:49:17 2024-11-07T12:49:17.407Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-5] network : [IN|REST|/policytypes] 12:49:17 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.controlloop.guard.common.Blacklist":{"properties":{"blacklist":{"type":"list","description":"List of entity id's not allowed to have control loop operations on.","required":true,"entry_schema":{"type":"string"}}},"name":"onap.policies.controlloop.guard.common.Blacklist","version":"1.0.0","derived_from":"onap.policies.controlloop.guard.Common","description":"Supports blacklist of entity id's from performing control loop actions on."}},"name":"NULL","version":"0.0.0"} 12:49:17 2024-11-07T12:49:17.690Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-6] network : [IN|REST|/policytypes] 12:49:17 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.controlloop.guard.common.FrequencyLimiter":{"properties":{"timeWindow":{"type":"integer","description":"The time window to count the actions against.","required":true},"timeUnits":{"type":"string","description":"The units of time the window is counting.","required":true,"constraints":[{"valid_values":["second","minute","hour","day","week","month","year"]}]},"limit":{"type":"integer","description":"The limit","required":true,"constraints":[{"greater_than":"0"}]}},"name":"onap.policies.controlloop.guard.common.FrequencyLimiter","version":"1.0.0","derived_from":"onap.policies.controlloop.guard.Common","description":"Supports limiting the frequency of actions being taken by a Actor."}},"name":"NULL","version":"0.0.0"} 12:49:18 2024-11-07T12:49:17.971Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-7] network : [IN|REST|/policytypes] 12:49:18 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.controlloop.guard.common.MinMax":{"properties":{"target":{"type":"string","description":"The target entity that has scaling restricted","required":true},"min":{"type":"integer","description":"The minimum instances of this entity","required":false},"max":{"type":"integer","description":"The maximum instances of this entity","required":false}},"name":"onap.policies.controlloop.guard.common.MinMax","version":"1.0.0","derived_from":"onap.policies.controlloop.guard.Common","description":"Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n"}},"name":"NULL","version":"0.0.0"} 12:49:18 2024-11-07T12:49:18.265Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-8] network : [IN|REST|/policytypes] 12:49:18 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.controlloop.Guard":{"name":"onap.policies.controlloop.Guard","version":"1.0.0","derived_from":"tosca.policies.Root","description":"Guard Policies for Control Loop Operational Policies"},"onap.policies.controlloop.guard.Coordination":{"name":"onap.policies.controlloop.guard.Coordination","version":"1.0.0","derived_from":"onap.policies.controlloop.Guard","description":"Guard Policies for Control Loop Coordination"},"onap.policies.controlloop.guard.coordination.FirstBlocksSecond":{"properties":{"controlLoop":{"type":"list","description":"Specific Control Loops to which to apply this guard","required":true,"entry_schema":{"type":"string"}}},"name":"onap.policies.controlloop.guard.coordination.FirstBlocksSecond","version":"1.0.0","derived_from":"onap.policies.controlloop.guard.Coordination","description":"Supports one Control Loop blocking another"}},"name":"NULL","version":"0.0.0"} 12:49:18 2024-11-07T12:49:18.538Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-9] network : [IN|REST|/policytypes] 12:49:18 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.affinityProperties_properties":{"properties":{"qualifier":{"type":"string","required":false,"constraints":[{"valid_values":["same","different"]}]},"category":{"type":"string","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.AffinityPolicy":{"properties":{"applicableResources":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["any","all"]}]}},"affinityProperties":{"type":"policy.data.affinityProperties_properties","required":true}},"name":"onap.policies.optimization.resource.AffinityPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:18 2024-11-07T12:49:18.829Z INFO 2910 --- [policy-api-stub] [-auto-2-exec-10] network : [IN|REST|/policytypes] 12:49:18 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.distanceProperties_properties":{"properties":{"locationInfo":{"type":"string","required":true},"distance":{"type":"policy.data.distance_properties","required":true,"entry_schema":{"type":"policy.data.distance_properties"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"},"policy.data.distance_properties":{"properties":{"value":{"type":"string","required":true},"operator":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["<","<=",">",">=","="]}]}},"unit":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["km"]}]}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.DistancePolicy":{"properties":{"applicableResources":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["any","all"]}]}},"distanceProperties":{"type":"policy.data.distanceProperties_properties","required":true}},"name":"onap.policies.optimization.resource.DistancePolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:19 2024-11-07T12:49:19.108Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] network : [IN|REST|/policytypes] 12:49:19 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.flavorFeatures_properties":{"properties":{"id":{"type":"string","required":true},"type":{"type":"string","required":true},"directives":{"type":"list","required":true,"entry_schema":{"type":"policy.data.directives_properties"}},"flavorProperties":{"type":"list","required":true,"entry_schema":{"type":"policy.data.flavorProperties_properties"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"},"policy.data.directives_properties":{"properties":{"type":{"type":"string","required":false},"attributes":{"type":"list","required":false,"entry_schema":{"type":"policy.data.directives_attributes_properties"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"},"policy.data.directives_attributes_properties":{"properties":{"attribute_name":{"type":"string","required":false},"attribute_value":{"type":"string","required":false}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"},"policy.data.flavorProperties_properties":{"properties":{"hpa-feature":{"type":"string","required":true},"mandatory":{"type":"string","required":true},"score":{"type":"string","required":false},"architecture":{"type":"string","required":true},"hpa-version":{"type":"string","required":true},"directives":{"type":"list","required":true,"entry_schema":{"type":"policy.data.directives_properties"}},"hpa-feature-attributes":{"type":"list","required":true,"entry_schema":{"type":"policy.data.hpa-feature-attributes_properties"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"},"policy.data.hpa-feature-attributes_properties":{"properties":{"hpa-attribute-key":{"type":"string","required":true},"hpa-attribute-value":{"type":"string","required":true},"operator":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["<","<=",">",">=","=","!=","any","all","subset"]}]}},"unit":{"type":"string","required":false}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.HpaPolicy":{"properties":{"flavorFeatures":{"type":"list","required":true,"entry_schema":{"type":"policy.data.flavorFeatures_properties"}}},"name":"onap.policies.optimization.resource.HpaPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:19 2024-11-07T12:49:19.366Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-2] network : [IN|REST|/policytypes] 12:49:19 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.objectiveParameter_properties":{"properties":{"parameterAttributes":{"type":"list","required":true,"entry_schema":{"type":"policy.data.parameterAttributes_properties"}},"operator":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["*","+","-","/","%"]}]}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"},"policy.data.parameterAttributes_properties":{"properties":{"resources":{"type":"string","required":true},"customerLocationInfo":{"type":"string","required":true},"parameter":{"type":"string","required":true},"weight":{"type":"string","required":true},"operator":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["*","+","-","/","%"]}]}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.OptimizationPolicy":{"properties":{"objective":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["minimize","maximize"]}]}},"objectiveParameter":{"type":"policy.data.objectiveParameter_properties","required":true}},"name":"onap.policies.optimization.resource.OptimizationPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:19 2024-11-07T12:49:19.629Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-3] network : [IN|REST|/policytypes] 12:49:19 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.pciProperties_properties":{"properties":{"algoCategory":{"type":"string","required":false},"pciOptmizationAlgoName":{"type":"string","required":false},"pciOptimizationNwConstraint":{"type":"string","required":false},"pciOptimizationPriority":{"type":"string","required":false},"pciOptimizationTimeConstraint":{"type":"string","required":false}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.PciPolicy":{"properties":{"pciProperties":{"type":"list","required":false,"entry_schema":{"type":"policy.data.pciProperties_properties"}}},"name":"onap.policies.optimization.resource.PciPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:19 2024-11-07T12:49:19.907Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-4] network : [IN|REST|/policytypes] 12:49:19 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.queryProperties_properties":{"properties":{"attribute":{"type":"string","required":true},"value":{"type":"string","required":true},"attribute_location":{"type":"string","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.service.QueryPolicy":{"properties":{"queryProperties":{"type":"list","required":true,"entry_schema":{"type":"policy.data.queryProperties_properties"}}},"name":"onap.policies.optimization.service.QueryPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Service"}},"name":"NULL","version":"0.0.0"} 12:49:20 2024-11-07T12:49:20.188Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-5] network : [IN|REST|/policytypes] 12:49:20 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.subscriberProperties_properties":{"properties":{"subscriberName":{"type":"list","required":true,"entry_schema":{"type":"string"},"metadata":{"contextProvider":"true"}},"subscriberRole":{"type":"list","required":true,"entry_schema":{"type":"string"},"metadata":{"contextMatchable":"scope"}},"provStatus":{"type":"list","required":true,"entry_schema":{"type":"string"},"metadata":{"contextAttribute":"true"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.service.SubscriberPolicy":{"properties":{"subscriberProperties":{"type":"policy.data.subscriberProperties_properties","required":true}},"name":"onap.policies.optimization.service.SubscriberPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Service"}},"name":"NULL","version":"0.0.0"} 12:49:20 2024-11-07T12:49:20.445Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-6] network : [IN|REST|/policytypes] 12:49:20 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.capacityProperties_properties":{"properties":{"controller":{"type":"string","required":true},"request":{"type":"string","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.Vim_fit":{"properties":{"applicableResources":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["any","all"]}]}},"capacityProperties":{"type":"policy.data.capacityProperties_properties","required":true}},"name":"onap.policies.optimization.resource.Vim_fit","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:20 2024-11-07T12:49:20.711Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-7] network : [IN|REST|/policytypes] 12:49:20 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"policy.data.vnfProperties_properties":{"properties":{"inventoryProvider":{"type":"string","required":true},"serviceType":{"type":"string","required":true},"inventoryType":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["serviceInstanceId","vnfName","cloudRegionId","vimId"]}]}},"customerId":{"type":"string","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.nodes.Root"}},"policy_types":{"onap.policies.optimization.resource.VnfPolicy":{"properties":{"applicableResources":{"type":"list","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["any","all"]}]}},"vnfProperties":{"type":"list","required":true,"entry_schema":{"type":"policy.data.vnfProperties_properties"}}},"name":"onap.policies.optimization.resource.VnfPolicy","version":"1.0.0","derived_from":"onap.policies.optimization.Resource"}},"name":"NULL","version":"0.0.0"} 12:49:21 2024-11-07T12:49:20.994Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-8] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:21 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:21 2024-11-07T12:49:21.259Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-9] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:21 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:21 2024-11-07T12:49:21.519Z INFO 2910 --- [policy-api-stub] [-auto-2-exec-10] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:21 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"onap.scaleout.tca","version":"1.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:21 2024-11-07T12:49:21.782Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:21 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"type=configuration","policyName":"onap.scaleout.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:22 2024-11-07T12:49:22.085Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-2] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:22 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"IDontExist","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:22 2024-11-07T12:49:22.139Z WARN 2910 --- [policy-api-stub] [o-auto-2-exec-2] o.o.p.a.main.rest.CommonRestController : POST /policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies 12:49:22 2024-11-07T12:49:22.240Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-3] network : [IN|REST|/policies] 12:49:22 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"OSDF_CASABLANCA.Affinity_Default":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":[],"services":[],"resources":[],"geography":[],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"complex"}},"name":"OSDF_CASABLANCA.Affinity_Default","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_Default","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_Default_US":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":[],"services":[],"resources":[],"geography":["US"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"complex"}},"name":"OSDF_CASABLANCA.Affinity_Default_US","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_Default_US","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_Default_vCPE_US_0":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":[],"geography":["US"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"different","category":"complex"}},"name":"OSDF_CASABLANCA.Affinity_Default_vCPE_US_0","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_Default_vCPE_US_0","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_vCPE_US_Gold_1":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":["gold"],"services":["vCPE"],"resources":["vGMuxInfra","vG"],"geography":["US","INTERNATIONAL"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"availabilityZone"}},"name":"OSDF_CASABLANCA.Affinity_vCPE_US_Gold_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_vCPE_US_Gold_1","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_vCPE_US_Platinum_1":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":["platinum"],"services":["vCPE"],"resources":["vGMuxInfra","vG"],"geography":["US","INTERNATIONAL"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"different","category":"availabilityZone"}},"name":"OSDF_CASABLANCA.Affinity_vCPE_US_Platinum_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_vCPE_US_Platinum_1","policy-version":1.0}}},{"OSDF_CASABLANCA.Capacity_vG_1":{"type":"onap.policies.optimization.resource.Vim_fit","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"capacity_vG","applicableResources":"any","capacityProperty":{"controller":"multicloud","request":"{\"vCPU\": 10, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"}},"name":"OSDF_CASABLANCA.Capacity_vG_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Capacity_vG_1","policy-version":1.0}}},{"OSDF_CASABLANCA.Capacity_vG_2":{"type":"onap.policies.optimization.resource.Vim_fit","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"capacity_vG","applicableResources":"any","capacityProperty":{"controller":"multicloud","request":"{\"vCPU\": 15, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"MB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"}},"name":"OSDF_CASABLANCA.Capacity_vG_2","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Capacity_vG_2","policy-version":1.0}}},{"OSDF_CASABLANCA.Distance_vG_1":{"type":"onap.policies.optimization.resource.DistancePolicy","type_version":"1.0.0","properties":{"scope":["platinum"],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"distance-vG","applicableResources":"any","distanceProperties":{"locationInfo":"customer_loc","distance":{"value":1500.0,"operator":"<","unit":"km"}}},"name":"OSDF_CASABLANCA.Distance_vG_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Distance_vG_1","policy-version":1.0}}},{"OSDF_CASABLANCA.hpa_policy_Default":{"type":"onap.policies.optimization.resource.HpaPolicy","type_version":"1.0.0","properties":{"scope":[],"services":[],"resources":[],"geography":[],"identity":"hpa-vG","flavorFeatures":[{"id":"vg_1","type":"vnfc","directives":[{"type":"flavor_directives","attributes":[{"attribute_name":"flavor_label_vm_01","attribute_value":""}]}],"flavorProperties":[{"hpa-feature":"basicCapabilities","mandatory":true,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"numVirtualCpu","hpa-attribute-value":8.0,"operator":[">="],"unit":""},{"hpa-attribute-key":"virtualMemSize","hpa-attribute-value":6.0,"operator":["<="],"unit":""}]},{"hpa-feature":"ovsDpdk","mandatory":false,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"dataProcessingAccelerationLibrary","hpa-attribute-value":"ovsDpdk_version","operator":["="],"unit":""}]}]}]},"name":"OSDF_CASABLANCA.hpa_policy_Default","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.hpa_policy_Default","policy-version":1.0}}},{"OSDF_CASABLANCA.hpa_policy_vG_1":{"type":"onap.policies.optimization.resource.HpaPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE","vOtherService"],"resources":["vG"],"geography":[],"identity":"hpa-vG","flavorFeatures":[{"id":"vg_1","type":"vnfc","directives":[{"type":"flavor_directives","attributes":[{"attribute_name":"flavor_label_vm_01","attribute_value":""}]}],"flavorProperties":[{"hpa-feature":"basicCapabilities","mandatory":true,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"numVirtualCpu","hpa-attribute-value":6.0,"operator":[">="],"unit":""},{"hpa-attribute-key":"virtualMemSize","hpa-attribute-value":4.0,"operator":["<="],"unit":""}]},{"hpa-feature":"ovsDpdk","mandatory":false,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"dataProcessingAccelerationLibrary","hpa-attribute-value":"ovsDpdk_version","operator":["="],"unit":""}]}]}]},"name":"OSDF_CASABLANCA.hpa_policy_vG_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.hpa_policy_vG_1","policy-version":1.0}}},{"OSDF_CASABLANCA.queryPolicy_vCPE":{"type":"onap.policies.optimization.service.QueryPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"geography":["US","INTERNATIONAL"],"identity":"vCPE_Query_Policy","queryProperties":[{"attribute":"locationId","attribute_location":"customerLocation","value":""},{"attribute":"id","attribute_location":"vpnInfo.vpnId","value":""},{"attribute":"upstreamBW","attribute_location":"vpnInfo.upstreamBW","value":""},{"attribute":"customerLatitude","attribute_location":"customerLatitude","value":1.1},{"attribute":"customerLongitude","attribute_location":"customerLongitude","value":2.2}]},"name":"OSDF_CASABLANCA.queryPolicy_vCPE","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.queryPolicy_vCPE","policy-version":1.0}}},{"OSDF_CASABLANCA.SubscriberPolicy_v1":{"type":"onap.policies.optimization.service.SubscriberPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"identity":"subscriber_vCPE","subscriberProperties":{"subscriberName":["subscriber_x","subscriber_y"],"subscriberRole":["platinum"],"provStatus":["CAPPED"]}},"name":"OSDF_CASABLANCA.SubscriberPolicy_v1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.SubscriberPolicy_v1","policy-version":1.0}}},{"OSDF_CASABLANCA.SubscriberPolicy_v2":{"type":"onap.policies.optimization.service.SubscriberPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"identity":"subscriber_vCPE","subscriberProperties":{"subscriberName":["subscriber_a","subscriber_b"],"subscriberRole":["gold"],"provStatus":["CAPPED"]}},"name":"OSDF_CASABLANCA.SubscriberPolicy_v2","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.SubscriberPolicy_v2","policy-version":1.0}}},{"OSDF_CASABLANCA.vnfPolicy_vG":{"type":"onap.policies.optimization.resource.VnfPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"vnf_vG","applicableResources":"any","vnfProperties":[{"inventoryProvider":"aai","serviceType":"","inventoryType":"cloudRegionId","customerId":""}]},"name":"OSDF_CASABLANCA.vnfPolicy_vG","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.vnfPolicy_vG","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:22 2024-11-07T12:49:22.502Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-4] network : [IN|REST|/policies] 12:49:22 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"OSDF_CASABLANCA.Affinity_Default":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":[],"services":[],"resources":[],"geography":[],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"complex"}},"name":"OSDF_CASABLANCA.Affinity_Default","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_Default","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_Default_US":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":[],"services":[],"resources":[],"geography":["US"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"complex"}},"name":"OSDF_CASABLANCA.Affinity_Default_US","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_Default_US","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_Default_vCPE_US_0":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":[],"geography":["US"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"different","category":"complex"}},"name":"OSDF_CASABLANCA.Affinity_Default_vCPE_US_0","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_Default_vCPE_US_0","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_vCPE_US_Gold_1":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":["gold"],"services":["vCPE"],"resources":["vGMuxInfra","vG"],"geography":["US","INTERNATIONAL"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"availabilityZone"}},"name":"OSDF_CASABLANCA.Affinity_vCPE_US_Gold_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_vCPE_1","policy-version":1.0}}},{"OSDF_CASABLANCA.Affinity_vCPE_US_Platinum_1":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":["platinum"],"services":["vCPE"],"resources":["vGMuxInfra","vG"],"geography":["US","INTERNATIONAL"],"identity":"affinity_vCPE","applicableResources":"any","affinityProperties":{"qualifier":"different","category":"availabilityZone"}},"name":"OSDF_CASABLANCA.Affinity_vCPE_US_Platinum_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Affinity_vCPE_1","policy-version":1.0}}},{"OSDF_CASABLANCA.Capacity_vG_1":{"type":"onap.policies.optimization.resource.Vim_fit","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"capacity_vG","applicableResources":"any","capacityProperty":{"controller":"multicloud","request":"{\"vCPU\": 10, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"}},"name":"OSDF_CASABLANCA.Capacity_vG_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Capacity_vG_1","policy-version":1.0}}},{"OSDF_CASABLANCA.Capacity_vG_2":{"type":"onap.policies.optimization.resource.Vim_fit","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"capacity_vG","applicableResources":"any","capacityProperty":{"controller":"multicloud","request":"{\"vCPU\": 15, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"MB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"}},"name":"OSDF_CASABLANCA.Capacity_vG_2","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Capacity_vG_2","policy-version":1.0}}},{"OSDF_CASABLANCA.Distance_vG_1":{"type":"onap.policies.optimization.resource.DistancePolicy","type_version":"1.0.0","properties":{"scope":["platinum"],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"distance-vG","applicableResources":"any","distanceProperties":{"locationInfo":"customer_loc","distance":{"value":1500.0,"operator":"<","unit":"km"}}},"name":"OSDF_CASABLANCA.Distance_vG_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.Distance_vG_1","policy-version":1.0}}},{"OSDF_CASABLANCA.hpa_policy_Default":{"type":"onap.policies.optimization.resource.HpaPolicy","type_version":"1.0.0","properties":{"scope":[],"services":[],"resources":[],"geography":[],"identity":"hpa-vG","flavorFeatures":[{"id":"vg_1","type":"vnfc","directives":[{"type":"flavor_directives","attributes":[{"attribute_name":"flavor_label_vm_01","attribute_value":""}]}],"flavorProperties":[{"hpa-feature":"basicCapabilities","mandatory":true,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"numVirtualCpu","hpa-attribute-value":8.0,"operator":[">="],"unit":""},{"hpa-attribute-key":"virtualMemSize","hpa-attribute-value":6.0,"operator":["<="],"unit":""}]},{"hpa-feature":"ovsDpdk","mandatory":false,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"dataProcessingAccelerationLibrary","hpa-attribute-value":"ovsDpdk_version","operator":["="],"unit":""}]}]}]},"name":"OSDF_CASABLANCA.hpa_policy_Default","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.hpa_policy_Default","policy-version":1.0}}},{"OSDF_CASABLANCA.hpa_policy_vG_1":{"type":"onap.policies.optimization.resource.HpaPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE","vOtherService"],"resources":["vG"],"geography":[],"identity":"hpa-vG","flavorFeatures":[{"id":"vg_1","type":"vnfc","directives":[{"type":"flavor_directives","attributes":[{"attribute_name":"flavor_label_vm_01","attribute_value":""}]}],"flavorProperties":[{"hpa-feature":"basicCapabilities","mandatory":true,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"numVirtualCpu","hpa-attribute-value":6.0,"operator":[">="],"unit":""},{"hpa-attribute-key":"virtualMemSize","hpa-attribute-value":4.0,"operator":["<="],"unit":""}]},{"hpa-feature":"ovsDpdk","mandatory":false,"architecture":"generic","directives":[],"hpa-feature-attributes":[{"hpa-attribute-key":"dataProcessingAccelerationLibrary","hpa-attribute-value":"ovsDpdk_version","operator":["="],"unit":""}]}]}]},"name":"OSDF_CASABLANCA.hpa_policy_vG_1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.hpa_policy_vG_1","policy-version":1.0}}},{"OSDF_CASABLANCA.queryPolicy_vCPE":{"type":"onap.policies.optimization.service.QueryPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"geography":["US","INTERNATIONAL"],"identity":"vCPE_Query_Policy","queryProperties":[{"attribute":"locationId","attribute_location":"customerLocation","value":""},{"attribute":"id","attribute_location":"vpnInfo.vpnId","value":""},{"attribute":"upstreamBW","attribute_location":"vpnInfo.upstreamBW","value":""},{"attribute":"customerLatitude","attribute_location":"customerLatitude","value":1.1},{"attribute":"customerLongitude","attribute_location":"customerLongitude","value":2.2}]},"name":"OSDF_CASABLANCA.queryPolicy_vCPE","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.queryPolicy_vCPE","policy-version":1.0}}},{"OSDF_CASABLANCA.SubscriberPolicy_v1":{"type":"onap.policies.optimization.service.SubscriberPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"identity":"subscriber_vCPE","subscriberProperties":{"subscriberName":["subscriber_x","subscriber_y"],"subscriberRole":["platinum"],"provStatus":["CAPPED"]}},"name":"OSDF_CASABLANCA.SubscriberPolicy_v1","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.SubscriberPolicy_v1","policy-version":1.0}}},{"OSDF_CASABLANCA.SubscriberPolicy_v2":{"type":"onap.policies.optimization.service.SubscriberPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"identity":"subscriber_vCPE","subscriberProperties":{"subscriberName":["subscriber_a","subscriber_b"],"subscriberRole":["gold"],"provStatus":["CAPPED"]}},"name":"OSDF_CASABLANCA.SubscriberPolicy_v2","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.SubscriberPolicy_v2","policy-version":1.0}}},{"OSDF_CASABLANCA.vnfPolicy_vG":{"type":"onap.policies.optimization.resource.VnfPolicy","type_version":"1.0.0","properties":{"scope":[],"services":["vCPE"],"resources":["vG"],"geography":["US","INTERNATIONAL"],"identity":"vnf_vG","applicableResources":"any","vnfProperties":[{"inventoryProvider":"aai","serviceType":"","inventoryType":"cloudRegionId","customerId":""}]},"name":"OSDF_CASABLANCA.vnfPolicy_vG","version":"1.0.0","metadata":{"policy-id":"OSDF_CASABLANCA.vnfPolicy_vG","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:22 2024-11-07T12:49:22.786Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-5] network : [IN|REST|/policytypes] 12:49:22 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"onap.datatypes.monitoring.metricsPerEventName":{"properties":{"controlLoopSchemaType":{"type":"string","description":"Specifies Control Loop Schema Type for the event Name e.g. VNF, VM","required":true,"constraints":[{"valid_values":["VM","VNF"]}]},"eventName":{"type":"string","description":"Event name to which thresholds need to be applied","required":true},"policyName":{"type":"string","description":"TCA Policy Scope Name","required":true},"policyScope":{"type":"string","description":"TCA Policy Scope","required":true},"policyVersion":{"type":"string","description":"TCA Policy Scope Version","required":true},"thresholds":{"type":"list","description":"Thresholds associated with eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.thresholds"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.tca_policy":{"properties":{"domain":{"type":"string","description":"Domain name to which TCA needs to be applied","default":"measurementsForVfScaling","required":true,"constraints":[{"equal":"measurementsForVfScaling"}]},"metricsPerEventName":{"type":"list","description":"Contains eventName and threshold details that need to be applied to given eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.metricsPerEventName"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.thresholds":{"properties":{"closedLoopControlName":{"type":"string","description":"Closed Loop Control Name associated with the threshold","required":true},"closedLoopEventStatus":{"type":"string","description":"Closed Loop Event Status of the threshold","required":true,"constraints":[{"valid_values":["ONSET","ABATED"]}]},"direction":{"type":"string","description":"Direction of the threshold","required":true,"constraints":[{"valid_values":["LESS","LESS_OR_EQUAL","GREATER","GREATER_OR_EQUAL","EQUAL"]}]},"fieldPath":{"type":"string","description":"Json field Path as per CEF message which needs to be analyzed for TCA","required":true,"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","description":"Threshold Event Severity","required":true,"constraints":[{"valid_values":["CRITICAL","MAJOR","MINOR","WARNING","NORMAL"]}]},"thresholdValue":{"type":"integer","description":"Threshold value for the field Path inside CEF message","required":true},"version":{"type":"string","description":"Version number associated with the threshold","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"}},"policy_types":{"onap.policies.Monitoring":{"name":"NULL","version":"6.0.0","derived_from":"tosca.policies.Root","description":"a base policy type for all policies that govern monitoring provisioning"},"onap.policies.monitoring.cdap.tca.hi.lo.app":{"properties":{"tca_policy":{"type":"onap.datatypes.monitoring.tca_policy","description":"TCA Policy JSON","required":true}},"name":"NULL","version":"6.0.1-snapshot","derived_from":"onap.policies.Monitoring"}},"name":"NULL","version":"0.0.0"} 12:49:23 2024-11-07T12:49:23.076Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-6] network : [IN|REST|/policies] 12:49:23 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.mytca":{"type":"onap.policies.monitoring.cdap.tca.hi.lo.app","type_version":"6.0.1-snapshot","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"NULL","version":"6.0.1-snapshot","metadata":{"policy-id":"onap.restart.mytca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:23 2024-11-07T12:49:23.360Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-7] network : [IN|REST|/policytypes] 12:49:23 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"onap.datatype.controlloop.Target":{"properties":{"targetType":{"type":"string","description":"Category for the target type","required":true,"constraints":[{"valid_values":["VNF","VM","VFMODULE","PNF"]}]},"entityIds":{"type":"map","description":"Map of values that identify the resource. If none are provided, it is assumed that the\nentity that generated the ONSET event will be the target.\n","required":false,"entry_schema":{"type":"string"},"metadata":{"clamp_possible_values":"ClampExecution:CSAR_RESOURCES"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root","description":"Definition for a entity in A&AI to perform a control loop operation on"},"onap.datatype.controlloop.Actor":{"properties":{"actor":{"type":"string","description":"The actor performing the operation.","required":true,"metadata":{"clamp_possible_values":"Dictionary:DefaultActors,ClampExecution:CDS/actor"}},"operation":{"type":"string","description":"The operation the actor is performing.","required":true,"metadata":{"clamp_possible_values":"Dictionary:DefaultOperations,ClampExecution:CDS/operation"}},"target":{"type":"onap.datatype.controlloop.Target","description":"The resource the operation should be performed on.","required":true},"payload":{"type":"map","description":"Name/value pairs of payload information passed by Policy to the actor","required":false,"entry_schema":{"type":"string"},"metadata":{"clamp_possible_values":"ClampExecution:CDS/payload"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root","description":"An actor/operation/target definition"},"onap.datatype.controlloop.Operation":{"properties":{"id":{"type":"string","description":"Unique identifier for the operation","required":true},"description":{"type":"string","description":"A user-friendly description of the intent for the operation","required":false},"operation":{"type":"onap.datatype.controlloop.Actor","description":"The definition of the operation to be performed.","required":true},"timeout":{"type":"integer","description":"The amount of time for the actor to perform the operation.","required":true},"retries":{"type":"integer","description":"The number of retries the actor should attempt to perform the operation.","default":0.0,"required":true},"success":{"type":"string","description":"Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.","default":"final_success","required":false},"failure":{"type":"string","description":"Points to the operation to invoke on Actor operation failure.","default":"final_failure","required":false},"failure_timeout":{"type":"string","description":"Points to the operation to invoke when the time out for the operation occurs.","default":"final_failure_timeout","required":false},"failure_retries":{"type":"string","description":"Points to the operation to invoke when the current operation has exceeded its max retries.","default":"final_failure_retries","required":false},"failure_exception":{"type":"string","description":"Points to the operation to invoke when the current operation causes an exception.","default":"final_failure_exception","required":false},"failure_guard":{"type":"string","description":"Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.","default":"final_failure_guard","required":false}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root","description":"An operation supported by an actor"}},"policy_types":{"onap.policies.controlloop.operational.Common":{"properties":{"id":{"type":"string","description":"The unique control loop id.","required":true},"timeout":{"type":"integer","description":"Overall timeout for executing all the operations. This timeout should equal or exceed the total\ntimeout for each operation listed.\n","required":true},"abatement":{"type":"boolean","description":"Whether an abatement event message will be expected for the control loop from DCAE.","default":false,"required":true},"trigger":{"type":"string","description":"Initial operation to execute upon receiving an Onset event message for the Control Loop.","required":true},"operations":{"type":"list","description":"List of operations to be performed when Control Loop is triggered.","required":true,"entry_schema":{"type":"onap.datatype.controlloop.Operation"}}},"name":"onap.policies.controlloop.operational.Common","version":"1.0.0","derived_from":"tosca.policies.Root","description":"Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant\nPolicy Types. This does NOT support the legacy Policy YAML policy type.\n"}},"name":"NULL","version":"0.0.0"} 12:49:23 2024-11-07T12:49:23.808Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-9] network : [IN|REST|/policies] 12:49:23 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"operational.restart":{"type":"onap.policies.controlloop.operational.common.Drools","type_version":"1.0.0","properties":{"id":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","timeout":3600.0,"abatement":true,"trigger":"unique-policy-id-1-restart","operations":[{"id":"unique-policy-id-1-restart","description":"Restart the VM","operation":{"actor":"APPC","operation":"Restart","target":{"targetType":"VNF"}},"timeout":1200.0,"retries":3.0,"success":"final_success","failure":"final_failure","failure_timeout":"final_failure_timeout","failure_retries":"final_failure_retries","failure_exception":"final_failure_exception","failure_guard":"final_failure_guard"}],"controllerName":"usecases"},"name":"operational.restart","version":"1.0.0","metadata":{"policy-id":"operational.restart","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:24 2024-11-07T12:49:24.066Z INFO 2910 --- [policy-api-stub] [-auto-2-exec-10] network : [IN|REST|/policies] 12:49:24 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"operational.restart":{"type":"onap.policies.controlloop.operational.common.Drools","type_version":"1.0.0","properties":{"id":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","timeout":3600.0,"abatement":true,"trigger":"unique-policy-id-1-restart","operations":[{"id":"unique-policy-id-1-restart","description":"Restart the VM","operation":{"actor":"APPC","operation":"Restart","target":{"targetType":"VNF"}},"timeout":1200.0,"retries":3.0,"success":"final_success","failure":"final_failure","failure_timeout":"final_failure_timeout","failure_retries":"final_failure_retries","failure_exception":"final_failure_exception","failure_guard":"final_failure_guard"}],"controllerName":"usecases"},"name":"operational.restart","version":"1.0.0","metadata":{"policy-id":"operational.restart","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:24 2024-11-07T12:49:24.776Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-3] network : [IN|REST|/policies] 12:49:24 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"operational.restart":{"type":"onap.policies.controlloop.operational.common.Drools","type_version":"1.0.0","properties":{"id":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","timeout":3600.0,"abatement":true,"trigger":"unique-policy-id-1-restart","operations":[{"id":"unique-policy-id-1-restart","description":"Restart the VM","operation":{"actor":"APPC","operation":"Restart","target":{"targetType":"VNF"}},"timeout":1200.0,"retries":3.0,"success":"final_success","failure":"final_failure","failure_timeout":"final_failure_timeout","failure_retries":"final_failure_retries","failure_exception":"final_failure_exception","failure_guard":"final_failure_guard"}],"controllerName":"usecases"},"name":"operational.restart","version":"1.0.0","metadata":{"policy-id":"operational.restart","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:26 2024-11-07T12:49:26.599Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-8] network : [IN|REST|/policytypes] 12:49:26 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"onap.datatypes.monitoring.metricsPerEventName":{"properties":{"controlLoopSchemaType":{"type":"string","description":"Specifies Control Loop Schema Type for the event Name e.g. VNF, VM","required":true,"constraints":[{"valid_values":["VM","VNF"]}]},"eventName":{"type":"string","description":"Event name to which thresholds need to be applied","required":true},"policyName":{"type":"string","description":"TCA Policy Scope Name","required":true},"policyScope":{"type":"string","description":"TCA Policy Scope","required":true},"policyVersion":{"type":"string","description":"TCA Policy Scope Version","required":true},"thresholds":{"type":"list","description":"Thresholds associated with eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.thresholds"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.tca_policy":{"properties":{"domain":{"type":"string","description":"Domain name to which TCA needs to be applied","default":"measurementsForVfScaling","required":true,"constraints":[{"equal":"measurementsForVfScaling"}]},"metricsPerEventName":{"type":"list","description":"Contains eventName and threshold details that need to be applied to given eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.metricsPerEventName"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.thresholds":{"properties":{"closedLoopControlName":{"type":"string","description":"Closed Loop Control Name associated with the threshold","required":true},"closedLoopEventStatus":{"type":"string","description":"Closed Loop Event Status of the threshold","required":true,"constraints":[{"valid_values":["ONSET","ABATED"]}]},"direction":{"type":"string","description":"Direction of the threshold","required":true,"constraints":[{"valid_values":["LESS","LESS_OR_EQUAL","GREATER","GREATER_OR_EQUAL","EQUAL"]}]},"fieldPath":{"type":"string","description":"Json field Path as per CEF message which needs to be analyzed for TCA","required":true,"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","description":"Threshold Event Severity","required":true,"constraints":[{"valid_values":["CRITICAL","MAJOR","MINOR","WARNING","NORMAL"]}]},"thresholdValue":{"type":"integer","description":"Threshold value for the field Path inside CEF message","required":true},"version":{"type":"string","description":"Version number associated with the threshold","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"}},"policy_types":{"onap.policies.Monitoring":{"name":"onap.policies.Monitoring","version":"1.0.0","derived_from":"tosca.policies.Root","description":"a base policy type for all policies that govern monitoring provisioning"},"onap.policies.monitoring.tcagen2":{"properties":{"tca.policy":{"type":"onap.datatypes.monitoring.tca_policy","description":"TCA Policy JSON","required":true}},"name":"onap.policies.monitoring.tcagen2","version":"1.0.0","derived_from":"onap.policies.Monitoring"}},"name":"NULL","version":"0.0.0"} 12:49:26 2024-11-07T12:49:26.867Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-9] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:26 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:27 2024-11-07T12:49:27.112Z INFO 2910 --- [policy-api-stub] [-auto-2-exec-10] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:27 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:27 2024-11-07T12:49:27.364Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:27 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"onap.scaleout.tca","version":"1.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:27 2024-11-07T12:49:27.606Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-2] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:27 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"type=configuration","policyName":"onap.scaleout.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:29 2024-11-07T12:49:29.683Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-8] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:29 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:30 2024-11-07T12:49:29.933Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-9] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:30 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:30 2024-11-07T12:49:30.168Z INFO 2910 --- [policy-api-stub] [-auto-2-exec-10] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:30 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"onap.scaleout.tca","version":"1.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:30 2024-11-07T12:49:30.411Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:30 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"type=configuration","policyName":"onap.scaleout.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:33 2024-11-07T12:49:33.427Z WARN 2910 --- [policy-api-stub] [o-auto-2-exec-3] o.o.p.a.main.rest.CommonRestController : GET /policytypes/wrong/versions/latest 12:49:34 2024-11-07T12:49:34.138Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-8] network : [IN|REST|/policytypes] 12:49:34 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","policy_types":{"onap.policies.Test":{"properties":{"scope":{"type":"list","description":"Scope for the policy - could be for a specific release.","required":true,"entry_schema":{"type":"string"},"metadata":{"matchable":"true"}},"geography":{"type":"list","description":"One or more geographic regions","required":true,"entry_schema":{"type":"string","constraints":[{"valid_values":["US","International"]}]},"metadata":{"matchable":"true"}},"identity":{"type":"string","description":"Used internally for identification","required":true}},"name":"NULL","version":"1.0.0","derived_from":"tosca.policies.Root","description":"The base policy type for all policies that govern optimization"}},"name":"NULL","version":"0.0.0"} 12:49:34 2024-11-07T12:49:34.632Z WARN 2910 --- [policy-api-stub] [o-auto-2-exec-1] o.o.p.a.main.rest.CommonRestController : DELETE /policytypes/onap.policies.Test/versions/1.0.0 12:49:34 2024-11-07T12:49:34.727Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-2] network : [IN|REST|/policytypes] 12:49:34 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"onap.datatypes.monitoring.metricsPerEventName":{"properties":{"controlLoopSchemaType":{"type":"string","description":"Specifies Control Loop Schema Type for the event Name e.g. VNF, VM","required":true,"constraints":[{"valid_values":["VM","VNF"]}]},"eventName":{"type":"string","description":"Event name to which thresholds need to be applied","required":true},"policyName":{"type":"string","description":"TCA Policy Scope Name","required":true},"policyScope":{"type":"string","description":"TCA Policy Scope","required":true},"policyVersion":{"type":"string","description":"TCA Policy Scope Version","required":true},"thresholds":{"type":"list","description":"Thresholds associated with eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.thresholds"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.tca_policy":{"properties":{"domain":{"type":"string","description":"Domain name to which TCA needs to be applied","default":"measurementsForVfScaling","required":true,"constraints":[{"equal":"measurementsForVfScaling"}]},"metricsPerEventName":{"type":"list","description":"Contains eventName and threshold details that need to be applied to given eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.metricsPerEventName"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.thresholds":{"properties":{"closedLoopControlName":{"type":"string","description":"Closed Loop Control Name associated with the threshold","required":true},"closedLoopEventStatus":{"type":"string","description":"Closed Loop Event Status of the threshold","required":true,"constraints":[{"valid_values":["ONSET","ABATED"]}]},"direction":{"type":"string","description":"Direction of the threshold","required":true,"constraints":[{"valid_values":["LESS","LESS_OR_EQUAL","GREATER","GREATER_OR_EQUAL","EQUAL"]}]},"fieldPath":{"type":"string","description":"Json field Path as per CEF message which needs to be analyzed for TCA","required":true,"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","description":"Threshold Event Severity","required":true,"constraints":[{"valid_values":["CRITICAL","MAJOR","MINOR","WARNING","NORMAL"]}]},"thresholdValue":{"type":"integer","description":"Threshold value for the field Path inside CEF message","required":true},"version":{"type":"string","description":"Version number associated with the threshold","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"}},"policy_types":{"onap.policies.Monitoring":{"name":"onap.policies.Monitoring","version":"1.0.0","derived_from":"tosca.policies.Root","description":"a base policy type for all policies that govern monitoring provisioning"},"onap.policies.monitoring.tcagen2":{"properties":{"tca.policy":{"type":"onap.datatypes.monitoring.tca_policy","description":"TCA Policy JSON","required":true}},"name":"onap.policies.monitoring.tcagen2","version":"1.0.0","derived_from":"onap.policies.Monitoring"}},"name":"NULL","version":"0.0.0"} 12:49:35 2024-11-07T12:49:34.979Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-3] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:35 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:35 2024-11-07T12:49:35.220Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-4] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:35 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:35 2024-11-07T12:49:35.466Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-5] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:35 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"onap.scaleout.tca","version":"1.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:35 2024-11-07T12:49:35.712Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-6] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:35 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"type=configuration","policyName":"onap.scaleout.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:36 2024-11-07T12:49:36.081Z WARN 2910 --- [policy-api-stub] [o-auto-2-exec-8] o.o.p.a.main.rest.CommonRestController : GET /policies/onap.restart.tca/versions/1.0.0 12:49:36 2024-11-07T12:49:36.179Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-9] network : [IN|REST|/policytypes] 12:49:36 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","data_types":{"onap.datatypes.monitoring.metricsPerEventName":{"properties":{"controlLoopSchemaType":{"type":"string","description":"Specifies Control Loop Schema Type for the event Name e.g. VNF, VM","required":true,"constraints":[{"valid_values":["VM","VNF"]}]},"eventName":{"type":"string","description":"Event name to which thresholds need to be applied","required":true},"policyName":{"type":"string","description":"TCA Policy Scope Name","required":true},"policyScope":{"type":"string","description":"TCA Policy Scope","required":true},"policyVersion":{"type":"string","description":"TCA Policy Scope Version","required":true},"thresholds":{"type":"list","description":"Thresholds associated with eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.thresholds"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.tca_policy":{"properties":{"domain":{"type":"string","description":"Domain name to which TCA needs to be applied","default":"measurementsForVfScaling","required":true,"constraints":[{"equal":"measurementsForVfScaling"}]},"metricsPerEventName":{"type":"list","description":"Contains eventName and threshold details that need to be applied to given eventName","required":true,"entry_schema":{"type":"onap.datatypes.monitoring.metricsPerEventName"}}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"},"onap.datatypes.monitoring.thresholds":{"properties":{"closedLoopControlName":{"type":"string","description":"Closed Loop Control Name associated with the threshold","required":true},"closedLoopEventStatus":{"type":"string","description":"Closed Loop Event Status of the threshold","required":true,"constraints":[{"valid_values":["ONSET","ABATED"]}]},"direction":{"type":"string","description":"Direction of the threshold","required":true,"constraints":[{"valid_values":["LESS","LESS_OR_EQUAL","GREATER","GREATER_OR_EQUAL","EQUAL"]}]},"fieldPath":{"type":"string","description":"Json field Path as per CEF message which needs to be analyzed for TCA","required":true,"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","description":"Threshold Event Severity","required":true,"constraints":[{"valid_values":["CRITICAL","MAJOR","MINOR","WARNING","NORMAL"]}]},"thresholdValue":{"type":"integer","description":"Threshold value for the field Path inside CEF message","required":true},"version":{"type":"string","description":"Version number associated with the threshold","required":true}},"name":"NULL","version":"0.0.0","derived_from":"tosca.datatypes.Root"}},"policy_types":{"onap.policies.Monitoring":{"name":"onap.policies.Monitoring","version":"1.0.0","derived_from":"tosca.policies.Root","description":"a base policy type for all policies that govern monitoring provisioning"},"onap.policies.monitoring.tcagen2":{"properties":{"tca.policy":{"type":"onap.datatypes.monitoring.tca_policy","description":"TCA Policy JSON","required":true}},"name":"onap.policies.monitoring.tcagen2","version":"1.0.0","derived_from":"onap.policies.Monitoring"}},"name":"NULL","version":"0.0.0"} 12:49:36 2024-11-07T12:49:36.421Z INFO 2910 --- [policy-api-stub] [-auto-2-exec-10] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:36 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:36 2024-11-07T12:49:36.677Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-1] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:36 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.restart.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":1.0}}}]},"name":"NULL","version":"0.0.0"} 12:49:36 2024-11-07T12:49:36.921Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-2] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:36 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"onap.scaleout.tca","version":"1.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:37 2024-11-07T12:49:37.147Z INFO 2910 --- [policy-api-stub] [o-auto-2-exec-3] network : [IN|REST|/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies] 12:49:37 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"onap.scaleout.tca":{"type":"onap.policies.monitoring.tcagen2","type_version":"1.0.0","properties":{"tca.policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"type=configuration","policyName":"onap.scaleout.tca","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500.0,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000.0,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]}]}},"name":"NULL","version":"2.0.0","metadata":{"policy-id":"onap.scaleout.tca"}}}]},"name":"NULL","version":"0.0.0"} 12:49:41 2024-11-07T12:49:41.638Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:41 2024-11-07T12:49:41.657Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Shutdown initiated... 12:49:41 2024-11-07T12:49:41.660Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Shutdown completed. 12:49:41 [INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.18 s -- in org.onap.policy.api.main.rest.e2e.TestApiRestControllerE2E 12:49:41 [INFO] Running org.onap.policy.api.main.rest.e2e.TestNodeTemplateControllerE2E 12:49:41 2024-11-07T12:49:41.668Z INFO 2910 --- [policy-api-stub] [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [org.onap.policy.api.main.rest.e2e.TestNodeTemplateControllerE2E]: TestNodeTemplateControllerE2E does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 12:49:41 2024-11-07T12:49:41.670Z INFO 2910 --- [policy-api-stub] [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration org.onap.policy.api.main.PolicyApiApplication for test class org.onap.policy.api.main.rest.e2e.TestNodeTemplateControllerE2E 12:49:41 12:49:41 . ____ _ __ _ _ 12:49:41 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:41 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:41 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:41 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:41 =========|_|==============|___/=/_/_/_/ 12:49:41 12:49:41 :: Spring Boot :: (v3.3.3) 12:49:41 12:49:41 2024-11-07T12:49:41.690Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Starting TestNodeTemplateControllerE2E using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:41 2024-11-07T12:49:41.690Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : The following 2 profiles are active: "default", "test" 12:49:41 2024-11-07T12:49:41.872Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:49:41 2024-11-07T12:49:41.882Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 9 ms. Found 6 JPA repository interfaces. 12:49:42 2024-11-07T12:49:41.969Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) 12:49:42 2024-11-07T12:49:41.970Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 12:49:42 2024-11-07T12:49:41.971Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28] 12:49:42 2024-11-07T12:49:41.991Z INFO 2910 --- [policy-api-stub] [ main] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring embedded WebApplicationContext 12:49:42 2024-11-07T12:49:41.991Z INFO 2910 --- [policy-api-stub] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 300 ms 12:49:42 2024-11-07T12:49:42.074Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:49:42 2024-11-07T12:49:42.077Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:49:42 2024-11-07T12:49:42.085Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:49:42 2024-11-07T12:49:42.086Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Starting... 12:49:42 2024-11-07T12:49:42.089Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-3 - Added connection conn20: url=jdbc:h2:mem:testdb user=POLICY_USER 12:49:42 2024-11-07T12:49:42.089Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Start completed. 12:49:42 2024-11-07T12:49:42.552Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:49:42 2024-11-07T12:49:42.626Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:42 2024-11-07T12:49:42.762Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:42 2024-11-07T12:49:42.912Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:43 2024-11-07T12:49:43.285Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:43 2024-11-07T12:49:43.503Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:43 2024-11-07T12:49:43.535Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 39431 (http) with context path '/policy/api/v1' 12:49:43 2024-11-07T12:49:43.542Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Started TestNodeTemplateControllerE2E in 1.87 seconds (process running for 52.931) 12:49:43 2024-11-07T12:49:43.558Z INFO 2910 --- [policy-api-stub] [o-auto-3-exec-1] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring DispatcherServlet 'dispatcherServlet' 12:49:43 2024-11-07T12:49:43.558Z INFO 2910 --- [policy-api-stub] [o-auto-3-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 12:49:43 2024-11-07T12:49:43.560Z INFO 2910 --- [policy-api-stub] [o-auto-3-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms 12:49:43 2024-11-07T12:49:43.717Z INFO 2910 --- [policy-api-stub] [o-auto-3-exec-1] network : [IN|REST|/nodetemplates] 12:49:43 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:44 2024-11-07T12:49:44.153Z WARN 2910 --- [policy-api-stub] [o-auto-3-exec-3] o.o.p.a.main.rest.CommonRestController : DELETE /nodetemplates/invalid_template/versions/1.0.0 12:49:44 2024-11-07T12:49:44.169Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:44 2024-11-07T12:49:44.185Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Shutdown initiated... 12:49:44 2024-11-07T12:49:44.187Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Shutdown completed. 12:49:44 12:49:44 . ____ _ __ _ _ 12:49:44 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:44 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:44 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:44 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:44 =========|_|==============|___/=/_/_/_/ 12:49:44 12:49:44 :: Spring Boot :: (v3.3.3) 12:49:44 12:49:44 2024-11-07T12:49:44.209Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Starting TestNodeTemplateControllerE2E using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:44 2024-11-07T12:49:44.209Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : The following 2 profiles are active: "default", "test" 12:49:44 2024-11-07T12:49:44.394Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:49:44 2024-11-07T12:49:44.404Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 9 ms. Found 6 JPA repository interfaces. 12:49:44 2024-11-07T12:49:44.491Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) 12:49:44 2024-11-07T12:49:44.492Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 12:49:44 2024-11-07T12:49:44.492Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28] 12:49:44 2024-11-07T12:49:44.505Z INFO 2910 --- [policy-api-stub] [ main] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring embedded WebApplicationContext 12:49:44 2024-11-07T12:49:44.505Z INFO 2910 --- [policy-api-stub] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 295 ms 12:49:44 2024-11-07T12:49:44.591Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:49:44 2024-11-07T12:49:44.593Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:49:44 2024-11-07T12:49:44.601Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:49:44 2024-11-07T12:49:44.602Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-4 - Starting... 12:49:44 2024-11-07T12:49:44.605Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-4 - Added connection conn30: url=jdbc:h2:mem:testdb user=POLICY_USER 12:49:44 2024-11-07T12:49:44.605Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-4 - Start completed. 12:49:45 2024-11-07T12:49:44.990Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:49:45 2024-11-07T12:49:45.051Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:45 2024-11-07T12:49:45.196Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:45 2024-11-07T12:49:45.345Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:45 2024-11-07T12:49:45.729Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:46 2024-11-07T12:49:45.980Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:46 2024-11-07T12:49:46.024Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 33121 (http) with context path '/policy/api/v1' 12:49:46 2024-11-07T12:49:46.032Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Started TestNodeTemplateControllerE2E in 1.84 seconds (process running for 55.421) 12:49:46 2024-11-07T12:49:46.054Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-1] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring DispatcherServlet 'dispatcherServlet' 12:49:46 2024-11-07T12:49:46.054Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 12:49:46 2024-11-07T12:49:46.057Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 3 ms 12:49:46 2024-11-07T12:49:46.222Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-1] network : [IN|REST|/nodetemplates] 12:49:46 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:46 2024-11-07T12:49:46.471Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-2] network : [IN|REST|/nodetemplates] 12:49:46 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.2"}},"threshold":3.15,"state":"passive"},"description":"Updated Metadata set for GRPC"}}},"name":"NULL","version":"0.0.0"} 12:49:46 2024-11-07T12:49:46.569Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-3] network : [IN|REST|/nodetemplates] 12:49:46 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"node_templates":{"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.invalid","type_version":"1.0.1","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.2"}},"radius":1.23,"height":2.13,"length":46.0},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:46 2024-11-07T12:49:46.572Z WARN 2910 --- [policy-api-stub] [o-auto-4-exec-3] o.o.p.a.main.rest.CommonRestController : PUT /nodetemplates 12:49:46 2024-11-07T12:49:46.673Z INFO 2910 --- [policy-api-stub] [o-auto-4-exec-4] network : [IN|REST|/nodetemplates] 12:49:46 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{},"name":"NULL","version":"0.0.0"} 12:49:46 2024-11-07T12:49:46.675Z WARN 2910 --- [policy-api-stub] [o-auto-4-exec-4] o.o.p.a.main.rest.CommonRestController : PUT /nodetemplates 12:49:46 2024-11-07T12:49:46.688Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:46 2024-11-07T12:49:46.699Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-4 - Shutdown initiated... 12:49:46 2024-11-07T12:49:46.701Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-4 - Shutdown completed. 12:49:46 12:49:46 . ____ _ __ _ _ 12:49:46 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:46 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:46 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:46 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:46 =========|_|==============|___/=/_/_/_/ 12:49:46 12:49:46 :: Spring Boot :: (v3.3.3) 12:49:46 12:49:46 2024-11-07T12:49:46.733Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Starting TestNodeTemplateControllerE2E using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:46 2024-11-07T12:49:46.733Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : The following 2 profiles are active: "default", "test" 12:49:46 2024-11-07T12:49:46.921Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:49:46 2024-11-07T12:49:46.930Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 7 ms. Found 6 JPA repository interfaces. 12:49:47 2024-11-07T12:49:47.011Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) 12:49:47 2024-11-07T12:49:47.012Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 12:49:47 2024-11-07T12:49:47.012Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28] 12:49:47 2024-11-07T12:49:47.024Z INFO 2910 --- [policy-api-stub] [ main] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring embedded WebApplicationContext 12:49:47 2024-11-07T12:49:47.024Z INFO 2910 --- [policy-api-stub] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 290 ms 12:49:47 2024-11-07T12:49:47.103Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:49:47 2024-11-07T12:49:47.105Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:49:47 2024-11-07T12:49:47.112Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:49:47 2024-11-07T12:49:47.112Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-5 - Starting... 12:49:47 2024-11-07T12:49:47.114Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-5 - Added connection conn40: url=jdbc:h2:mem:testdb user=POLICY_USER 12:49:47 2024-11-07T12:49:47.114Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-5 - Start completed. 12:49:47 2024-11-07T12:49:47.429Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:49:47 2024-11-07T12:49:47.472Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:47 2024-11-07T12:49:47.588Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:47 2024-11-07T12:49:47.738Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:48 2024-11-07T12:49:48.081Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:48 2024-11-07T12:49:48.321Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:48 2024-11-07T12:49:48.360Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 34085 (http) with context path '/policy/api/v1' 12:49:48 2024-11-07T12:49:48.369Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Started TestNodeTemplateControllerE2E in 1.659 seconds (process running for 57.758) 12:49:48 2024-11-07T12:49:48.389Z INFO 2910 --- [policy-api-stub] [o-auto-5-exec-1] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring DispatcherServlet 'dispatcherServlet' 12:49:48 2024-11-07T12:49:48.389Z INFO 2910 --- [policy-api-stub] [o-auto-5-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 12:49:48 2024-11-07T12:49:48.391Z INFO 2910 --- [policy-api-stub] [o-auto-5-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms 12:49:48 2024-11-07T12:49:48.546Z INFO 2910 --- [policy-api-stub] [o-auto-5-exec-1] network : [IN|REST|/nodetemplates] 12:49:48 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:48 2024-11-07T12:49:48.776Z INFO 2910 --- [policy-api-stub] [o-auto-5-exec-2] network : [IN|REST|/nodetemplates] 12:49:48 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"node_templates":{"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.invalid","type_version":"1.0.1","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.2"}},"radius":1.23,"height":2.13,"length":46.0},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:48 2024-11-07T12:49:48.778Z WARN 2910 --- [policy-api-stub] [o-auto-5-exec-2] o.o.p.a.main.rest.CommonRestController : POST /nodetemplates 12:49:48 2024-11-07T12:49:48.867Z INFO 2910 --- [policy-api-stub] [o-auto-5-exec-4] network : [IN|REST|/nodetemplates] 12:49:48 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{},"name":"NULL","version":"0.0.0"} 12:49:48 2024-11-07T12:49:48.868Z WARN 2910 --- [policy-api-stub] [o-auto-5-exec-4] o.o.p.a.main.rest.CommonRestController : POST /nodetemplates 12:49:48 2024-11-07T12:49:48.879Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:48 2024-11-07T12:49:48.889Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-5 - Shutdown initiated... 12:49:48 2024-11-07T12:49:48.891Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-5 - Shutdown completed. 12:49:48 12:49:48 . ____ _ __ _ _ 12:49:48 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:48 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:48 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:48 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:48 =========|_|==============|___/=/_/_/_/ 12:49:48 12:49:48 :: Spring Boot :: (v3.3.3) 12:49:48 12:49:48 2024-11-07T12:49:48.917Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Starting TestNodeTemplateControllerE2E using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:48 2024-11-07T12:49:48.917Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : The following 2 profiles are active: "default", "test" 12:49:49 2024-11-07T12:49:49.078Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:49:49 2024-11-07T12:49:49.086Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 7 ms. Found 6 JPA repository interfaces. 12:49:49 2024-11-07T12:49:49.162Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http) 12:49:49 2024-11-07T12:49:49.163Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 12:49:49 2024-11-07T12:49:49.163Z INFO 2910 --- [policy-api-stub] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28] 12:49:49 2024-11-07T12:49:49.175Z INFO 2910 --- [policy-api-stub] [ main] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring embedded WebApplicationContext 12:49:49 2024-11-07T12:49:49.175Z INFO 2910 --- [policy-api-stub] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 257 ms 12:49:49 2024-11-07T12:49:49.254Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:49:49 2024-11-07T12:49:49.256Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:49:49 2024-11-07T12:49:49.262Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:49:49 2024-11-07T12:49:49.263Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-6 - Starting... 12:49:49 2024-11-07T12:49:49.264Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-6 - Added connection conn50: url=jdbc:h2:mem:testdb user=POLICY_USER 12:49:49 2024-11-07T12:49:49.265Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-6 - Start completed. 12:49:49 2024-11-07T12:49:49.608Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:49:49 2024-11-07T12:49:49.651Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:49 2024-11-07T12:49:49.782Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:49 2024-11-07T12:49:49.916Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:50 2024-11-07T12:49:50.290Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:50 2024-11-07T12:49:50.546Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:50 2024-11-07T12:49:50.584Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 43237 (http) with context path '/policy/api/v1' 12:49:50 2024-11-07T12:49:50.590Z INFO 2910 --- [policy-api-stub] [ main] .p.a.m.r.e.TestNodeTemplateControllerE2E : Started TestNodeTemplateControllerE2E in 1.691 seconds (process running for 59.979) 12:49:50 2024-11-07T12:49:50.606Z INFO 2910 --- [policy-api-stub] [o-auto-6-exec-1] o.a.c.c.C.[.[.[/policy/api/v1] : Initializing Spring DispatcherServlet 'dispatcherServlet' 12:49:50 2024-11-07T12:49:50.606Z INFO 2910 --- [policy-api-stub] [o-auto-6-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 12:49:50 2024-11-07T12:49:50.609Z INFO 2910 --- [policy-api-stub] [o-auto-6-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 3 ms 12:49:50 2024-11-07T12:49:50.858Z INFO 2910 --- [policy-api-stub] [o-auto-6-exec-2] network : [IN|REST|/nodetemplates] 12:49:50 {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","node_types":{"org.onap.nodetypes.policy.MetadataSet":{"name":"NULL","version":"1.0.0","derived_from":"tosca.nodetypes.Root"}},"topology_template":{"node_templates":{"apexMetadata_grpc":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"GrpcPolicyModel","version":"1.0.1"}},"threshold":3.14,"state":"active"},"description":"Metadata set for GRPC"},"apexMetadata_adaptive":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"AdaptivePolicyModel","version":"1.2.1"}},"radius":1.23,"height":2.13,"length":45.0},"description":"Metadata set for an Adaptive Policy"},"apexMetadata_decisionMaker":{"type":"org.onap.nodetypes.policy.MetadataSet","type_version":"1.0.0","name":"NULL","version":"1.0.0","metadata":{"policyModel":{"key":{"name":"DecisionMakerPolicyModel","version":"1.0.0"},"keyInformation":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"UUID":"4ea21a2c-5dc7-337f-ba13-f427a4ae79a1","description":"Generated description for concept referred to by key \"AnswerAlbum:0.0.1\""}},{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"UUID":"ce2233b8-bb89-3c5e-a18f-1d13089d2bb6","description":"Generated description for concept referred to by key \"AnswerEvent:0.0.1\""}},{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"UUID":"c8254064-b171-3ccb-85c0-29b5719ee8fc","description":"Generated description for concept referred to by key \"AnswerInitPolicy:0.0.1\""}},{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"UUID":"28fb33d2-a4e0-3046-8302-7baf9a2056d1","description":"Generated description for concept referred to by key \"AnswerInitTask:0.0.1\""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"UUID":"487acc75-b5a1-3285-90cf-98ecd6fb3500","description":"Generated description for concept referred to by key \"DecisionEvent:0.0.1\""}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"UUID":"9e8dda9a-6f85-311d-842b-00b5b5578edd","description":"Generated description for concept referred to by key \"DecisionMakerPolicy:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel","version":"0.0.1"},"UUID":"d7789464-e4d1-382e-8481-fba53fa7b9a9","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"UUID":"e5dfbadd-5229-3ad9-996c-eda030ef5dc1","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Albums:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"UUID":"b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Events:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_KeyInfo","version":"0.0.1"},"UUID":"693b1b29-c4c6-34ba-98e1-bc1a7576f0f8","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_KeyInfo:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"UUID":"2dee1e42-9caa-32b1-9298-784dcdcb9cae","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Policies:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"UUID":"c256f102-2681-3f35-bbbd-1f4948587e15","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Schemas:0.0.1\""}},{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"value":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"UUID":"660cbdba-687d-3a05-ba26-69daf93a8158","description":"Generated description for concept referred to by key \"DecisionMakerPolicyModel_Tasks:0.0.1\""}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"UUID":"da31cee8-2e84-39d2-9337-9ee3bf347c98","description":"Generated description for concept referred to by key \"DitheringAnswerTask:0.0.1\""}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"UUID":"21399145-3fbe-39a5-b863-8a59a8add4a8","description":"Generated description for concept referred to by key \"LastAnswerAlbum:0.0.1\""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"UUID":"02ec632a-aeae-31fe-8f6d-656e1875749f","description":"Generated description for concept referred to by key \"MakeDecisionEvent:0.0.1\""}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"UUID":"818e6b9e-0109-31f5-a95c-17f6fb016027","description":"Generated description for concept referred to by key \"OptimisticAnswerTask:0.0.1\""}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"UUID":"8f4a707e-0d8b-3e09-b921-332f6f81f302","description":"Generated description for concept referred to by key \"PessimisticAnswerTask:0.0.1\""}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"UUID":"bfb0af88-b454-3b08-911f-7ff2475350bf","description":"Generated description for concept referred to by key \"RandomAnswerTask:0.0.1\""}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"UUID":"eac6fb59-8aca-3011-b7ba-69875f1db4b6","description":"Generated description for concept referred to by key \"RoundRobinAnswerTask:0.0.1\""}},{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"UUID":"ab00a5b8-7edd-340f-8140-4d14f571edfb","description":"Generated description for concept referred to by key \"SimpleIntegerType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}}]}},"policies":{"key":{"name":"DecisionMakerPolicyModel_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"AnswerInitPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"AnswerInitPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"AnswerInitState","value":{"stateKey":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"AnswerInitState"},"trigger":{"name":"AnswerEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AnswerInitOutput","value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"},"outgoingEvent":{"name":"AnswerEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"AnswerEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"AnswerInitTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"AnswerInitPolicy","parentKeyVersion":"0.0.1","parentLocalName":"AnswerInitState","localName":"AnswerInitOutput"}}}]}}}]},"firstState":"AnswerInitState"}},{"key":{"name":"DecisionMakerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"DecisionMakerPolicy","version":"0.0.1"},"template":"freestyle","state":{"entry":[{"key":"MakeDecisionState","value":{"stateKey":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"MakeDecisionState"},"trigger":{"name":"MakeDecisionEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"DecisionFinalOutput","value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"},"outgoingEvent":{"name":"DecisionEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"DecisionEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"TaskSelectionLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nif (executor.inFields.get(\"mode\").equals(\"random\")) {\n executor.subject.getTaskKey(\"RandomAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"pessimistic\")) {\n executor.subject.getTaskKey(\"PessimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"optimistic\")) {\n executor.subject.getTaskKey(\"OptimisticAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"dithering\")) {\n executor.subject.getTaskKey(\"DitheringAnswerTask\").copyTo(executor.selectedTask);\n}\nelse if (executor.inFields.get(\"mode\").equals(\"roundrobin\")) {\n executor.subject.getTaskKey(\"RoundRobinAnswerTask\").copyTo(executor.selectedTask);\n}\n\nexecutor.logger.info(\"Answer Selected Task:\" + executor.selectedTask);\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"RandomAnswerTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionMakerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"DecisionMakerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"MakeDecisionState","localName":"DecisionFinalOutput"}}}]}}}]},"firstState":"MakeDecisionState"}}]}},"tasks":{"key":{"name":"DecisionMakerPolicyModel_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"AnswerInitTask","version":"0.0.1"},"value":{"key":{"name":"AnswerInitTask","version":"0.0.1"},"inputEvent":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"AnswerEvent","value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar answerAlbum = executor.getContextAlbum(\"AnswerAlbum\");\n\nanswerAlbum.put(\"a0\", executor.inFields.get(\"a0\"));\nanswerAlbum.put(\"a1\", executor.inFields.get(\"a1\"));\nanswerAlbum.put(\"a2\", executor.inFields.get(\"a2\"));\nanswerAlbum.put(\"a3\", executor.inFields.get(\"a3\"));\nanswerAlbum.put(\"a4\", executor.inFields.get(\"a4\"));\nanswerAlbum.put(\"a5\", executor.inFields.get(\"a5\"));\nanswerAlbum.put(\"a6\", executor.inFields.get(\"a6\"));\n\nvar lastAnswerAlbum = executor.getContextAlbum(\"LastAnswerAlbum\");\nlastAnswerAlbum.put(\"lastAnswer\", answerAlbum.size() - 1);\n\nexecutor.outFields.put(\"a0\", answerAlbum.get(\"a0\"));\nexecutor.outFields.put(\"a1\", answerAlbum.get(\"a1\"));\nexecutor.outFields.put(\"a2\", answerAlbum.get(\"a2\"));\nexecutor.outFields.put(\"a3\", answerAlbum.get(\"a3\"));\nexecutor.outFields.put(\"a4\", answerAlbum.get(\"a4\"));\nexecutor.outFields.put(\"a5\", answerAlbum.get(\"a5\"));\nexecutor.outFields.put(\"a6\", answerAlbum.get(\"a6\"));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"value":{"key":{"name":"DitheringAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = 2 + Math.floor(Math.random() * 3);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"OptimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = size - Math.floor(Math.random() * size / 2) - 1;\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"value":{"key":{"name":"PessimisticAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size / 2);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RandomAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\n\nvar selection = Math.floor(Math.random() * size);\n\nvar selectionA = \"a\" + selection;\n\nexecutor.logger.info(size);\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}},{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"value":{"key":{"name":"RoundRobinAnswerTask","version":"0.0.1"},"inputEvent":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"DecisionEvent","value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"AnswerAlbum","version":"0.0.1"},{"name":"LastAnswerAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * Modifications Copyright (C) 2020 Nordix Foundation.\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.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar size = executor.getContextAlbum(\"AnswerAlbum\").size();\nvar lastAnswer = executor.getContextAlbum(\"LastAnswerAlbum\").get(\"lastAnswer\");\n\nexecutor.logger.info(size);\nexecutor.logger.info(lastAnswer);\n\nvar answer = ++lastAnswer;\nif (answer >= size) {\n answer = 0;\n}\n\nexecutor.getContextAlbum(\"LastAnswerAlbum\").put(\"lastAnswer\", answer)\n\nvar selectionA = \"a\" + answer;\n\nexecutor.logger.info(selectionA);\n\nexecutor.outFields.put(\"decision\", executor.getContextAlbum(\"AnswerAlbum\").get(selectionA));\n\nexecutor.logger.info(executor.outFields);\n\ntrue;"}}}]}},"events":{"key":{"name":"DecisionMakerPolicyModel_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"AnswerEvent","version":"0.0.1"},"value":{"key":{"name":"AnswerEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"a0","value":{"key":"a0","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a1","value":{"key":"a1","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a2","value":{"key":"a2","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a3","value":{"key":"a3","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a4","value":{"key":"a4","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a5","value":{"key":"a5","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"a6","value":{"key":"a6","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"DecisionEvent","version":"0.0.1"},"value":{"key":{"name":"DecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"decision","value":{"key":"decision","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"value":{"key":{"name":"MakeDecisionEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.domains.decisionmaker","source":"DCAE","target":"apex","parameter":{"entry":[{"key":"mode","value":{"key":"mode","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]}},"albums":{"key":{"name":"DecisionMakerPolicyModel_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"AnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"AnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleStringType","version":"0.0.1"}}},{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"value":{"key":{"name":"LastAnswerAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleIntegerType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"DecisionMakerPolicyModel_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"value":{"key":{"name":"SimpleIntegerType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Integer"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}},"description":"Metadata set for an Adaptive Policy"}}},"name":"NULL","version":"0.0.0"} 12:49:51 2024-11-07T12:49:51.218Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:51 2024-11-07T12:49:51.226Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-6 - Shutdown initiated... 12:49:51 2024-11-07T12:49:51.228Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-6 - Shutdown completed. 12:49:51 [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.566 s -- in org.onap.policy.api.main.rest.e2e.TestNodeTemplateControllerE2E 12:49:51 [INFO] Running org.onap.policy.api.main.service.TestToscaServiceTemplateServiceForPolicyTypeCrud 12:49:52 [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.170 s -- in org.onap.policy.api.main.service.TestToscaServiceTemplateServiceForPolicyTypeCrud 12:49:52 [INFO] Running org.onap.policy.api.main.service.TestToscaServiceTemplateForNodeTemplate 12:49:52 [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 s -- in org.onap.policy.api.main.service.TestToscaServiceTemplateForNodeTemplate 12:49:52 [INFO] Running org.onap.policy.api.main.service.TestPdpGroupService 12:49:52 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.209 s -- in org.onap.policy.api.main.service.TestPdpGroupService 12:49:52 [INFO] Running org.onap.policy.api.main.service.TestPolicyService 12:49:52 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 s -- in org.onap.policy.api.main.service.TestPolicyService 12:49:52 [INFO] Running org.onap.policy.api.main.service.TestToscaServiceTemplateServiceForPolicyCrud 12:49:53 [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.518 s -- in org.onap.policy.api.main.service.TestToscaServiceTemplateServiceForPolicyCrud 12:49:53 [INFO] Running org.onap.policy.api.main.service.TestPolicyTypeService 12:49:53 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.147 s -- in org.onap.policy.api.main.service.TestPolicyTypeService 12:49:53 [INFO] Running org.onap.policy.api.main.service.TestNodeTemplateService 12:49:53 [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.320 s -- in org.onap.policy.api.main.service.TestNodeTemplateService 12:49:53 [INFO] Running org.onap.policy.api.main.startstop.ApiDatabaseInitializerExceptionsTest 12:49:54 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.455 s -- in org.onap.policy.api.main.startstop.ApiDatabaseInitializerExceptionsTest 12:49:54 [INFO] Running org.onap.policy.api.main.startstop.ApiDatabaseInitializerTest 12:49:54 12:49:54 . ____ _ __ _ _ 12:49:54 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 12:49:54 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 12:49:54 \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 12:49:54 ' |____| .__|_| |_|_| |_\__, | / / / / 12:49:54 =========|_|==============|___/=/_/_/_/ 12:49:54 12:49:54 :: Spring Boot :: (v3.3.3) 12:49:54 12:49:54 2024-11-07T12:49:54.366Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializerTest : Starting ApiDatabaseInitializerTest using Java 17.0.4 with PID 2910 (started by jenkins in /w/workspace/policy-api-master-merge-java/main) 12:49:54 2024-11-07T12:49:54.366Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializerTest : The following 1 profile is active: "test" 12:49:54 2024-11-07T12:49:54.519Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 12:49:54 2024-11-07T12:49:54.527Z INFO 2910 --- [policy-api-stub] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 7 ms. Found 6 JPA repository interfaces. 12:49:54 2024-11-07T12:49:54.605Z INFO 2910 --- [policy-api-stub] [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 12:49:54 2024-11-07T12:49:54.607Z INFO 2910 --- [policy-api-stub] [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 12:49:54 2024-11-07T12:49:54.613Z INFO 2910 --- [policy-api-stub] [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 12:49:54 2024-11-07T12:49:54.613Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-7 - Starting... 12:49:54 2024-11-07T12:49:54.615Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-7 - Added connection conn60: url=jdbc:h2:mem:testdb user=POLICY_USER 12:49:54 2024-11-07T12:49:54.615Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-7 - Start completed. 12:49:55 2024-11-07T12:49:54.922Z INFO 2910 --- [policy-api-stub] [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 12:49:55 2024-11-07T12:49:54.960Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 12:49:55 2024-11-07T12:49:55.067Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml 12:49:55 2024-11-07T12:49:55.200Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] 12:49:55 2024-11-07T12:49:55.552Z INFO 2910 --- [policy-api-stub] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager 12:49:55 2024-11-07T12:49:55.783Z INFO 2910 --- [policy-api-stub] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoints beneath base path '' 12:49:55 2024-11-07T12:49:55.813Z INFO 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializerTest : Started ApiDatabaseInitializerTest in 1.471 seconds (process running for 65.202) 12:49:57 2024-11-07T12:49:57.714Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : DB already contains policy data - skipping preload 12:49:59 2024-11-07T12:49:59.564Z WARN 2910 --- [policy-api-stub] [ main] o.o.p.a.m.s.ApiDatabaseInitializer : DB already contains policy data - skipping preload 12:49:59 2024-11-07T12:49:59.570Z INFO 2910 --- [policy-api-stub] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 12:49:59 2024-11-07T12:49:59.576Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-7 - Shutdown initiated... 12:49:59 2024-11-07T12:49:59.578Z INFO 2910 --- [policy-api-stub] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-7 - Shutdown completed. 12:49:59 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.248 s -- in org.onap.policy.api.main.startstop.ApiDatabaseInitializerTest 12:49:59 [INFO] Running org.onap.policy.api.main.exception.TestPolicyApiException 12:49:59 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s -- in org.onap.policy.api.main.exception.TestPolicyApiException 12:49:59 [INFO] Running org.onap.policy.api.main.exception.TestPolicyApiRuntimeException 12:49:59 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in org.onap.policy.api.main.exception.TestPolicyApiRuntimeException 12:50:00 [INFO] 12:50:00 [INFO] Results: 12:50:00 [INFO] 12:50:00 [INFO] Tests run: 96, Failures: 0, Errors: 0, Skipped: 0 12:50:00 [INFO] 12:50:00 [INFO] 12:50:00 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ api-main --- 12:50:00 [INFO] Loading execution data file /w/workspace/policy-api-master-merge-java/main/target/code-coverage/jacoco-ut.exec 12:50:00 [INFO] Analyzed bundle 'api-main' with 22 classes 12:50:00 [INFO] 12:50:00 [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ api-main --- 12:50:00 [INFO] Building jar: /w/workspace/policy-api-master-merge-java/main/target/api-main-4.0.1-SNAPSHOT.jar 12:50:00 [INFO] 12:50:00 [INFO] --- spring-boot-maven-plugin:3.3.3:repackage (default) @ api-main --- 12:50:01 [INFO] Replacing main artifact /w/workspace/policy-api-master-merge-java/main/target/api-main-4.0.1-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/. 12:50:01 [INFO] The original artifact has been renamed to /w/workspace/policy-api-master-merge-java/main/target/api-main-4.0.1-SNAPSHOT.jar.original 12:50:01 [INFO] 12:50:01 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ api-main --- 12:50:01 [INFO] 12:50:01 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ api-main --- 12:50:01 [INFO] Analyzed bundle 'api-main' with 22 classes 12:50:01 [INFO] 12:50:01 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ api-main --- 12:50:01 [INFO] 12:50:01 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ api-main --- 12:50:01 [INFO] Installing /w/workspace/policy-api-master-merge-java/main/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/api-main/4.0.1-SNAPSHOT/api-main-4.0.1-SNAPSHOT.pom 12:50:01 [INFO] Installing /w/workspace/policy-api-master-merge-java/main/target/api-main-4.0.1-SNAPSHOT.jar to /home/jenkins/.m2/repository/org/onap/policy/api/api-main/4.0.1-SNAPSHOT/api-main-4.0.1-SNAPSHOT.jar 12:50:01 [INFO] 12:50:01 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ api-main --- 12:50:03 [INFO] 12:50:03 [INFO] ------------------< org.onap.policy.api:api-packages >------------------ 12:50:03 [INFO] Building api-packages 4.0.1-SNAPSHOT [3/8] 12:50:03 [INFO] --------------------------------[ pom ]--------------------------------- 12:50:03 [INFO] 12:50:03 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ api-packages --- 12:50:03 [INFO] 12:50:03 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ api-packages --- 12:50:03 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/packages/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:50:03 --add-opens java.base/java.util=ALL-UNNAMED 12:50:03 --add-opens java.sql/java.sql=ALL-UNNAMED 12:50:03 [INFO] 12:50:03 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ api-packages --- 12:50:03 [INFO] Starting audit... 12:50:03 Audit done. 12:50:03 [INFO] You have 0 Checkstyle violations. 12:50:03 [INFO] 12:50:03 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ api-packages --- 12:50:03 [INFO] Starting audit... 12:50:03 Audit done. 12:50:03 [INFO] You have 0 Checkstyle violations. 12:50:03 [INFO] 12:50:03 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ api-packages --- 12:50:03 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:50:03 [INFO] 12:50:03 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ api-packages --- 12:50:03 [INFO] No tests to run. 12:50:03 [INFO] 12:50:03 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ api-packages --- 12:50:03 [INFO] Analyzed bundle 'api-packages' with 0 classes 12:50:03 [INFO] 12:50:03 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ api-packages --- 12:50:03 [INFO] 12:50:03 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ api-packages --- 12:50:03 [INFO] Installing /w/workspace/policy-api-master-merge-java/packages/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/api-packages/4.0.1-SNAPSHOT/api-packages-4.0.1-SNAPSHOT.pom 12:50:03 [INFO] 12:50:03 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ api-packages --- 12:50:03 [INFO] 12:50:03 [INFO] ---------------< org.onap.policy.api:policy-api-tarball >--------------- 12:50:03 [INFO] Building policy-api-tarball 4.0.1-SNAPSHOT [4/8] 12:50:03 [INFO] --------------------------------[ jar ]--------------------------------- 12:50:04 [INFO] 12:50:04 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ policy-api-tarball --- 12:50:04 [INFO] 12:50:04 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ policy-api-tarball --- 12:50:04 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:50:04 --add-opens java.base/java.util=ALL-UNNAMED 12:50:04 --add-opens java.sql/java.sql=ALL-UNNAMED 12:50:04 [INFO] 12:50:04 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ policy-api-tarball --- 12:50:04 [INFO] Starting audit... 12:50:04 Audit done. 12:50:04 [INFO] You have 0 Checkstyle violations. 12:50:04 [INFO] 12:50:04 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ policy-api-tarball --- 12:50:04 [INFO] Starting audit... 12:50:04 Audit done. 12:50:04 [INFO] You have 0 Checkstyle violations. 12:50:04 [INFO] 12:50:04 [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ policy-api-tarball --- 12:50:04 [INFO] Copying 3 resources from src/main/resources to target/classes 12:50:04 [INFO] 12:50:04 [INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ policy-api-tarball --- 12:50:04 [INFO] No sources to compile 12:50:04 [INFO] 12:50:04 [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ policy-api-tarball --- 12:50:04 [INFO] skip non existing resourceDirectory /w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/src/test/resources 12:50:04 [INFO] 12:50:04 [INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ policy-api-tarball --- 12:50:04 [INFO] No sources to compile 12:50:04 [INFO] 12:50:04 [INFO] --- maven-surefire-plugin:3.1.2:test (default-test) @ policy-api-tarball --- 12:50:04 [INFO] No tests to run. 12:50:04 [INFO] 12:50:04 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ policy-api-tarball --- 12:50:04 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:50:04 [INFO] 12:50:04 [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ policy-api-tarball --- 12:50:04 [INFO] Building jar: /w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/target/policy-api-tarball-4.0.1-SNAPSHOT.jar 12:50:04 [INFO] 12:50:04 [INFO] --- maven-assembly-plugin:3.6.0:single (generate-complete-tar) @ policy-api-tarball --- 12:50:04 [INFO] Reading assembly descriptor: src/main/package/tarball/assembly.xml 12:50:04 [INFO] Building tar: /w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/target/policy-api-tarball-4.0.1-SNAPSHOT-tarball.tar.gz 12:50:04 [INFO] 12:50:04 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ policy-api-tarball --- 12:50:04 [INFO] No tests to run. 12:50:04 [INFO] 12:50:04 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ policy-api-tarball --- 12:50:04 [INFO] Analyzed bundle 'policy-api-tarball' with 0 classes 12:50:04 [INFO] Analyzed bundle 'api-main' with 22 classes 12:50:04 [INFO] 12:50:04 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ policy-api-tarball --- 12:50:04 [INFO] 12:50:04 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ policy-api-tarball --- 12:50:04 [INFO] Installing /w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/policy-api-tarball/4.0.1-SNAPSHOT/policy-api-tarball-4.0.1-SNAPSHOT.pom 12:50:04 [INFO] Installing /w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/target/policy-api-tarball-4.0.1-SNAPSHOT.jar to /home/jenkins/.m2/repository/org/onap/policy/api/policy-api-tarball/4.0.1-SNAPSHOT/policy-api-tarball-4.0.1-SNAPSHOT.jar 12:50:04 [INFO] Installing /w/workspace/policy-api-master-merge-java/packages/policy-api-tarball/target/policy-api-tarball-4.0.1-SNAPSHOT-tarball.tar.gz to /home/jenkins/.m2/repository/org/onap/policy/api/policy-api-tarball/4.0.1-SNAPSHOT/policy-api-tarball-4.0.1-SNAPSHOT-tarball.tar.gz 12:50:04 [INFO] 12:50:04 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ policy-api-tarball --- 12:50:04 [INFO] 12:50:04 [INFO] ---------------< org.onap.policy.api:policy-api-docker >---------------- 12:50:04 [INFO] Building policy-api-docker 4.0.1-SNAPSHOT [5/8] 12:50:04 [INFO] --------------------------------[ pom ]--------------------------------- 12:50:04 [INFO] 12:50:04 [INFO] --- docker-maven-plugin:0.43.4:remove (clean-images) @ policy-api-docker --- 12:50:07 [INFO] 12:50:07 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ policy-api-docker --- 12:50:07 [INFO] 12:50:07 [INFO] --- groovy-maven-plugin:2.1.1:execute (default) @ policy-api-docker --- 12:50:08 Project version: 4.0.1-SNAPSHOT 12:50:08 New tag for docker: 4.0-SNAPSHOT-latest 12:50:08 [INFO] 12:50:08 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ policy-api-docker --- 12:50:08 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/packages/policy-api-docker/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:50:08 --add-opens java.base/java.util=ALL-UNNAMED 12:50:08 --add-opens java.sql/java.sql=ALL-UNNAMED 12:50:08 [INFO] 12:50:08 [INFO] --- git-commit-id-maven-plugin:6.0.0:revision (default) @ policy-api-docker --- 12:50:09 [INFO] 12:50:09 [INFO] --- docker-maven-plugin:0.43.4:build (generate-images) @ policy-api-docker --- 12:50:10 [WARNING] Cannot include project artifact: org.onap.policy.api:policy-api-docker:pom:4.0.1-SNAPSHOT; it doesn't have an associated file or directory. 12:50:10 [WARNING] Cannot include project artifact: org.onap.policy.api:policy-api-docker:pom:4.0.1-SNAPSHOT; it doesn't have an associated file or directory. 12:50:10 [INFO] Copying files to /w/workspace/policy-api-master-merge-java/packages/policy-api-docker/target/docker/onap/policy-api/build/maven 12:50:10 [INFO] Building tar: /w/workspace/policy-api-master-merge-java/packages/policy-api-docker/target/docker/onap/policy-api/tmp/docker-build.tar 12:50:10 [INFO] DOCKER> [onap/policy-api:latest]: Created docker-build.tar in 1 second 12:50:10 [INFO] DOCKER> Pulling from busybox 12:50:11 [INFO] DOCKER> Digest: sha256:768e5c6f5cb6db0794eec98dc7a967f40631746c32232b78a3105fb946f3ab83 12:50:11 [INFO] DOCKER> Status: Downloaded newer image for nexus3.onap.org:10001/busybox:latest 12:50:11 [INFO] DOCKER> Pulled busybox:latest in 442 milliseconds 12:50:11 [INFO] DOCKER> Pulling from onap/policy-jre-alpine 12:50:13 [INFO] DOCKER> Digest: sha256:493437a1c2fb3cf0ea155f1043b633d957d83a71027d238934f61ca5d1613dea 12:50:13 [INFO] DOCKER> Status: Downloaded newer image for nexus3.onap.org:10001/onap/policy-jre-alpine:4.0.1-SNAPSHOT 12:50:13 [INFO] DOCKER> Pulled onap/policy-jre-alpine:4.0.1-SNAPSHOT in 2 seconds 12:50:13 [INFO] DOCKER> Step 1/27 : FROM busybox AS tarball 12:50:13 [INFO] DOCKER> 12:50:13 [INFO] DOCKER> ---> 27a71e19c956 12:50:13 [INFO] DOCKER> Step 2/27 : RUN mkdir /packages /extracted 12:50:13 [INFO] DOCKER> 12:50:16 [INFO] DOCKER> ---> Running in 1ba3f41ab9c2 12:50:17 [INFO] DOCKER> Removing intermediate container 1ba3f41ab9c2 12:50:17 [INFO] DOCKER> ---> 214295251af6 12:50:17 [INFO] DOCKER> Step 3/27 : COPY /maven/lib/policy-api.tar.gz /packages/ 12:50:17 [INFO] DOCKER> 12:50:18 [INFO] DOCKER> ---> ba48238684fd 12:50:18 [INFO] DOCKER> Step 4/27 : RUN tar xvzf /packages/policy-api.tar.gz --directory /extracted/ 12:50:18 [INFO] DOCKER> 12:50:18 [INFO] DOCKER> ---> Running in 4e1004c5aa06 12:50:18 [INFO] DOCKER> etc/logback.xml 12:50:18 etc/apiParameters.yaml 12:50:18 etc/ssl/policy-truststore 12:50:18 [INFO] DOCKER> Removing intermediate container 4e1004c5aa06 12:50:18 [INFO] DOCKER> ---> a06b0159ebb3 12:50:18 [INFO] DOCKER> Step 5/27 : FROM onap/policy-jre-alpine:4.0.1-SNAPSHOT 12:50:18 [INFO] DOCKER> 12:50:18 [INFO] DOCKER> ---> d16420f61977 12:50:18 [INFO] DOCKER> Step 6/27 : LABEL maintainer="Policy Team" 12:50:18 [INFO] DOCKER> 12:50:18 [INFO] DOCKER> ---> Running in 46cca5150c3b 12:50:19 [INFO] DOCKER> Removing intermediate container 46cca5150c3b 12:50:19 [INFO] DOCKER> ---> 1d2f28604681 12:50:19 [INFO] DOCKER> Step 7/27 : LABEL org.opencontainers.image.title="Policy API" 12:50:19 [INFO] DOCKER> 12:50:19 [INFO] DOCKER> ---> Running in 5bae0720f39e 12:50:19 [INFO] DOCKER> Removing intermediate container 5bae0720f39e 12:50:19 [INFO] DOCKER> ---> c96b4fe36c91 12:50:19 [INFO] DOCKER> Step 8/27 : LABEL org.opencontainers.image.description="Policy API image based on Alpine" 12:50:19 [INFO] DOCKER> 12:50:19 [INFO] DOCKER> ---> Running in 0873792aa359 12:50:19 [INFO] DOCKER> Removing intermediate container 0873792aa359 12:50:19 [INFO] DOCKER> ---> dfde832b7466 12:50:19 [INFO] DOCKER> Step 9/27 : LABEL org.opencontainers.image.url="https://github.com/onap/policy-api" 12:50:19 [INFO] DOCKER> 12:50:19 [INFO] DOCKER> ---> Running in 68e318ef66f3 12:50:19 [INFO] DOCKER> Removing intermediate container 68e318ef66f3 12:50:19 [INFO] DOCKER> ---> 7ff890f59c2e 12:50:19 [INFO] DOCKER> Step 10/27 : LABEL org.opencontainers.image.vendor="ONAP Policy Team" 12:50:19 [INFO] DOCKER> 12:50:19 [INFO] DOCKER> ---> Running in 6d545f478e29 12:50:19 [INFO] DOCKER> Removing intermediate container 6d545f478e29 12:50:19 [INFO] DOCKER> ---> 74e3290f4396 12:50:19 [INFO] DOCKER> Step 11/27 : LABEL org.opencontainers.image.licenses="Apache-2.0" 12:50:19 [INFO] DOCKER> 12:50:19 [INFO] DOCKER> ---> Running in 92efc36ae755 12:50:19 [INFO] DOCKER> Removing intermediate container 92efc36ae755 12:50:19 [INFO] DOCKER> ---> ddcc2c8574b2 12:50:19 [INFO] DOCKER> Step 12/27 : LABEL org.opencontainers.image.created="2024-11-07T12:50:09.341Z" 12:50:19 [INFO] DOCKER> 12:50:20 [INFO] DOCKER> ---> Running in 6be043451413 12:50:20 [INFO] DOCKER> Removing intermediate container 6be043451413 12:50:20 [INFO] DOCKER> ---> 4304c23ef3ef 12:50:20 [INFO] DOCKER> Step 13/27 : LABEL org.opencontainers.image.version="4.0.1-SNAPSHOT" 12:50:20 [INFO] DOCKER> 12:50:20 [INFO] DOCKER> ---> Running in 1a1fa2dcba2a 12:50:20 [INFO] DOCKER> Removing intermediate container 1a1fa2dcba2a 12:50:20 [INFO] DOCKER> ---> 1aa309f5b276 12:50:20 [INFO] DOCKER> Step 14/27 : LABEL org.opencontainers.image.revision="0fc9d40" 12:50:20 [INFO] DOCKER> 12:50:20 [INFO] DOCKER> ---> Running in 6a96168a3e6c 12:50:20 [INFO] DOCKER> Removing intermediate container 6a96168a3e6c 12:50:20 [INFO] DOCKER> ---> aecb03dc5dad 12:50:20 [INFO] DOCKER> Step 15/27 : ARG POLICY_LOGS=/var/log/onap/policy/api 12:50:20 [INFO] DOCKER> 12:50:20 [INFO] DOCKER> ---> Running in 5e64577631a3 12:50:20 [INFO] DOCKER> Removing intermediate container 5e64577631a3 12:50:20 [INFO] DOCKER> ---> 2f35ec74caca 12:50:20 [INFO] DOCKER> Step 16/27 : ENV POLICY_LOGS=$POLICY_LOGS 12:50:20 [INFO] DOCKER> 12:50:20 [INFO] DOCKER> ---> Running in 8fc3407fc003 12:50:20 [INFO] DOCKER> Removing intermediate container 8fc3407fc003 12:50:20 [INFO] DOCKER> ---> 924b7287af75 12:50:20 [INFO] DOCKER> Step 17/27 : ENV POLICY_HOME=$POLICY_HOME/api 12:50:20 [INFO] DOCKER> 12:50:20 [INFO] DOCKER> ---> Running in d7459bd690d7 12:50:21 [INFO] DOCKER> Removing intermediate container d7459bd690d7 12:50:21 [INFO] DOCKER> ---> 25e75ea8216f 12:50:21 [INFO] DOCKER> Step 18/27 : USER root 12:50:21 [INFO] DOCKER> 12:50:21 [INFO] DOCKER> ---> Running in 7d30b9944f28 12:50:21 [INFO] DOCKER> Removing intermediate container 7d30b9944f28 12:50:21 [INFO] DOCKER> ---> ac1c7f10ad09 12:50:21 [INFO] DOCKER> Step 19/27 : RUN mkdir -p $POLICY_HOME $POLICY_LOGS && chown -R policy:policy $POLICY_HOME $POLICY_LOGS 12:50:21 [INFO] DOCKER> 12:50:21 [INFO] DOCKER> ---> Running in e2d2e0d92c95 12:50:22 [INFO] DOCKER> Removing intermediate container e2d2e0d92c95 12:50:22 [INFO] DOCKER> ---> e4f86297329f 12:50:22 [INFO] DOCKER> Step 20/27 : COPY --chown=policy:policy --from=tarball /extracted/ $POLICY_HOME/ 12:50:22 [INFO] DOCKER> 12:50:22 [INFO] DOCKER> ---> 89c91e9df333 12:50:22 [INFO] DOCKER> Step 21/27 : WORKDIR $POLICY_HOME 12:50:22 [INFO] DOCKER> 12:50:22 [INFO] DOCKER> ---> Running in d7e6f67e0749 12:50:22 [INFO] DOCKER> Removing intermediate container d7e6f67e0749 12:50:22 [INFO] DOCKER> ---> fdd55b6969a8 12:50:22 [INFO] DOCKER> Step 22/27 : COPY --chown=policy:policy policy-api.sh bin/ 12:50:22 [INFO] DOCKER> 12:50:22 [INFO] DOCKER> ---> d286b784dd91 12:50:22 [INFO] DOCKER> Step 23/27 : COPY --chown=policy:policy /maven/api.jar /app/ 12:50:22 [INFO] DOCKER> 12:50:24 [INFO] DOCKER> ---> e86856333726 12:50:24 [INFO] DOCKER> Step 24/27 : RUN chmod 755 bin/*.sh 12:50:24 [INFO] DOCKER> 12:50:24 [INFO] DOCKER> ---> Running in a06a0c45a77f 12:50:25 [INFO] DOCKER> Removing intermediate container a06a0c45a77f 12:50:25 [INFO] DOCKER> ---> 6c9ee3b5f496 12:50:25 [INFO] DOCKER> Step 25/27 : USER policy 12:50:25 [INFO] DOCKER> 12:50:25 [INFO] DOCKER> ---> Running in ac295b128d86 12:50:25 [INFO] DOCKER> Removing intermediate container ac295b128d86 12:50:25 [INFO] DOCKER> ---> 5a8d5d77cd3b 12:50:25 [INFO] DOCKER> Step 26/27 : WORKDIR $POLICY_HOME/bin 12:50:25 [INFO] DOCKER> 12:50:25 [INFO] DOCKER> ---> Running in 06eaddbf6af2 12:50:25 [INFO] DOCKER> Removing intermediate container 06eaddbf6af2 12:50:25 [INFO] DOCKER> ---> 6ae09882db7c 12:50:25 [INFO] DOCKER> Step 27/27 : ENTRYPOINT [ "./policy-api.sh" ] 12:50:25 [INFO] DOCKER> 12:50:25 [INFO] DOCKER> ---> Running in 127530573be8 12:50:25 [INFO] DOCKER> Removing intermediate container 127530573be8 12:50:25 [INFO] DOCKER> ---> 2ad0f1e2a326 12:50:26 [INFO] DOCKER> Successfully built 2ad0f1e2a326 12:50:26 [INFO] DOCKER> Successfully tagged onap/policy-api:latest 12:50:26 [INFO] DOCKER> [onap/policy-api:latest]: Built image sha256:2ad0f 12:50:26 [INFO] DOCKER> [onap/policy-api:latest]: Tag with 4.0.1-SNAPSHOT,4.0.1-SNAPSHOT-20241107T1248,4.0-SNAPSHOT-latest 12:50:26 [INFO] DOCKER> Tagging image onap/policy-api:4.0.1-SNAPSHOT successful! 12:50:26 [INFO] DOCKER> Tagging image onap/policy-api:4.0.1-SNAPSHOT-20241107T1248 successful! 12:50:26 [INFO] DOCKER> Tagging image onap/policy-api:4.0-SNAPSHOT-latest successful! 12:50:26 [INFO] 12:50:26 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ policy-api-docker --- 12:50:26 [INFO] Starting audit... 12:50:26 Audit done. 12:50:26 [INFO] You have 0 Checkstyle violations. 12:50:26 [INFO] 12:50:26 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ policy-api-docker --- 12:50:26 [INFO] Starting audit... 12:50:26 Audit done. 12:50:26 [INFO] You have 0 Checkstyle violations. 12:50:26 [INFO] 12:50:26 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ policy-api-docker --- 12:50:26 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:50:26 [INFO] 12:50:26 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ policy-api-docker --- 12:50:26 [INFO] No tests to run. 12:50:26 [INFO] 12:50:26 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ policy-api-docker --- 12:50:26 [INFO] Analyzed bundle 'policy-api-docker' with 0 classes 12:50:26 [INFO] Analyzed bundle 'policy-api-tarball' with 0 classes 12:50:26 [INFO] 12:50:26 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ policy-api-docker --- 12:50:26 [INFO] 12:50:26 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ policy-api-docker --- 12:50:26 [INFO] Installing /w/workspace/policy-api-master-merge-java/packages/policy-api-docker/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/policy-api-docker/4.0.1-SNAPSHOT/policy-api-docker-4.0.1-SNAPSHOT.pom 12:50:26 [INFO] 12:50:26 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ policy-api-docker --- 12:50:26 [INFO] Skipping artifact deployment 12:50:26 [INFO] 12:50:26 [INFO] --- docker-maven-plugin:0.43.4:build (push-images) @ policy-api-docker --- 12:50:26 [WARNING] Cannot include project artifact: org.onap.policy.api:policy-api-docker:pom:4.0.1-SNAPSHOT; it doesn't have an associated file or directory. 12:50:26 [WARNING] Cannot include project artifact: org.onap.policy.api:policy-api-docker:pom:4.0.1-SNAPSHOT; it doesn't have an associated file or directory. 12:50:26 [INFO] Copying files to /w/workspace/policy-api-master-merge-java/packages/policy-api-docker/target/docker/onap/policy-api/build/maven 12:50:26 [INFO] Building tar: /w/workspace/policy-api-master-merge-java/packages/policy-api-docker/target/docker/onap/policy-api/tmp/docker-build.tar 12:50:27 [INFO] DOCKER> [onap/policy-api:latest]: Created docker-build.tar in 1 second 12:50:27 [INFO] DOCKER> Step 1/27 : FROM busybox AS tarball 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> 27a71e19c956 12:50:27 [INFO] DOCKER> Step 2/27 : RUN mkdir /packages /extracted 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 214295251af6 12:50:27 [INFO] DOCKER> Step 3/27 : COPY /maven/lib/policy-api.tar.gz /packages/ 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> ba48238684fd 12:50:27 [INFO] DOCKER> Step 4/27 : RUN tar xvzf /packages/policy-api.tar.gz --directory /extracted/ 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> a06b0159ebb3 12:50:27 [INFO] DOCKER> Step 5/27 : FROM onap/policy-jre-alpine:4.0.1-SNAPSHOT 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> d16420f61977 12:50:27 [INFO] DOCKER> Step 6/27 : LABEL maintainer="Policy Team" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 1d2f28604681 12:50:27 [INFO] DOCKER> Step 7/27 : LABEL org.opencontainers.image.title="Policy API" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> c96b4fe36c91 12:50:27 [INFO] DOCKER> Step 8/27 : LABEL org.opencontainers.image.description="Policy API image based on Alpine" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> dfde832b7466 12:50:27 [INFO] DOCKER> Step 9/27 : LABEL org.opencontainers.image.url="https://github.com/onap/policy-api" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 7ff890f59c2e 12:50:27 [INFO] DOCKER> Step 10/27 : LABEL org.opencontainers.image.vendor="ONAP Policy Team" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 74e3290f4396 12:50:27 [INFO] DOCKER> Step 11/27 : LABEL org.opencontainers.image.licenses="Apache-2.0" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> ddcc2c8574b2 12:50:27 [INFO] DOCKER> Step 12/27 : LABEL org.opencontainers.image.created="2024-11-07T12:50:09.341Z" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 4304c23ef3ef 12:50:27 [INFO] DOCKER> Step 13/27 : LABEL org.opencontainers.image.version="4.0.1-SNAPSHOT" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 1aa309f5b276 12:50:27 [INFO] DOCKER> Step 14/27 : LABEL org.opencontainers.image.revision="0fc9d40" 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> aecb03dc5dad 12:50:27 [INFO] DOCKER> Step 15/27 : ARG POLICY_LOGS=/var/log/onap/policy/api 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 2f35ec74caca 12:50:27 [INFO] DOCKER> Step 16/27 : ENV POLICY_LOGS=$POLICY_LOGS 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 924b7287af75 12:50:27 [INFO] DOCKER> Step 17/27 : ENV POLICY_HOME=$POLICY_HOME/api 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> 25e75ea8216f 12:50:27 [INFO] DOCKER> Step 18/27 : USER root 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> ac1c7f10ad09 12:50:27 [INFO] DOCKER> Step 19/27 : RUN mkdir -p $POLICY_HOME $POLICY_LOGS && chown -R policy:policy $POLICY_HOME $POLICY_LOGS 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:27 [INFO] DOCKER> ---> e4f86297329f 12:50:27 [INFO] DOCKER> Step 20/27 : COPY --chown=policy:policy --from=tarball /extracted/ $POLICY_HOME/ 12:50:27 [INFO] DOCKER> 12:50:27 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> 89c91e9df333 12:50:28 [INFO] DOCKER> Step 21/27 : WORKDIR $POLICY_HOME 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> fdd55b6969a8 12:50:28 [INFO] DOCKER> Step 22/27 : COPY --chown=policy:policy policy-api.sh bin/ 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> d286b784dd91 12:50:28 [INFO] DOCKER> Step 23/27 : COPY --chown=policy:policy /maven/api.jar /app/ 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> e86856333726 12:50:28 [INFO] DOCKER> Step 24/27 : RUN chmod 755 bin/*.sh 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> 6c9ee3b5f496 12:50:28 [INFO] DOCKER> Step 25/27 : USER policy 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> 5a8d5d77cd3b 12:50:28 [INFO] DOCKER> Step 26/27 : WORKDIR $POLICY_HOME/bin 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> 6ae09882db7c 12:50:28 [INFO] DOCKER> Step 27/27 : ENTRYPOINT [ "./policy-api.sh" ] 12:50:28 [INFO] DOCKER> 12:50:28 [INFO] DOCKER> ---> Using cache 12:50:28 [INFO] DOCKER> ---> 2ad0f1e2a326 12:50:28 [INFO] DOCKER> Successfully built 2ad0f1e2a326 12:50:28 [INFO] DOCKER> Successfully tagged onap/policy-api:latest 12:50:28 [INFO] DOCKER> [onap/policy-api:latest]: Built image sha256:2ad0f 12:50:28 [INFO] DOCKER> [onap/policy-api:latest]: Tag with 4.0.1-SNAPSHOT,4.0.1-SNAPSHOT-20241107T1248,4.0-SNAPSHOT-latest 12:50:28 [INFO] DOCKER> Tagging image onap/policy-api:4.0.1-SNAPSHOT successful! 12:50:28 [INFO] DOCKER> Tagging image onap/policy-api:4.0.1-SNAPSHOT-20241107T1248 successful! 12:50:28 [INFO] DOCKER> Tagging image onap/policy-api:4.0-SNAPSHOT-latest successful! 12:50:28 [INFO] 12:50:28 [INFO] --- docker-maven-plugin:0.43.4:push (push-images) @ policy-api-docker --- 12:50:28 [INFO] DOCKER> The push refers to repository [nexus3.onap.org:10003/onap/policy-api] 12:50:36 [INFO] DOCKER> latest: digest: sha256:c05a32d8f86b4f25e59f38b9cc1c3ab76afd088bcdeacf9220e8e5359801883d size: 1786 12:50:36 [INFO] DOCKER> Pushed onap/policy-api in 8 seconds 12:50:36 [INFO] DOCKER> The push refers to repository [nexus3.onap.org:10003/onap/policy-api] 12:50:36 [INFO] DOCKER> 4.0.1-SNAPSHOT: digest: sha256:c05a32d8f86b4f25e59f38b9cc1c3ab76afd088bcdeacf9220e8e5359801883d size: 1786 12:50:36 [INFO] DOCKER> The push refers to repository [nexus3.onap.org:10003/onap/policy-api] 12:50:36 [INFO] DOCKER> 4.0.1-SNAPSHOT-20241107T1248: digest: sha256:c05a32d8f86b4f25e59f38b9cc1c3ab76afd088bcdeacf9220e8e5359801883d size: 1786 12:50:36 [INFO] DOCKER> The push refers to repository [nexus3.onap.org:10003/onap/policy-api] 12:50:37 [INFO] DOCKER> 4.0-SNAPSHOT-latest: digest: sha256:c05a32d8f86b4f25e59f38b9cc1c3ab76afd088bcdeacf9220e8e5359801883d size: 1786 12:50:37 [INFO] 12:50:37 [INFO] -----------------< org.onap.policy.api:api-testsuites >----------------- 12:50:37 [INFO] Building api-testsuites 4.0.1-SNAPSHOT [6/8] 12:50:37 [INFO] --------------------------------[ pom ]--------------------------------- 12:50:37 [INFO] 12:50:37 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ api-testsuites --- 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ api-testsuites --- 12:50:37 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/testsuites/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:50:37 --add-opens java.base/java.util=ALL-UNNAMED 12:50:37 --add-opens java.sql/java.sql=ALL-UNNAMED 12:50:37 [INFO] 12:50:37 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ api-testsuites --- 12:50:37 [INFO] Starting audit... 12:50:37 Audit done. 12:50:37 [INFO] You have 0 Checkstyle violations. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ api-testsuites --- 12:50:37 [INFO] Starting audit... 12:50:37 Audit done. 12:50:37 [INFO] You have 0 Checkstyle violations. 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ api-testsuites --- 12:50:37 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ api-testsuites --- 12:50:37 [INFO] No tests to run. 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ api-testsuites --- 12:50:37 [INFO] Analyzed bundle 'api-testsuites' with 0 classes 12:50:37 [INFO] 12:50:37 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ api-testsuites --- 12:50:37 [INFO] 12:50:37 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ api-testsuites --- 12:50:37 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/api-testsuites/4.0.1-SNAPSHOT/api-testsuites-4.0.1-SNAPSHOT.pom 12:50:37 [INFO] 12:50:37 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ api-testsuites --- 12:50:37 [INFO] 12:50:37 [INFO] -----------------< org.onap.policy.api:api-stability >------------------ 12:50:37 [INFO] Building api-stability 4.0.1-SNAPSHOT [7/8] 12:50:37 [INFO] --------------------------------[ jar ]--------------------------------- 12:50:37 [INFO] 12:50:37 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ api-stability --- 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ api-stability --- 12:50:37 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/testsuites/stability/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:50:37 --add-opens java.base/java.util=ALL-UNNAMED 12:50:37 --add-opens java.sql/java.sql=ALL-UNNAMED 12:50:37 [INFO] 12:50:37 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ api-stability --- 12:50:37 [INFO] Starting audit... 12:50:37 Audit done. 12:50:37 [INFO] You have 0 Checkstyle violations. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ api-stability --- 12:50:37 [INFO] Starting audit... 12:50:37 Audit done. 12:50:37 [INFO] You have 0 Checkstyle violations. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ api-stability --- 12:50:37 [INFO] Copying 8 resources from src/main/resources to target/classes 12:50:37 [INFO] 12:50:37 [INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ api-stability --- 12:50:37 [INFO] No sources to compile 12:50:37 [INFO] 12:50:37 [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ api-stability --- 12:50:37 [INFO] skip non existing resourceDirectory /w/workspace/policy-api-master-merge-java/testsuites/stability/src/test/resources 12:50:37 [INFO] 12:50:37 [INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ api-stability --- 12:50:37 [INFO] No sources to compile 12:50:37 [INFO] 12:50:37 [INFO] --- maven-surefire-plugin:3.1.2:test (default-test) @ api-stability --- 12:50:37 [INFO] No tests to run. 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ api-stability --- 12:50:37 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ api-stability --- 12:50:37 [INFO] Building jar: /w/workspace/policy-api-master-merge-java/testsuites/stability/target/api-stability-4.0.1-SNAPSHOT.jar 12:50:37 [INFO] 12:50:37 [INFO] --- maven-assembly-plugin:3.6.0:single (create-distribution) @ api-stability --- 12:50:37 [INFO] Reading assembly descriptor: src/assembly/assembly.xml 12:50:37 [INFO] Building zip: /w/workspace/policy-api-master-merge-java/testsuites/stability/target/api-stability-4.0.1-SNAPSHOT-stability.zip 12:50:37 [INFO] 12:50:37 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ api-stability --- 12:50:37 [INFO] No tests to run. 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ api-stability --- 12:50:37 [INFO] Analyzed bundle 'api-stability' with 0 classes 12:50:37 [INFO] 12:50:37 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ api-stability --- 12:50:37 [INFO] 12:50:37 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ api-stability --- 12:50:37 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/stability/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/api-stability/4.0.1-SNAPSHOT/api-stability-4.0.1-SNAPSHOT.pom 12:50:37 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/stability/target/api-stability-4.0.1-SNAPSHOT.jar to /home/jenkins/.m2/repository/org/onap/policy/api/api-stability/4.0.1-SNAPSHOT/api-stability-4.0.1-SNAPSHOT.jar 12:50:37 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/stability/target/api-stability-4.0.1-SNAPSHOT-stability.zip to /home/jenkins/.m2/repository/org/onap/policy/api/api-stability/4.0.1-SNAPSHOT/api-stability-4.0.1-SNAPSHOT-stability.zip 12:50:37 [INFO] 12:50:37 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ api-stability --- 12:50:37 [INFO] 12:50:37 [INFO] ----------------< org.onap.policy.api:api-performance >----------------- 12:50:37 [INFO] Building api-performance 4.0.1-SNAPSHOT [8/8] 12:50:37 [INFO] --------------------------------[ jar ]--------------------------------- 12:50:37 [INFO] 12:50:37 [INFO] --- maven-clean-plugin:3.3.1:clean (default-clean) @ api-performance --- 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:prepare-agent (pre-unit-test) @ api-performance --- 12:50:37 [INFO] surefireArgLine set to -javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/w/workspace/policy-api-master-merge-java/testsuites/performance/target/code-coverage/jacoco-ut.exec,append=true,excludes=org/drools/**/*:**/gen/**:**/generated-sources/**,output=file --add-opens java.base/java.time=ALL-UNNAMED 12:50:37 --add-opens java.base/java.util=ALL-UNNAMED 12:50:37 --add-opens java.sql/java.sql=ALL-UNNAMED 12:50:37 [INFO] 12:50:37 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-license) @ api-performance --- 12:50:37 [INFO] Starting audit... 12:50:37 Audit done. 12:50:37 [INFO] You have 0 Checkstyle violations. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-checkstyle-plugin:3.3.1:check (onap-java-style) @ api-performance --- 12:50:37 [INFO] Starting audit... 12:50:37 Audit done. 12:50:37 [INFO] You have 0 Checkstyle violations. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ api-performance --- 12:50:37 [INFO] Copying 1 resource from src/main/resources to target/classes 12:50:37 [INFO] 12:50:37 [INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ api-performance --- 12:50:37 [INFO] No sources to compile 12:50:37 [INFO] 12:50:37 [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ api-performance --- 12:50:37 [INFO] skip non existing resourceDirectory /w/workspace/policy-api-master-merge-java/testsuites/performance/src/test/resources 12:50:37 [INFO] 12:50:37 [INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ api-performance --- 12:50:37 [INFO] No sources to compile 12:50:37 [INFO] 12:50:37 [INFO] --- maven-surefire-plugin:3.1.2:test (default-test) @ api-performance --- 12:50:37 [INFO] No tests to run. 12:50:37 [INFO] 12:50:37 [INFO] --- jacoco-maven-plugin:0.8.11:report (post-unit-test) @ api-performance --- 12:50:37 [INFO] Skipping JaCoCo execution due to missing execution data file. 12:50:37 [INFO] 12:50:37 [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ api-performance --- 12:50:37 [INFO] Building jar: /w/workspace/policy-api-master-merge-java/testsuites/performance/target/api-performance-4.0.1-SNAPSHOT.jar 12:50:37 [INFO] 12:50:37 [INFO] --- maven-assembly-plugin:3.6.0:single (create-distribution) @ api-performance --- 12:50:37 [INFO] Reading assembly descriptor: src/assembly/assembly.xml 12:50:38 [INFO] Building zip: /w/workspace/policy-api-master-merge-java/testsuites/performance/target/api-performance-4.0.1-SNAPSHOT-performance.zip 12:50:38 [INFO] 12:50:38 [INFO] --- maven-failsafe-plugin:3.2.5:integration-test (integration-tests) @ api-performance --- 12:50:38 [INFO] No tests to run. 12:50:38 [INFO] 12:50:38 [INFO] --- jacoco-maven-plugin:0.8.11:report-aggregate (report-aggregate) @ api-performance --- 12:50:38 [INFO] Analyzed bundle 'api-performance' with 0 classes 12:50:38 [INFO] 12:50:38 [INFO] --- maven-failsafe-plugin:3.2.5:verify (integration-tests) @ api-performance --- 12:50:38 [INFO] 12:50:38 [INFO] --- maven-install-plugin:3.1.1:install (default-install) @ api-performance --- 12:50:38 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/performance/pom.xml to /home/jenkins/.m2/repository/org/onap/policy/api/api-performance/4.0.1-SNAPSHOT/api-performance-4.0.1-SNAPSHOT.pom 12:50:38 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/performance/target/api-performance-4.0.1-SNAPSHOT.jar to /home/jenkins/.m2/repository/org/onap/policy/api/api-performance/4.0.1-SNAPSHOT/api-performance-4.0.1-SNAPSHOT.jar 12:50:38 [INFO] Installing /w/workspace/policy-api-master-merge-java/testsuites/performance/target/api-performance-4.0.1-SNAPSHOT-performance.zip to /home/jenkins/.m2/repository/org/onap/policy/api/api-performance/4.0.1-SNAPSHOT/api-performance-4.0.1-SNAPSHOT-performance.zip 12:50:38 [INFO] 12:50:38 [INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ api-performance --- 12:50:38 [INFO] ------------------------------------------------------------------------ 12:50:38 [INFO] Reactor Summary for policy-api 4.0.1-SNAPSHOT: 12:50:38 [INFO] 12:50:38 [INFO] policy-api ......................................... SUCCESS [ 19.653 s] 12:50:38 [INFO] api-main ........................................... SUCCESS [01:29 min] 12:50:38 [INFO] api-packages ....................................... SUCCESS [ 0.268 s] 12:50:38 [INFO] policy-api-tarball ................................. SUCCESS [ 0.712 s] 12:50:38 [INFO] policy-api-docker .................................. SUCCESS [ 32.371 s] 12:50:38 [INFO] api-testsuites ..................................... SUCCESS [ 0.203 s] 12:50:38 [INFO] api-stability ...................................... SUCCESS [ 0.617 s] 12:50:38 [INFO] api-performance .................................... SUCCESS [ 0.457 s] 12:50:38 [INFO] ------------------------------------------------------------------------ 12:50:38 [INFO] BUILD SUCCESS 12:50:38 [INFO] ------------------------------------------------------------------------ 12:50:38 [INFO] Total time: 02:25 min 12:50:38 [INFO] Finished at: 2024-11-07T12:50:38Z 12:50:38 [INFO] ------------------------------------------------------------------------ 12:50:38 $ ssh-agent -k 12:50:38 unset SSH_AUTH_SOCK; 12:50:38 unset SSH_AGENT_PID; 12:50:38 echo Agent pid 2112 killed; 12:50:38 [ssh-agent] Stopped. 12:50:38 [PostBuildScript] - [INFO] Executing post build scripts. 12:50:38 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins7831083536184065548.sh 12:50:38 ---> sysstat.sh 12:50:38 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins10987330078815019923.sh 12:50:38 ---> package-listing.sh 12:50:38 ++ facter osfamily 12:50:38 ++ tr '[:upper:]' '[:lower:]' 12:50:39 + OS_FAMILY=debian 12:50:39 + workspace=/w/workspace/policy-api-master-merge-java 12:50:39 + START_PACKAGES=/tmp/packages_start.txt 12:50:39 + END_PACKAGES=/tmp/packages_end.txt 12:50:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:50:39 + PACKAGES=/tmp/packages_start.txt 12:50:39 + '[' /w/workspace/policy-api-master-merge-java ']' 12:50:39 + PACKAGES=/tmp/packages_end.txt 12:50:39 + case "${OS_FAMILY}" in 12:50:39 + dpkg -l 12:50:39 + grep '^ii' 12:50:39 + '[' -f /tmp/packages_start.txt ']' 12:50:39 + '[' -f /tmp/packages_end.txt ']' 12:50:39 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:50:39 + '[' /w/workspace/policy-api-master-merge-java ']' 12:50:39 + mkdir -p /w/workspace/policy-api-master-merge-java/archives/ 12:50:39 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/policy-api-master-merge-java/archives/ 12:50:39 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins8999129306580239679.sh 12:50:39 ---> capture-instance-metadata.sh 12:50:39 Setup pyenv: 12:50:39 system 12:50:39 3.8.13 12:50:39 3.9.13 12:50:39 * 3.10.6 (set by /w/workspace/policy-api-master-merge-java/.python-version) 12:50:39 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dXdj from file:/tmp/.os_lf_venv 12:50:40 lf-activate-venv(): INFO: Installing: lftools 12:50:48 lf-activate-venv(): INFO: Adding /tmp/venv-dXdj/bin to PATH 12:50:48 INFO: Running in OpenStack, capturing instance metadata 12:50:49 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins18109773983069486913.sh 12:50:49 provisioning config files... 12:50:49 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/policy-api-master-merge-java@tmp/config17346564374898368667tmp 12:50:49 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[] 12:50:49 Run condition [Regular expression match] preventing perform for step [Provide Configuration files] 12:50:49 [EnvInject] - Injecting environment variables from a build step. 12:50:49 [EnvInject] - Injecting as environment variables the properties content 12:50:49 SERVER_ID=logs 12:50:49 12:50:49 [EnvInject] - Variables injected successfully. 12:50:49 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins5712948382638245830.sh 12:50:49 ---> create-netrc.sh 12:50:49 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins17858971854612205117.sh 12:50:49 ---> python-tools-install.sh 12:50:49 Setup pyenv: 12:50:49 system 12:50:49 3.8.13 12:50:49 3.9.13 12:50:49 * 3.10.6 (set by /w/workspace/policy-api-master-merge-java/.python-version) 12:50:49 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dXdj from file:/tmp/.os_lf_venv 12:50:50 lf-activate-venv(): INFO: Installing: lftools 12:50:57 lf-activate-venv(): INFO: Adding /tmp/venv-dXdj/bin to PATH 12:50:57 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins7630776887554980644.sh 12:50:57 ---> sudo-logs.sh 12:50:57 Archiving 'sudo' log.. 12:50:57 [policy-api-master-merge-java] $ /bin/bash /tmp/jenkins13148779153897116856.sh 12:50:57 ---> job-cost.sh 12:50:57 Setup pyenv: 12:50:58 system 12:50:58 3.8.13 12:50:58 3.9.13 12:50:58 * 3.10.6 (set by /w/workspace/policy-api-master-merge-java/.python-version) 12:50:58 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dXdj from file:/tmp/.os_lf_venv 12:50:59 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 12:51:03 lf-activate-venv(): INFO: Adding /tmp/venv-dXdj/bin to PATH 12:51:03 INFO: No Stack... 12:51:03 INFO: Retrieving Pricing Info for: v3-standard-8 12:51:03 INFO: Archiving Costs 12:51:03 [policy-api-master-merge-java] $ /bin/bash -l /tmp/jenkins15382882027259911868.sh 12:51:03 ---> logs-deploy.sh 12:51:03 Setup pyenv: 12:51:03 system 12:51:03 3.8.13 12:51:03 3.9.13 12:51:03 * 3.10.6 (set by /w/workspace/policy-api-master-merge-java/.python-version) 12:51:03 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-dXdj from file:/tmp/.os_lf_venv 12:51:04 lf-activate-venv(): INFO: Installing: lftools 12:51:12 lf-activate-venv(): INFO: Adding /tmp/venv-dXdj/bin to PATH 12:51:12 INFO: Nexus URL https://nexus.onap.org path production/vex-yul-ecomp-jenkins-1/policy-api-master-merge-java/353 12:51:12 INFO: archiving workspace using pattern(s): -p **/target/surefire-reports/*-output.txt 12:51:13 Archives upload complete. 12:51:13 INFO: archiving logs to Nexus 12:51:14 ---> uname -a: 12:51:14 Linux prd-ubuntu1804-docker-8c-8g-82163 4.15.0-192-generic #203-Ubuntu SMP Wed Aug 10 17:40:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux 12:51:14 12:51:14 12:51:14 ---> lscpu: 12:51:14 Architecture: x86_64 12:51:14 CPU op-mode(s): 32-bit, 64-bit 12:51:14 Byte Order: Little Endian 12:51:14 CPU(s): 8 12:51:14 On-line CPU(s) list: 0-7 12:51:14 Thread(s) per core: 1 12:51:14 Core(s) per socket: 1 12:51:14 Socket(s): 8 12:51:14 NUMA node(s): 1 12:51:14 Vendor ID: AuthenticAMD 12:51:14 CPU family: 23 12:51:14 Model: 49 12:51:14 Model name: AMD EPYC-Rome Processor 12:51:14 Stepping: 0 12:51:14 CPU MHz: 2800.000 12:51:14 BogoMIPS: 5600.00 12:51:14 Virtualization: AMD-V 12:51:14 Hypervisor vendor: KVM 12:51:14 Virtualization type: full 12:51:14 L1d cache: 32K 12:51:14 L1i cache: 32K 12:51:14 L2 cache: 512K 12:51:14 L3 cache: 16384K 12:51:14 NUMA node0 CPU(s): 0-7 12:51:14 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl xtopology cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr arat npt nrip_save umip rdpid arch_capabilities 12:51:14 12:51:14 12:51:14 ---> nproc: 12:51:14 8 12:51:14 12:51:14 12:51:14 ---> df -h: 12:51:14 Filesystem Size Used Avail Use% Mounted on 12:51:14 udev 16G 0 16G 0% /dev 12:51:14 tmpfs 3.2G 708K 3.2G 1% /run 12:51:14 /dev/vda1 155G 11G 145G 7% / 12:51:14 tmpfs 16G 0 16G 0% /dev/shm 12:51:14 tmpfs 5.0M 0 5.0M 0% /run/lock 12:51:14 tmpfs 16G 0 16G 0% /sys/fs/cgroup 12:51:14 /dev/vda15 105M 4.4M 100M 5% /boot/efi 12:51:14 tmpfs 3.2G 0 3.2G 0% /run/user/1001 12:51:14 12:51:14 12:51:14 ---> free -m: 12:51:14 total used free shared buff/cache available 12:51:14 Mem: 32167 888 28251 0 3027 30840 12:51:14 Swap: 1023 0 1023 12:51:14 12:51:14 12:51:14 ---> ip addr: 12:51:14 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 12:51:14 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 12:51:14 inet 127.0.0.1/8 scope host lo 12:51:14 valid_lft forever preferred_lft forever 12:51:14 inet6 ::1/128 scope host 12:51:14 valid_lft forever preferred_lft forever 12:51:14 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 12:51:14 link/ether fa:16:3e:e3:bc:b4 brd ff:ff:ff:ff:ff:ff 12:51:14 inet 10.30.107.150/23 brd 10.30.107.255 scope global dynamic ens3 12:51:14 valid_lft 86119sec preferred_lft 86119sec 12:51:14 inet6 fe80::f816:3eff:fee3:bcb4/64 scope link 12:51:14 valid_lft forever preferred_lft forever 12:51:14 3: docker0: mtu 1500 qdisc noqueue state DOWN group default 12:51:14 link/ether 02:42:34:c1:58:64 brd ff:ff:ff:ff:ff:ff 12:51:14 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 12:51:14 valid_lft forever preferred_lft forever 12:51:14 inet6 fe80::42:34ff:fec1:5864/64 scope link 12:51:14 valid_lft forever preferred_lft forever 12:51:14 12:51:14 12:51:14 ---> sar -b -r -n DEV: 12:51:14 Linux 4.15.0-192-generic (prd-ubuntu1804-docker-8c-8g-82163) 11/07/24 _x86_64_ (8 CPU) 12:51:14 12:51:14 12:46:36 LINUX RESTART (8 CPU) 12:51:14 12:51:14 12:47:01 tps rtps wtps bread/s bwrtn/s 12:51:14 12:48:01 377.92 70.65 307.27 4565.51 74053.92 12:51:14 12:49:01 191.66 42.47 149.18 2421.72 68193.87 12:51:14 12:50:01 15.10 2.62 12.48 101.45 10141.51 12:51:14 12:51:01 386.52 5.92 380.60 583.37 40584.44 12:51:14 Average: 242.79 30.42 212.38 1918.07 48245.93 12:51:14 12:51:14 12:47:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 12:51:14 12:48:01 30108056 31670732 2831164 8.60 69964 1804420 1427852 4.20 900228 1641424 155804 12:51:14 12:49:01 28478716 30393064 4460504 13.54 83012 2129676 2582920 7.60 2243308 1897884 6152 12:51:14 12:50:01 28766168 30864000 4173052 12.67 83724 2309876 2000576 5.89 1850048 1995656 164756 12:51:14 12:51:01 28946632 31596932 3992588 12.12 93884 2840844 1477500 4.35 1286028 2355364 19248 12:51:14 Average: 29074893 31131182 3864327 11.73 82646 2271204 1872212 5.51 1569903 1972582 86490 12:51:14 12:51:14 12:47:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 12:51:14 12:48:01 lo 1.47 1.47 0.16 0.16 0.00 0.00 0.00 0.00 12:51:14 12:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:51:14 12:48:01 ens3 376.84 251.67 1557.63 76.18 0.00 0.00 0.00 0.00 12:51:14 12:49:01 lo 0.40 0.40 0.03 0.03 0.00 0.00 0.00 0.00 12:51:14 12:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:51:14 12:49:01 ens3 299.38 247.05 3016.40 43.94 0.00 0.00 0.00 0.00 12:51:14 12:50:01 lo 31.83 31.83 38.98 38.98 0.00 0.00 0.00 0.00 12:51:14 12:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:51:14 12:50:01 ens3 259.79 201.88 247.88 92.57 0.00 0.00 0.00 0.00 12:51:14 12:51:01 lo 5.73 5.73 0.52 0.52 0.00 0.00 0.00 0.00 12:51:14 12:51:01 docker0 0.00 0.13 0.00 0.01 0.00 0.00 0.00 0.00 12:51:14 12:51:01 ens3 508.05 464.97 2149.18 2629.42 0.00 0.00 0.00 0.00 12:51:14 Average: lo 9.86 9.86 9.92 9.92 0.00 0.00 0.00 0.00 12:51:14 Average: docker0 0.00 0.03 0.00 0.00 0.00 0.00 0.00 0.00 12:51:14 Average: ens3 361.01 291.39 1742.93 710.45 0.00 0.00 0.00 0.00 12:51:14 12:51:14 12:51:14 ---> sar -P ALL: 12:51:14 Linux 4.15.0-192-generic (prd-ubuntu1804-docker-8c-8g-82163) 11/07/24 _x86_64_ (8 CPU) 12:51:14 12:51:14 12:46:36 LINUX RESTART (8 CPU) 12:51:14 12:51:14 12:47:01 CPU %user %nice %system %iowait %steal %idle 12:51:14 12:48:01 all 11.56 0.00 1.22 2.17 0.04 85.00 12:51:14 12:48:01 0 8.37 0.00 0.96 1.79 0.05 88.83 12:51:14 12:48:01 1 14.83 0.00 1.20 0.42 0.05 83.50 12:51:14 12:48:01 2 6.49 0.00 0.73 0.17 0.03 92.58 12:51:14 12:48:01 3 2.37 0.00 0.89 4.77 0.02 91.96 12:51:14 12:48:01 4 16.46 0.00 1.25 0.40 0.05 81.84 12:51:14 12:48:01 5 5.37 0.00 0.90 5.90 0.08 87.74 12:51:14 12:48:01 6 20.45 0.00 1.54 0.60 0.05 77.37 12:51:14 12:48:01 7 18.16 0.00 2.25 3.37 0.03 76.19 12:51:14 12:49:01 all 23.85 0.00 1.04 3.30 0.07 71.75 12:51:14 12:49:01 0 25.25 0.00 1.12 1.29 0.05 72.30 12:51:14 12:49:01 1 20.05 0.00 1.05 0.50 0.03 78.36 12:51:14 12:49:01 2 16.89 0.00 0.77 2.42 0.08 79.84 12:51:14 12:49:01 3 28.80 0.00 1.24 0.58 0.05 69.33 12:51:14 12:49:01 4 23.78 0.00 1.30 12.53 0.07 62.32 12:51:14 12:49:01 5 27.15 0.00 1.05 5.77 0.13 65.89 12:51:14 12:49:01 6 35.74 0.00 0.77 1.07 0.07 62.34 12:51:14 12:49:01 7 13.23 0.00 1.03 2.21 0.03 83.50 12:51:14 12:50:01 all 33.08 0.00 0.71 0.34 0.06 65.82 12:51:14 12:50:01 0 33.08 0.00 1.06 0.00 0.07 65.79 12:51:14 12:50:01 1 18.41 0.00 0.56 0.02 0.05 80.96 12:51:14 12:50:01 2 44.20 0.00 0.87 2.35 0.07 52.51 12:51:14 12:50:01 3 29.78 0.00 0.45 0.18 0.07 69.52 12:51:14 12:50:01 4 36.10 0.00 0.90 0.15 0.05 62.80 12:51:14 12:50:01 5 28.25 0.00 0.67 0.02 0.05 71.01 12:51:14 12:50:01 6 36.33 0.00 0.70 0.00 0.07 62.91 12:51:14 12:50:01 7 38.53 0.00 0.45 0.00 0.07 60.95 12:51:14 12:51:01 all 11.76 0.00 1.84 1.95 0.05 84.40 12:51:14 12:51:01 0 17.85 0.00 1.35 0.50 0.05 80.24 12:51:14 12:51:01 1 7.93 0.00 1.57 0.12 0.03 90.34 12:51:14 12:51:01 2 9.06 0.00 1.47 0.10 0.03 89.34 12:51:14 12:51:01 3 8.84 0.00 2.49 2.65 0.05 85.97 12:51:14 12:51:01 4 10.69 0.00 1.61 3.32 0.07 84.30 12:51:14 12:51:01 5 18.14 0.00 2.01 5.33 0.08 74.44 12:51:14 12:51:01 6 14.91 0.00 2.24 0.22 0.05 82.58 12:51:14 12:51:01 7 6.60 0.00 1.89 3.38 0.03 88.09 12:51:14 Average: all 20.07 0.00 1.20 1.94 0.06 76.74 12:51:14 Average: 0 21.12 0.00 1.12 0.89 0.05 76.81 12:51:14 Average: 1 15.31 0.00 1.10 0.26 0.04 83.28 12:51:14 Average: 2 19.17 0.00 0.96 1.26 0.05 78.56 12:51:14 Average: 3 17.46 0.00 1.27 2.04 0.05 79.18 12:51:14 Average: 4 21.77 0.00 1.27 4.10 0.06 72.80 12:51:14 Average: 5 19.74 0.00 1.16 4.25 0.09 74.76 12:51:14 Average: 6 26.85 0.00 1.31 0.47 0.06 71.30 12:51:14 Average: 7 19.13 0.00 1.41 2.24 0.04 77.19 12:51:14 12:51:14 12:51:14