Rashmi Pujar [Wed, 27 Jul 2022 15:44:04 +0000 (11:44 -0400)]
Bump the version of kafka-clients dependency to 3.0.0
The issue was observed when APEX fails to consume events from
a Kafka topic when message compression is used specifically snappy.
APEX KafkaConsumer uses snappy-java library (transitive
dependency from kafka-clients) to consume events with snappy
compression. The snappy-java jar packages the native
library (built against glibc) which can be overwritten
to use alpine compatible native library (built using musl).
This means we will need to install the java-snappy-package in apex-pdp
which is also added to the commit as an option.
Alternatively, in later version of snappy-java dependency (1.1.8)
there is an option to use Java implementation instead of native
library as per:
https://github.com/xerial/snappy-java#using-pure-java-snappy-implementation.
This is a cleaner solution to fix the issue.
Issue-ID: POLICY-4310
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: Ic92b1d429ca3ca0cd1cd7070cd8d102df58b1420
liamfallon [Mon, 11 Jul 2022 13:36:05 +0000 (14:36 +0100)]
update policy models references
updated policy models references
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4233
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I51c7d75c98643cf582c9723f2f1c0d75714890ea
liamfallon [Tue, 7 Sep 2021 14:40:54 +0000 (15:40 +0100)]
Use managed version of commons-codec
apex-pdp was using a very old version of commons-codec. This change
enables it to use the version of commons-codec managed from policy
parent.
Issue-ID: POLICY-3590
Change-Id: Ic29e46b61107719df5aaad00ee923de056fe7bac
Signed-off-by: liamfallon <liam.fallon@est.tech>
(cherry picked from commit
a45cf053402a862dbbb1b17cb4a1f974b1f53edc)
Ram Krishna Verma [Thu, 5 Aug 2021 13:14:20 +0000 (09:14 -0400)]
Bump apex-pdp to 2.5.5-SNAPSHOT
Issue-ID: POLICY-3329
Change-Id: Iae6b3d356483398740da602d950879cf21d28a34
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 4 Aug 2021 23:05:33 +0000 (19:05 -0400)]
Release apex-pdp 2.5.4 docker image
Issue-ID: POLICY-3329
Change-Id: Ibf33e52ba0583c1e21ffd0dc37c6c777c8adb8b5
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 4 Aug 2021 20:31:38 +0000 (16:31 -0400)]
Release apex-pdp 2.5.4 version
Issue-ID: POLICY-3329
Change-Id: I1752a2cd0270f7eecfe5e8da8a395c82bd54c8c2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 4 Aug 2021 19:18:21 +0000 (15:18 -0400)]
Point to released dependencies
Issue-ID: POLICY-3329
Change-Id: I6866b9bef2f3dbf712780b7d1161126f716521c5
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Wed, 28 Jul 2021 16:21:35 +0000 (17:21 +0100)]
Improve APEX logging for irrelevant events
When multiple policies are expecting event on the same topic/endpoint,
a lot of event parsing failure log messages are generated
unnecessarily. With this change, only a 1 line message will
be printed if an event cannot be parsed, and the detailed messages
will be available at debug level.
Change-Id: If1e7460ef5ed86fd470396f1e2ed8cc3c8af70c4
Issue-ID: POLICY-3499
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
1036206455218a4722079b749e628ca96825418d)
Ram Krishna Verma [Thu, 22 Jul 2021 18:53:27 +0000 (14:53 -0400)]
Point to snapshot dependencies
Issue-ID: POLICY-3507
Change-Id: Ie30a1b289fea24b641495148f371e16b1ea06690
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Fri, 25 Jun 2021 17:05:38 +0000 (13:05 -0400)]
Bump apex-pdp to 2.5.4-SNAPSHOT
Issue-ID: POLICY-3329
Change-Id: I86c81ddb4ba8e5961690c451e1dd5185ecf20d3b
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Fri, 25 Jun 2021 14:34:38 +0000 (10:34 -0400)]
Release apex-pdp 2.5.3 docker image
Issue-ID: POLICY-3329
Change-Id: I0735113a8b0731850bbdd57a9b24680a8daa4b55
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 23 Jun 2021 21:50:17 +0000 (17:50 -0400)]
Release apex-pdp 2.5.3 mvn artifacts
Issue-ID: POLICY-3329
Change-Id: I05879dc7f9aabcdcb8fae1f9888d6be856435137
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 23 Jun 2021 19:38:48 +0000 (15:38 -0400)]
Point to released dependencies
Issue-ID: POLICY-3329
Change-Id: I18687d4e36a47372ddafe29b3294f9d692f1e0cb
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
JohnKeeney [Mon, 10 May 2021 12:19:46 +0000 (13:19 +0100)]
Support ':' in Apex Event Avro schema fieldnames
Similar to '.' (_DoT_) and '-' (_Dash_), the ':' (_ColoN_) character
can now be used in Apex Event Field names specified using Avro Schema
Change-Id: I320058441a1a1a544b9f1619e45c96e71e5aa9e3
Signed-off-by: JohnKeeney <john.keeney@est.tech>
Issue-ID: POLICY-3301
Signed-off-by: JohnKeeney <john.keeney@est.tech>
(cherry picked from commit
fe40844bba4a94e26efc0f1c57d62c97e35bfc79)
Ram Krishna Verma [Thu, 13 May 2021 19:31:07 +0000 (15:31 -0400)]
Remove csit folder from policy/apex-pdp
The csit test files for all repos have been consolidated in policy/docker to maintain them at single place and allow us to trigger verify jobs in gerrit reviews.
Issue-ID: POLICY-3257
Change-Id: I26d281b75d91e7bf1250e97b22d0e7a303815ed6
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
(cherry picked from commit
c70c2179f1555e356794145956cbe32a3407e622)
Ram Krishna Verma [Tue, 4 May 2021 20:30:16 +0000 (16:30 -0400)]
Add testcases for policy status and pdp statistics
Adding testcases to validate policy status and pdp statistics api's.
Issue-ID: POLICY-3257
Change-Id: I730451c4abb19bab6ddf10cba58f63ab5ca3a11a
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
(cherry picked from commit
27d086bfa7a72f761204ad7a76068687f6f36f89)
Jim Hahn [Fri, 7 May 2021 18:53:41 +0000 (18:53 +0000)]
Merge "Changes to retain executionProperties per event flow for better context handling" into honolulu
Ram Krishna Verma [Fri, 7 May 2021 14:29:30 +0000 (14:29 +0000)]
Merge "Updating APEX base image from policy-jre-alpine to policy-jdk-alpine" into honolulu
a.sreekumar [Wed, 28 Apr 2021 10:51:23 +0000 (11:51 +0100)]
Changes to retain executionProperties per event flow for better context handling
Change-Id: I11668e9222dd9c61cc3096fa5c754c8702a781bf
Issue-ID: POLICY-3227
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
7bcbd221e350e45db5be0c4f1ceb2e4e1a418f63)
a.sreekumar [Wed, 21 Apr 2021 14:01:30 +0000 (15:01 +0100)]
Changes to support Kafka over SSL in APEX
The Kafka plugin in APEX-PDP already has a field "kafkaProperties" that
can take in any properties required for the Kafka client. This is apt to
store the SSL related properties as they could change based on the
server implementation.
To make the communication possible, the only change required in APEX is
to allow a property to have an empty value.
For e.g., to disable the server host name verification, ssl.endpoint.identification.algorithm must to be explicitly set to an empty string on the client.
Change-Id: If3adaeaf11e5fbbd2aff582b5d4ba7824017ea8a
Issue-ID: POLICY-3194
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
bd21c78ed6953de4e8f9fd43311fd22bee7a5472)
a.sreekumar [Wed, 5 May 2021 10:45:51 +0000 (11:45 +0100)]
Updating APEX base image from policy-jre-alpine to policy-jdk-alpine
The stackoverflow issue is happening only in standalone mode when
RestManager class is called from APEX Javascript logic to post a
JSON body, that too 6-7 out of 10 times.
To identify the exact root cause may need more investigation,
but changing the base image from policy-jre-alpine to policy-jdk-alpine
seems to have fixed the issue during local testing.
(Issue didn't happen 10 out of 10 times)
Change-Id: Ibe718294ff9ab04c70349b3bc52c3c66619f2093
Issue-ID: POLICY-3066
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
f19e437f71b82507e406e96b99b56bb9fbb02b56)
arkadiusz.adamski [Fri, 9 Apr 2021 14:23:46 +0000 (15:23 +0100)]
Update jMeter test files
- Update performance test file
- Update stability test file
Issue-ID: POLICY-3109
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: Ibcab9cd012ed9ea50cb389f45ae7d8149b850a2d
(cherry picked from commit
4daab4def85bf5de00fb3d4cd01ebb38b61760be)
a.sreekumar [Thu, 8 Apr 2021 10:06:14 +0000 (11:06 +0100)]
APEX-PDP incorrectly reports successful policy deployment to PAP
Change-Id: I2fbf0303805b4c5feead522ad78fd4ef518659af
Issue-ID: POLICY-3173
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
ae01c8d07c3b62dd9b06958a62702816e2f7bfc1)
arkadiusz.adamski [Wed, 31 Mar 2021 11:23:35 +0000 (12:23 +0100)]
Update jMeter test file
Issue-ID: POLICY-3093
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: If9600785d46bed5596847991690fe1631b97bbf3
(cherry picked from commit
31a94576b1a60be11120deb202475850b8f83d3d)
Ram Krishna Verma [Tue, 23 Mar 2021 17:03:52 +0000 (13:03 -0400)]
Override to default entry point in apex-pdp
Overriding to default entry point (/bin/sh) in apex-pdp docker file to support stand alone installations of docker image.
Issue-ID: POLICY-3062
Change-Id: I100674cedf78f7221128bc87dd562835f297e0dd
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
(cherry picked from commit
4d967d61cfb83802b5426d5fd818bcecf144d6e1)
Ram Krishna Verma [Wed, 24 Mar 2021 18:11:27 +0000 (14:11 -0400)]
Bump apex-pdp to 2.5.3-SNAPSHOT
Issue-ID: POLICY-3150
Change-Id: I563f3f4f2d0d3355b6f683db5904bd2d339f6623
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 24 Mar 2021 17:07:33 +0000 (13:07 -0400)]
Release apex-pdp 2.5.2 docker
Issue-ID: POLICY-3150
Change-Id: Ic146feb53bfe042f2ba213a01279b8878f4f37c2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 24 Mar 2021 15:58:41 +0000 (11:58 -0400)]
Release apex-pdp 2.5.2 maven artifacts
Issue-ID: POLICY-3150
Change-Id: I27c09b2cc644937fc7812ee0bbbb6cf9b9784a78
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 24 Mar 2021 14:10:17 +0000 (10:10 -0400)]
Point to 2.4.2 models
Issue-ID: POLICY-3150
Change-Id: I92dd8dd234820daa78de25c85276bb079282811c
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Fri, 19 Mar 2021 17:49:07 +0000 (17:49 +0000)]
Fixing issues around deploying APEX policies with duplicate concepts
Deploying invalid APEX policies with duplicate concepts resulting in
corrupting all the policies in memory. This is fixed here.
This entire functionality handling multiple policies will be
revisited as part of https://jira.onap.org/browse/POLICY-3018
Change-Id: I751102d5dddcb92cdcede8222855e2f467bb724d
Issue-ID: POLICY-3141
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
e3f1349915f425c2f0c09688a2cc6d8d246f4110)
a.sreekumar [Thu, 18 Mar 2021 12:39:46 +0000 (12:39 +0000)]
Fixing parallel event execution problem in APEX-PDP REST layer
Parallel event execution in APEX was resulting in incorrect dynamic REST url. This issue is fixed in this review.
Change-Id: Id8a28c001a7fd7915df1f5909109bb369667ab40
Issue-ID: POLICY-3019
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit
369a94a9fd626b35d52c2e7ee5f19e6ff6e1b9d8)
jhh [Tue, 16 Mar 2021 15:29:52 +0000 (10:29 -0500)]
Update policy-keystore with newer certificates
Issue-ID: POLICY-3139
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia67cb1486a5625385a710c5f6c2b4325ca108820
Jim Hahn [Wed, 10 Mar 2021 21:44:57 +0000 (16:44 -0500)]
Default to honolulu branch
Issue-ID: POLICY-3105
Change-Id: I49d5c47b029d95664409f785dc3ed2e1229e9ed9
Signed-off-by: Jim Hahn <jrh3@att.com>
a.sreekumar [Wed, 10 Mar 2021 13:21:56 +0000 (13:21 +0000)]
Bump apex-pdp to 2.5.2-SNAPSHOT
Change-Id: I291f968367b1f864bb417a72fd0bdb22a07ba0f7
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Wed, 10 Mar 2021 12:16:21 +0000 (12:16 +0000)]
Release apex-pdp 2.5.1 docker
Change-Id: I9b5ee20c4760d4f9adcc28c708af62922d6952fa
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Wed, 10 Mar 2021 10:33:47 +0000 (10:33 +0000)]
Release apex-pdp 2.5.1 maven artifacts
Change-Id: Ib32e0a9dc3d3b9a27f712a02c0317bf7640bc12d
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Tue, 9 Mar 2021 18:03:40 +0000 (18:03 +0000)]
Point to policy-models 2.4.1
Change-Id: I142f196ddcd71048b6812af2d6af014ca42aa5a9
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Ram Krishna Verma [Wed, 24 Feb 2021 15:39:51 +0000 (10:39 -0500)]
Update info.yaml in apex-pdp
Issue-ID: POLICY-3028
Change-Id: Icf1319122ed19a0ba36b148bab7d77be626ba20e
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Wed, 24 Feb 2021 13:40:41 +0000 (13:40 +0000)]
Bump apex-pdp to 2.5.1-SNAPSHOT
Change-Id: I761ded255a97128f858d3a7ce95f2479b6208a4e
Issue-ID: POLICY-3088
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Ram Krishna Verma [Wed, 24 Feb 2021 03:31:41 +0000 (22:31 -0500)]
Release apex-pdp 2.5.0 docker image
Issue-ID: POLICY-3088
Change-Id: Id5754dac1e8bab68cdb280800750ad98f14c76b1
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Tue, 23 Feb 2021 20:45:51 +0000 (20:45 +0000)]
Merge "Fixing intermittent test failures in APEX"
Ram Krishna Verma [Tue, 23 Feb 2021 19:45:50 +0000 (14:45 -0500)]
Release apex-pdp 2.5.0 maven artifacts
Issue-ID: POLICY-3088
Change-Id: Ifa746c534623e43f883f9101c4beb0f34dffbaac
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Tue, 23 Feb 2021 19:07:08 +0000 (19:07 +0000)]
Fixing intermittent test failures in APEX
This review should fix the intermittent test failures in
TestExecutionPropertyRest class in APEX.
Change-Id: I1871a3ac1a40985ad44bbd1433c54930793c7b3c
Issue-ID: POLICY-3096
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Tue, 23 Feb 2021 15:45:34 +0000 (15:45 +0000)]
Point to released version of docker, parent, common and models
Change-Id: I17e2e093421733fc94a3de8f5946b867b3b73ba9
Issue-ID: POLICY-3088
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
liamfallon [Wed, 17 Feb 2021 17:19:41 +0000 (17:19 +0000)]
Convert Date to Instant in stats
Issue-ID: POLICY-3069
Change-Id: Ib30782485652ec693d2dbea79514183c7cfbb0c4
Signed-off-by: liamfallon <liam.fallon@est.tech>
Ram Krishna Verma [Fri, 19 Feb 2021 17:42:41 +0000 (17:42 +0000)]
Merge "Fix sonars in apex-pdp"
a.sreekumar [Thu, 18 Feb 2021 15:51:32 +0000 (15:51 +0000)]
Update CSIT to check for 202 response during PAP Deployment
Change-Id: I947207f10cfd3bc54193ee7c8d356ad40587f072
Issue-ID: POLICY-2526
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Jim Hahn [Wed, 17 Feb 2021 20:23:38 +0000 (15:23 -0500)]
Fix sonars in apex-pdp
Addressed the following issues:
- initialize mocks before use
- use parameterized queries
- Random() is not secure
- provide parameterized type for generics
- unused imports
- constructor visibility
- use compute() instead of containsKey()/put()
- make final fields static
- rename constants to all upper case
- no assert() in Thread.run() methods
- nested try
- nested if/else
- too many break/continue
- use try-with-resources
- repeatable annotations
- overlapping characters in reg ex
- hashcode is not sufficient in compareTo()
- need equals() with compareTo()
- make class an interface
- use parameterized test
- multiple calls in assert()
- log or re-throw
- use different type of lambda
- use parameterized logging
- use StringBuilder instead of concatenation
- use StandardCharsets.UTF_8
Issue-ID: POLICY-2906
Change-Id: I2cf8c885e3e22c2c6cbe6403a34906928afad022
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Wed, 17 Feb 2021 21:07:33 +0000 (16:07 -0500)]
Replace GsonXxxAdapters
The GsonXxxAdapters were removed from the models Serialization classes
and replaced with type adapters from common. Modified the code to refer
to the new adapters.
Without this fix, examples-onap-vcpe will not compile. Could that be
the cause of the apex-pdp standalone issue, POLICY-3066?
Allow TypeAdapter in lieu of JsonSerializer/Deserializer adapters in
config files.
Note: examples-ona-bbs refers to the following, which were removed
several releases ago (during the actor re-write?):
- appclcm.util.Serialization$RequestAdapter & Serialization$ResponseAdapter
Issue-ID: POLICY-2905
Change-Id: Ia57e0346343614cbd4a1cffd9c8393f207284244
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Thu, 11 Feb 2021 18:41:45 +0000 (13:41 -0500)]
Fix jackson version in apex-pdp
The kafka_2.12 jar depends on jackson-module-scala, but the default
version does not work with the version of jackson used by policy.
Modified the dependency tree to include a version that does work.
Issue-ID: POLICY-3005
Change-Id: I06fd5b99d6e5c1053e17a754f22f815062f907b2
Signed-off-by: Jim Hahn <jrh3@att.com>
Taka Cho [Wed, 10 Feb 2021 17:59:54 +0000 (12:59 -0500)]
move csit to policy/apex-pdp repo
move csit to policy/apex-pdp repo
Issue-ID: POLICY-2895
Change-Id: I73bd2f59c09f4ae213cab9b1dd2a83e909b218c6
Signed-off-by: Taka Cho <takamune.cho@att.com>
a.sreekumar [Tue, 9 Feb 2021 18:21:49 +0000 (18:21 +0000)]
Changes related to multi policy handling improvement in APEX
This review fixes an issue identified during testing the changes done
for improving multiple policy handling in APEX.
Changes done to a few test files in the previous review are reverted as
well.
Change-Id: I98324da708239d314aadd4c45dc377137fd552ba
Issue-ID: POLICY-2883
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
liamfallon [Wed, 10 Feb 2021 14:01:23 +0000 (14:01 +0000)]
Remove URL and useerid from JMS plugin
This review makes the default URL and userid for JMS null, the actual
values must be specified as parameters.
Issue-ID: POLICY-3035
Change-Id: I9c06d94d8816092425e2df58b849d837ad953fb2
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Sun, 7 Feb 2021 18:52:13 +0000 (18:52 +0000)]
Remove security credentials from JMS plugin
The default security credential of "password" was encoded in a constant
in the JMS plugin parameters file. This commit removes these credentials
and defaults the credentials to null.
Issue-ID: POLICY-3035
Change-Id: I6313340e64c893c4f99de78d9dd448ac53d81246
Signed-off-by: liamfallon <liam.fallon@est.tech>
a.sreekumar [Mon, 25 Jan 2021 11:03:42 +0000 (11:03 +0000)]
Improve handling of multiple policy in APEX PDP
Change-Id: Ic4adf5bd8876dc31fc93993298e90389baaa2c39
Issue-ID: POLICY-2883
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Ram Krishna Verma [Wed, 20 Jan 2021 19:04:51 +0000 (19:04 +0000)]
Merge "Add logs for REST request/response in APEX"
liamfallon [Wed, 20 Jan 2021 15:38:04 +0000 (15:38 +0000)]
Update Hazelcast version, remove security vulnerability
Security vulnerabillitles were flagged in CLM in Hazelcast
version 3.11-BETA-1. Hazelcast version 4.1.1 removes that vulnerability.
The lock handling is slightly different in version 4.1.1 and the old
ILock class is removed. The code is updated to use the new FencedLock
locks.
Issue-ID: POLICY-2943
Change-Id: I0cb7d3cb279fed17b3f8758e55902703491f4b5c
Signed-off-by: liamfallon <liam.fallon@est.tech>
a.sreekumar [Wed, 20 Jan 2021 14:35:18 +0000 (14:35 +0000)]
Add logs for REST request/response in APEX
Change-Id: Ibf2cf19a1ec91473d8c655b87a712aa8738848c8
Issue-ID: POLICY-3003
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Ram Krishna Verma [Fri, 15 Jan 2021 20:10:33 +0000 (15:10 -0500)]
Add exception to logs
Fixing the comments from previous review - https://gerrit.onap.org/r/c/policy/apex-pdp/+/116833
Issue-ID: POLICY-2885
Change-Id: I85474b365d92771e6e1b56bba95bde6e319d4ec2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Wed, 13 Jan 2021 12:26:35 +0000 (12:26 +0000)]
Avoiding unwanted logging in APEX during event processing
Change-Id: If0c93bfea08025c6c10e3f4572a14088990f415f
Issue-ID: POLICY-2885
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Liam Fallon [Wed, 6 Jan 2021 20:44:53 +0000 (20:44 +0000)]
Merge "Changed identifiers to concept identifiers"
a.sreekumar [Wed, 6 Jan 2021 14:09:26 +0000 (14:09 +0000)]
Removing duplicate logging of single response event
Change-Id: I88c8f2eea9cb295e422d20222df21a46ef84cd4e
Issue-ID: POLICY-2885
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Taka Cho [Tue, 5 Jan 2021 20:06:16 +0000 (15:06 -0500)]
use jre base 2.2.0 - apex
use jre base 2.2.0
Issue-ID: POLICY-2917
Change-Id: I75ae9f401c3665cfad6bc9657511e8c59fe09d02
Signed-off-by: Taka Cho <takamune.cho@att.com>
liamfallon [Mon, 4 Jan 2021 13:55:46 +0000 (13:55 +0000)]
Changed identifiers to concept identifiers
The policy models tosca classes ToscaPolicyIdentifier and
ToscaPolicyIdentifierOptVersion can be used to identify any TOSCA
concept, not just TOSCA policies so they are renamed to
ToscaConceptIdentifier and ToscaCinceptIdentifierOptVersion
respectively.
The class ToscaPolicyTypeIdentifier is redundant and is replaced by
ToscaConceptIdentifier.
Issue-ID: POLICY-2900
Change-Id: I5df89d023949cdf0f649951dbbd81a0b30f44ef6
Signed-off-by: liamfallon <liam.fallon@est.tech>
Liam Fallon [Mon, 21 Dec 2020 10:05:51 +0000 (10:05 +0000)]
Merge "Prune superfluous log and exception messages"
gregory.hayes [Wed, 9 Dec 2020 20:42:33 +0000 (20:42 +0000)]
Prune superfluous log and exception messages
Large volume exception messages should not be repeated in log messages
or in rethrown exceptions.
Link: https://jira.onap.org/browse/POLICY-2885
Issue-ID: POLICY-2885
Signed-off-by: gregory.hayes <gregory.hayes@est.tech>
Change-Id: I345531d3a7640cc5ad9dbfc367052b9c8cc19387
Taka Cho [Wed, 2 Dec 2020 20:27:04 +0000 (15:27 -0500)]
move all bash to ash shell scripts - apex
bash scripts convert to ash
Issue-ID: POLICY-2847
Change-Id: I4617223d4914820797f5ea121f75ee5f69a6ba40
Signed-off-by: Taka Cho <takamune.cho@att.com>
Jim Hahn [Mon, 16 Nov 2020 16:20:11 +0000 (16:20 +0000)]
Merge "Update vCPE example for JSON Stringify"
Jim Hahn [Mon, 16 Nov 2020 16:20:00 +0000 (16:20 +0000)]
Merge "Update gRPC example for JSON Stringify"
liamfallon [Mon, 16 Nov 2020 12:13:58 +0000 (12:13 +0000)]
Apex CLI editor closes standard input/output/error
The Apex CLI editor closes its input and output when it completes. This is correct behaviour when the input and output are files. However, if the input and output are tied to standard input, output, and error then if there are subsequent actions in the JVM (Such as continuing to run Apex as we do in tests), then any output such as logging is lost.
This fix checks for standard input/output/error before closing the input
and output.
Issue-ID: POLICY-2897
Change-Id: Ifa20b62511f770197f30c4a817212a92876dd6a6
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Mon, 16 Nov 2020 13:13:43 +0000 (13:13 +0000)]
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>
liamfallon [Mon, 16 Nov 2020 12:35:57 +0000 (12:35 +0000)]
Update gRPC 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 gRPC example in apex to use that new method.
Issue-ID: POLICY-2463
Change-Id: I7f789c000d53dec60020fda2a6fccd71ef18edc3
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Wed, 11 Nov 2020 11:13:34 +0000 (11:13 +0000)]
Add method to allow JSON conversion to execution context for logic
The Rhino JSON.Stringify() method does not work well. This patch allows
the user to call schema specific or generic JSON conversion using the
schema handling in Apex or not as the developer chooses.
Added a single argument stringify2Json() method.
Issue-ID: POLICY-2463
Change-Id: I9ec1e0dea2f6cd153b73b2eace63d8806674884d
Signed-off-by: liamfallon <liam.fallon@est.tech>
waynedunican [Wed, 28 Oct 2020 09:43:12 +0000 (09:43 +0000)]
Stability test plan
Update to apexPdpStabilityTestPlan.jmx file
Issue-ID: POLICY-2831
Change-Id: I76764e0614a523f2e58df04eed01111c59623e09
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Ram Krishna Verma [Tue, 27 Oct 2020 18:56:20 +0000 (14:56 -0400)]
Point to snapshot versions
Issue-ID: POLICY-2875
Change-Id: I8a7dbd9a1f8fbd88a94a85491304e0f75a05969c
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Tue, 27 Oct 2020 17:58:46 +0000 (13:58 -0400)]
Bump apex-pdp master to 2.5.0-SNAPSHOT
Issue-ID: POLICY-2875
Change-Id: Ibb0e9a243bf92f0255cb5c145d31ccddb988fdf5
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Tue, 20 Oct 2020 15:56:45 +0000 (16:56 +0100)]
Bump apex-pdp to 2.4.4-SNAPSHOT
Change-Id: I5e2cd92ee3620dea4070d9fa3aeb5ffd65f9412c
Issue-ID: POLICY-2869
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Tue, 20 Oct 2020 14:51:24 +0000 (15:51 +0100)]
Release apex-pdp 2.4.3 docker
Change-Id: I08f7984cbc4f3b00f1720f21f27b6d019f90490e
Issue-ID: POLICY-2869
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Tue, 20 Oct 2020 14:27:29 +0000 (15:27 +0100)]
Release apex-pdp 2.4.3 artifacts
Change-Id: I57e11b3993c2b97450ba8cd82872bcce466c2ee5
Issue-ID: POLICY-2869
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Pamela Dragosh [Tue, 20 Oct 2020 12:09:23 +0000 (08:09 -0400)]
Point apex to models 2.3.5
Issue-ID: POLICY-2869
Change-Id: I9880a3571da66390999f174ea2101a5e93280ac2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jim Hahn [Fri, 16 Oct 2020 14:17:43 +0000 (14:17 +0000)]
Merge "Remove apex asciidoc documents"
liamfallon [Fri, 16 Oct 2020 12:09:11 +0000 (13:09 +0100)]
Remove apex asciidoc documents
Apex documentation has now all been ported to use the ONAP recommended
rst format. This review removes the old asciidoc documents.
Issue-ID: POLICY-2824
Change-Id: I562bd344cb7d6ff36e7d54bdb8f95e3b656468f8
Signed-off-by: liamfallon <liam.fallon@est.tech>
Ram Krishna Verma [Thu, 8 Oct 2020 13:08:17 +0000 (09:08 -0400)]
Bump apex-pdp to 2.4.3-SNAPSHOT
Issue-ID: POLICY-2839
Change-Id: Ia7c847b3dafd28958d5df209af95cac19fa480a0
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 7 Oct 2020 22:41:57 +0000 (18:41 -0400)]
Release apex-pdp 2.4.2 docker artifacts
Issue-ID: POLICY-2839
Change-Id: I5b7ee8e97fd47896877e3eadc8ebb61e60b082fa
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 7 Oct 2020 21:48:29 +0000 (17:48 -0400)]
Release apex-pdp 2.4.2 maven artifacts
Issue-ID: POLICY-2839
Change-Id: I003109f4b999efaf57aba8a880f1800438baddf6
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Wed, 7 Oct 2020 19:31:12 +0000 (15:31 -0400)]
Point to models 2.3.2 release
Issue-ID: POLICY-2839
Change-Id: Icb05b2c63cf760f8b8e02731e235041d7430a06e
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Mon, 5 Oct 2020 21:10:08 +0000 (17:10 -0400)]
Remove legacy operational policy type from apex-pdp
The legacy operational policy type for apex has been removed in Guilin release.
Removing it fron supported policy type and other places in apex-pdp.
Issue-ID: POLICY-2857
Change-Id: I41d58bf7e82292e11ff752f61dbe9be96a8a7af4
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Mon, 28 Sep 2020 11:45:22 +0000 (12:45 +0100)]
Fixing APEX eventName handling to avoid duplicate requests
Change-Id: I6ee50fb455424ae1f241b7a12d1cdbf0e6ee4011
Issue-ID: POLICY-2815
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
jhh [Thu, 24 Sep 2020 19:52:14 +0000 (14:52 -0500)]
update default keystores
Issue-ID: POLICY-2827
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I7cde8197621ccc3d366baab952243c7b7894a29b
a.sreekumar [Thu, 17 Sep 2020 11:02:19 +0000 (12:02 +0100)]
Cleanup related to removal of legacy format support in APEX
This review basically just removes all "policyModelFileName" occurences
which are not used anymore.
Change-Id: Ibac8ec776dd989a5d677ff27a99eb7a36110773f
Issue-ID: POLICY-2835
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Jim Hahn [Mon, 14 Sep 2020 22:09:01 +0000 (18:09 -0400)]
Use alpine base image 2.1.1
Issue-ID: POLICY-2819
Change-Id: I28b4c8acdef0302b6419a07c4445d60c398c4f73
Signed-off-by: Jim Hahn <jrh3@att.com>
a.sreekumar [Thu, 10 Sep 2020 15:32:05 +0000 (16:32 +0100)]
Bump APEX version to 2.4.2-SNAPSHOT
Change-Id: Idde5050b425eb1bebe312e80e795c21513367a1b
Issue-ID: POLICY-2789
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Thu, 10 Sep 2020 13:43:50 +0000 (14:43 +0100)]
Release APEX docker 2.4.1
Change-Id: Ief1025869ee480fe0d43063c2590d74c6de2c77d
Issue-ID: POLICY-2789
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Thu, 10 Sep 2020 12:38:53 +0000 (13:38 +0100)]
Release APEX maven 2.4.1
Change-Id: I50a84d9abbb8563d1886f1ef199a79f1cc99b4ff
Issue-ID: POLICY-2789
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Jim Hahn [Thu, 10 Sep 2020 01:01:11 +0000 (21:01 -0400)]
Delete apex-client from packaging
The "stage-release" failed due to:
18:51:12 [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:3.1.1:copy
(copy-fat-jars) on project apex-pdp-package-full: Unable to
find/resolve artifact. Could not find artifact
org.onap.policy.apex-pdp.client:apex-client-full:jar:full:2.4.1
in release-mirror (https://nexus.onap.org/content/repositories/public/)
-> [Help 1]
Removed it from the package, as it is no longer part of apex-pdp.
Issue-ID: POLICY-2789
Change-Id: I4089096ab9668af33e885c70e140ce8fc1f51939
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Wed, 9 Sep 2020 21:39:17 +0000 (17:39 -0400)]
Remove deleted dependency from apex-pdp
One of the poms refers to core-deployment, which has been deleted from
apex-pdp. Deleted it from the pom.
Issue-ID: POLICY-2789
Change-Id: Ie9d9265ad61808ca0d5dbf8ea3e772ac7348edbb
Signed-off-by: Jim Hahn <jrh3@att.com>
Ram Krishna Verma [Wed, 9 Sep 2020 17:20:18 +0000 (13:20 -0400)]
Pointing to released common & models
Issue-ID: POLICY-2789
Change-Id: Ibaaf533f79cf2bc98090b2933392945ef8bb06ef
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Wed, 2 Sep 2020 16:19:26 +0000 (17:19 +0100)]
APEX standalone support for ToscaPolicy format
Legacy format support is removed, and Tosca format support is added.
Change-Id: I3cfc181ccb5471a5d224c0162af18c1fa0fdbc70
Issue-ID: POLICY-2812
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Ram Krishna Verma [Tue, 8 Sep 2020 17:23:34 +0000 (17:23 +0000)]
Merge "Remove client code from apex-pdp"
Taka Cho [Fri, 4 Sep 2020 12:52:15 +0000 (08:52 -0400)]
point to 2.1.0 policy-alpine base - apex
In G-rel, using 2.1.0 base.
Issue-ID: POLICY-2789
Change-Id: Ieff7433ab0c85abca218032a0a3c91bb42081a80
Signed-off-by: Taka Cho <takamune.cho@att.com>