diff options
author | 2020-11-16 13:13:43 +0000 | |
---|---|---|
committer | 2020-11-16 17:04:37 +0000 | |
commit | ffdb10c078b5f6a0991a0a414ad8362d2e3f17df (patch) | |
tree | d57d32c7b036d079a3b3d03cdb53108c668697f7 /examples/examples-onap-vcpe/src/test/resources | |
parent | 84d0f41eba6884cc8e75e920e766abd785c06f2b (diff) |
Update vCPE example for JSON Stringify
The JSON.stringify() call in the Rhino Javascript interpreter is not
working correctly. A previous patch introduced a method into the Apex
execution context to provide an alternative method for stringifying
JSON.
This patch updates the vCPE example in apex to use that new method.
Issue-ID: POLICY-2463
Change-Id: I85cc33dc4633b1b6f4c4db3d5ad8579c66d7c18c
Signed-off-by: liamfallon <liam.fallon@est.tech>
(cherry picked from commit da12c1c622ebc2304965ff1f646dc9783c5363c6)
Diffstat (limited to 'examples/examples-onap-vcpe/src/test/resources')
-rw-r--r-- | examples/examples-onap-vcpe/src/test/resources/etc/Notes.txt | 3 | ||||
-rw-r--r-- | examples/examples-onap-vcpe/src/test/resources/logback-test.xml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/examples-onap-vcpe/src/test/resources/etc/Notes.txt b/examples/examples-onap-vcpe/src/test/resources/etc/Notes.txt index d0a5a698e..aa378af6c 100644 --- a/examples/examples-onap-vcpe/src/test/resources/etc/Notes.txt +++ b/examples/examples-onap-vcpe/src/test/resources/etc/Notes.txt @@ -50,3 +50,6 @@ Run the engine in Docker, running with pasting into console using standard input On an extraction of the Apex tarball, run the Apex client bin/apexApps.sh full-client + +Run standalone version using Maven +mvn exec:java -Dexec.classpathScope="test" -Dexec.mainClass=org.onap.policy.apex.domains.onap.vcpe.OnapVcpeStandaloneRunner diff --git a/examples/examples-onap-vcpe/src/test/resources/logback-test.xml b/examples/examples-onap-vcpe/src/test/resources/logback-test.xml index b3a202ced..e48e25b1e 100644 --- a/examples/examples-onap-vcpe/src/test/resources/logback-test.xml +++ b/examples/examples-onap-vcpe/src/test/resources/logback-test.xml @@ -2,6 +2,7 @@ <!-- ============LICENSE_START======================================================= Copyright (C) 2016-2018 Ericsson. All rights reserved. + Modifications Copyright (C) 2020 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -23,7 +24,6 @@ <contextName>Apex</contextName> <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> - <property name="LOG_DIR" value="${java.io.tmpdir}/apex_logging/" /> <!-- USE FOR STD OUT ONLY --> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |