diff options
author | 2020-03-19 16:56:29 +0000 | |
---|---|---|
committer | 2020-03-19 16:56:29 +0000 | |
commit | 2d56e9183b619893e33705a77da0ce0c15d6e74c (patch) | |
tree | 31257b88d6da604f64c09584a0fc8edcffa455b4 /examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc | |
parent | 9261ca32b92446b2254549ca4840d4d3b25bf792 (diff) | |
parent | 8c69f0434102b0328ae4754783a01c36f7e35c97 (diff) |
Merge "Apex-pdp tutorial documentation changes"
Diffstat (limited to 'examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc')
-rw-r--r-- | examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc b/examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc index 5154596b1..285d54e80 100644 --- a/examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc +++ b/examples/examples-myfirstpolicy/src/site-docs/adoc/fragments/042-s2-test-policy.adoc @@ -1,10 +1,11 @@ // // ============LICENSE_START======================================================= // Copyright (C) 2016-2018 Ericsson. All rights reserved. +// Modifications Copyright (C) 2020 Nordix Foundation. // ================================================================================ // This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE // Full license text at https://creativecommons.org/licenses/by/4.0/legalcode -// +// // SPDX-License-Identifier: CC-BY-4.0 // ============LICENSE_END========================================================= // @@ -20,7 +21,7 @@ Note, this has changed from the configuration file in Step 1 to enable the `JAVA .JSON to load and execute _My First Policy_, read input JSON events from `stdin`, and emit output events to `stdout` [source,json,options="nowrap"] ---- -include::{adsite-examples-myfirstpolicy-dir}/main/resources/org/onap/policy/apex/examples/myfirstpolicy/2/config/MyFirstPolicyConfigStdin2StdoutJsonEvent.json[configuration file] +include::{adsite-examples-myfirstpolicy-dir}/main/resources/examples/config/myfirstpolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json[configuration file] ---- To test the policy try paste the following events into the console as the APEX engine executes. Note, all tests from Step 1 will still work perfectly since none of those events originate from a branch with `branch_ID` between `1000` and `2000`. The 'Task Selection Logic' will therefore pick the `MorningBoozeCheck` task as expected, and will therefore give the same results. |