summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-04-15Bump policy-apex-pdp to 2.3.2-SNAPSHOTa.sreekumar89-89/+89
Change-Id: Ic668ab20498bdc41edc78f52c7ce9d89a1385f19 Issue-ID: POLICY-2378 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-04-15Release 2.3.1 apex docker imagePamela Dragosh1-0/+8
Issue-ID: POLICY-2378 Change-Id: I0d3d2733083b50dc4b0f5e8126e7014d4ef97a4d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14Release apex 2.3.1Pamela Dragosh1-0/+4
Issue-ID: POLICY-2378 Change-Id: I7b966eca01f8baf0be3461b33efb8faaf12eb29c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14Merge "Point to released common/models"Ram Krishna Verma1-2/+2
2020-04-14Point to released common/modelsPamela Dragosh1-2/+2
Issue-ID: POLICY-2378 Change-Id: I3d4ef6b6b8f61c0af23676189c9bf6eec529e3f3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14SONAR issue fixaditya.puthuparambil3-51/+59
Issue-ID: POLICY-1913 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: Ie6dccc50ad63c5fdca1e79d7985aec2455041b56
2020-04-13Point common/models fixPamela Dragosh1-2/+2
Fix for naming policy and yaml string conversion. Issue-ID: POLICY-2486 Change-Id: I1fc63ab7fdde63c5555d0bae784aee1309f7f8c3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-11Point to released parent, common modelsPamela Dragosh1-3/+3
Issue-ID: POLICY-2378 Change-Id: I219f1ba6c816166c98346df47a68d21b9736b6b5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-07Make sure Editor's css overrides common csshuaxing1-0/+8
Issue-ID: POLICY-2446 Signed-off-by: huaxing <huaxing.jin@est.tech> Change-Id: I1bc45367884ec78436a97256ac4286ab79c8a6b7
2020-04-06Fix intermittent unit test failures WebSocketliamfallon4-15/+25
The Web Socket server is marked as started before the start process has complted. This change fixes that issue. Issue-ID: POLICY-1470 Change-Id: I5b5ef5832893d884a6551b0516df91cb71d6c622 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-04-05Fix intermittent unit test failures reseterquestorliamfallon9-310/+232
When consumers and producers are paired as in the case of the REST Rquestor, both sides must come up and be wired together in the initiation phase of apex-pdp before the consumers and producers start handling envents. In the ApexActivator class, the consumers were started immediately after they were initialized meaning that a consumer could return events to a producer that had not started yet. This change fixes the ApexActivator so that it waits until all consumers and producers are initialized before starting event handling. It also fixes the timings on RestRequestor tests and tidies up the unit tests. Issue-ID: POLICY-2469 Change-Id: Ib66d9531bf21f2a879ab33795aded4f48e7bfbc6 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-04-04Merge "Refer io.netty from policy/parent"Liam Fallon4-2/+26
2020-04-03Refer io.netty from policy/parentRam Krishna Verma4-2/+26
Issue-ID: POLICY-2467 Change-Id: Iea562574f466775f4dd443fc4ef9ecaa6ba610fd Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-04-03Fix failing Kafka testsliamfallon8-109/+127
All the Kafka components need something near 10 seconds to come up completely. This review tweaks the timing to allow the test Kafka server to come up and to allow the consumers to connect to it. Issue-ID: POLICY-2106 Change-Id: I6dd8ace0848bdc2549e658ef8908b4d85d5ea789 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-04-02Merge "Fix hanging timeout on Executor test"Jim Hahn24-143/+190
2020-04-02Merge "Fix UUID missing in policy editor"Liam Fallon8-44/+70
2020-04-02Fix hanging timeout on Executor testliamfallon24-143/+190
Issue-ID: POLICY-2106 Change-Id: I7bd44f8dfe349d73a4c8c4f978a30b455c45b2c7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-04-02Fix UUID missing in policy editorhuaxing8-44/+70
Issue-ID: POLICY-2445 Signed-off-by: huaxing <huaxing.jin@est.tech> Change-Id: I7fda1961e95b1f18da6c0e22c7799195fc511443
2020-04-01My First Policy State Finalizer Exampleaditya.puthuparambil17-163/+875
Issue-ID: POLICY-1122 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: I552b58f39325982f1e26e59b352dfbe70cf35e7c
2020-03-31Merge "Fix State Finalizer Prepare and Cleanup"Jim Hahn5-65/+75
2020-03-31Fix State Finalizer Prepare and Cleanupliamfallon5-65/+75
The prepare() and cleanup() method were not called on state finalizers for states. This review adds calls for them. Issue-ID: POLICY-2450 Change-Id: I27aec4dea51f3e22b5922c04c7b7b974fca24292 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-31Bump version of Infinispan for securityliamfallon1-2/+3
Change-Id: Ie01b221e182dd43e85e3e7277bb55169f85a1460 Signed-off-by: liamfallon <liam.fallon@est.tech> Issue-ID: POLICY-2449 Change-Id: Icbb7a769eb8f0d9ef278d222ab007f330576abb3 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-30Merge "Fix hanging tests in JavascritExecutor"Ram Krishna Verma6-66/+419
2020-03-30Fix hanging tests in JavascritExecutorliamfallon6-66/+419
Added tests to check threads start, execute, and stop correctly and fixed JavescriptExecutor class to handle startup and shutdown correctly without hanging. Issue-ID: POLICY-2106 Change-Id: I9ab41023aae2ab1cbcaea53fdf5d48eccd90a2f1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-30Fix timeout issues in gRPC testsliamfallon3-12/+29
When running the gRPC tests in a slow or overloaded environment, the timeupts must be set longer. Issue-ID: POLICY-2106 Change-Id: Id152f1f82ef47f646c7b0488b4486425c6816e31 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-27Point to latest snapshotsPamela Dragosh1-2/+2
Issue-ID: POLICY-2378 Change-Id: Ie85ef583e8f0732a3b716b9e9b8947fb349522c7 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-26Merge "Point to models 2.2.2"Jorge Hernandez1-1/+1
2020-03-25Point to models 2.2.2Pamela Dragosh1-1/+1
Issue-ID: POLICY-2378 Change-Id: Iffbed4a039e9a645cc081f09997aeedf0dba4056 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-25Bump policy-apex-pdp to 2.3.1-SNAPSHOTa.sreekumar89-119/+119
Change-Id: I59b93fccb0f3a41f8db753d1e8e2978bbb51e9a0 Issue-ID: POLICY-2378 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-25Release policy-apex-pdp 2.3.0 docker imagea.sreekumar1-0/+8
Change-Id: I7ad38253cab457f92912e17ea9eaf8300347f62e Issue-ID: POLICY-2378 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-25Release policy-apex-pdp 2.3.0 artifactsa.sreekumar1-0/+4
Change-Id: Id23e5c848b6a338f09bbaecbf89e184e4e9f4e4f Issue-ID: POLICY-2378 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-25Ignore JUnit tests that hang on awaitliamfallon4-2/+11
This change ignores the tests that are hanging in Jenkins until the Apex images are released. Once the images are released we'll fix these tests. Issue-ID: POLICY-2106 Change-Id: I6a733896da044d3f24443ac202d6122a341db135 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-25Add timeout on Javascript latch awaitsliamfallon1-2/+7
It is possible that the initiation and especially shutdown happens so fast that the execution thread counts down the latch before the caller calls await(), in which case the Javascript Rhino thread will hang. This review adds a timeout on the await calls. Issue-ID: POLICY-2106 Change-Id: Icfc6d4b478cca62522461c25d61ce9ee7328684a Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-25Reduce size of client artifactsliamfallon10-510/+77
This change: - Removes separate packaging of the three clients - Reduces the size of the combined client by suppressing unused dependencies - Removes the Servlet code from the Docker packaging - Removes the client WARs from the docker package Issue-ID: POLICY-2443 Change-Id: If0a0c2dddc3f05f2815b84ae04fcc029b1c4fe08 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-24Launch separate threads for Javascript task executionliamfallon10-96/+346
When a policy is loaded, a separate thread is spawned for each Javascript script executor. This allows us to precompile the Javascript scripts and also to have a larger stack available for script execution. Issue-ID: POLICY-2106 Change-Id: I97323aafb623ba537ac1889b3c9504b345b4f67e Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-23Point to released artifactsPamela Dragosh1-3/+3
Issue-ID: POLICY-2378 Change-Id: Ie1803786c6bbc636ef0f98a1c158aa17b6292e84 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-23Adding example for APEX gRPC plugin for CDS interactiona.sreekumar31-4/+2021
Change-Id: I8361eb0cbe74c3548ca98f3005bc37f5a1f91747 Issue-ID: POLICY-2436 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-19Merge "Apex-pdp tutorial documentation changes"Jorge Hernandez5-30/+39
2020-03-19Apex-pdp tutorial documentation changesaditya.puthuparambil5-30/+39
Issue-ID: POLICY-2424 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: I92491c904b65a0db93c9e6eaba676c653c276175
2020-03-17renew policy certs till 03/17/2021jhh2-0/+0
Issue-ID: POLICY-2402 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I6bd157d80a0aa1604e634ec561ee76e8197e97df
2020-03-11Fix minor checkstyle/eclipse warningsliamfallon16-202/+142
Some minor checkstyle and eclipse warnings have crept into the code in the last few weeks. This review cleams them up. Issue-ID: POLICY-1913 Change-Id: Ib5f103bc28c71a6c4db05ea05719eff41bb38914 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-11Merge "Convert examples to Rhino Javascript format"Ram Krishna Verma51-3755/+367
2020-03-11Merge "Fixing the gRPC consumer side"Ram Krishna Verma5-83/+146
2020-03-11Convert examples to Rhino Javascript formatliamfallon51-3755/+367
All examples are converted to Rhino Javascript from Nashorn Javascript. Issue-ID: POLICY-2106 Change-Id: Ia6fec5b57b1e6131799b4b069968e4766ce54c96 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-11Merge "Sonar Security vulnerabilities fix"Ram Krishna Verma3-49/+58
2020-03-11Fixing the gRPC consumer sidea.sreekumar5-83/+146
Change-Id: I21d9253f41eee9b958e8fb723f6c19f266502cef Issue-ID: POLICY-1656 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-11Adapt vCPE example for Rhino Javascriptliamfallon26-104/+146
Minor changes to Javascript source for execution under the Rhino script engine. Issue-ID: POLICY-2106 Change-Id: Ib7e30ce0067a11ea1bb3ca8d197c796dba9ea091 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-11Sonar Security vulnerabilities fixaditya.puthuparambil3-49/+58
Issue-ID: POLICY-1913 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: Ic86e04776c9300e37134210cd9db5b6d7e6a5a9e
2020-03-10Merge "Sonar Bug fix"Liam Fallon2-65/+69
2020-03-09Use Rhino javascript executor in apex-pdpliamfallon76-1158/+492
Integation unit tests resultd in StackOverflowException errors in the Graal Javascript interpreter. Following extensive testing and trouobleshooting, it proved very difficult to fix these issues in Graal as the stck overflow errors were occurring in native class instantiation methods being invoked by Grall on the JVM. The alternative Rhino Javascript engine is developed by mozilla, and was incorporated into the Java 6 JVM and evolved into Nashorn in the Java 8 JVM. Oracle dropped Nashorn in Java 11. However, in parallel, Rhino development has continued. This review brings in the Rhino javascript engine into apex-pdp as the replacement for Nashorn and instead of Graal. Graal seems to be pretty unstable as yet so we may bring it in in future releases but for now Rhino is a more stable and reliable alternative. Issue-ID: POLICY-2106 Change-Id: I0edeff3b0bee404b38e3ebe22001a6e3375a44dc Signed-off-by: liamfallon <liam.fallon@est.tech>