aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/m2
AgeCommit message (Collapse)AuthorFilesLines
2020-07-17Remove m2 model from drools-appsJim Hahn69-10366/+0
With the advent of the new Actor model, then m2 model is no longer needed in drools-apps. Issue-ID: POLICY-2725 Change-Id: I3aa43619391552c00bd4e138aee96ca5d5bd55a8 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-07-14Remove usecases and legacy actor codeJim Hahn24-19/+2239
Made the following changes to remove usescase and legacy actor code: - deleted the usecases controller and feature - deleted code associated with legacy actors, with the exception of AaiManager, which is needed by RestControlLoopManager - moved the contents of the "guard" project into the m2/guard project, as that is the only thing that still needs it - modified the m2/GuardContext to get the name of its persistence unit from the properties so it could be overridden by junit tests - used eclipselink constants Also fixed a bug in the properties for the VFC actor. Addressed review comment: - removed usecases from Dockerfile Issue-ID: POLICY-2558 Change-Id: I677d68c9efed9247c3d55773abdcc736b577a6b4 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-07-10Bump drools-apps to 1.7.1-SNAPSHOTJim Hahn9-9/+9
Issue-ID: POLICY-2695 Change-Id: Iec9af37a01ba35c5b5419399cfb3d3bc80093101 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-06-30sonar issue - drools appsTaka Cho2-1/+4
- elevate the visibility of readResolve - test case without assertions Issue-ID: POLICY-2616 Change-Id: Ifde4b8c5e1281f8625a1203858fbe0467defe353 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-29controlloop m2 sonar fixTaka Cho1-2/+1
- remove some unused statement - remove unnecessary check Issue-ID: POLICY-2616 Change-Id: Ieb2c898a3c6ad7210642aef990b43c9a01fc15b3 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-26m2 sonar fixTaka Cho1-10/+8
- "get" returns a string already - to avoid sonar issue for duplicated strings - formating Issue-ID: POLICY-2616 Change-Id: I1fac65bba5ecb402c784dd585ebcd7992cf31545 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-25Use parent snapshot in drools-appsJim Hahn26-98/+40
Fixed checkstyle issues that were subsequently reported. Also fixed a few eclipse warnings. Also fixed some of the sonar issues in the files that were touched: - use "{}" in logger calls - camelcase method names - use "<?>" instead of generics - add serialization ID Issue-ID: POLICY-2188 Change-Id: I5c94a2e26dd74a61a0a919e1c3da17ab02a5bc9d Signed-off-by: Jim Hahn <jrh3@att.com>
2020-06-18fix sonar for m2/base - 2Taka Cho1-4/+5
- unused import - Hide Utility Class Constructor : Utility classes should not have a public or default constructor Issue-ID: POLICY-2616 Change-Id: I338a739b6e9fb5f4b47898566362b8a87201dae3 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-17Merge "m2 sonar issues"Ram Krishna Verma2-16/+7
2020-06-17m2 sonar issuesTaka Cho2-16/+7
- unused import - logger format - Extract the assignment out of this expression - Replace this if-then-else statement by a single return statement Issue-ID: POLICY-2616 Change-Id: I2d04569a7070f79fc8979274bce2b87b4b2f3e24 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-17Merge "fix sonar issue for m2/base"Jorge Hernandez1-10/+8
2020-06-16m2/appclcm sonar issue fixTaka Cho1-12/+12
swap the arguments use assertNull Issue-ID: POLICY-2616 Change-Id: Id5bd0b7acd0914566dfdebdb42fdcaabf9eb3012 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-16fix sonar issue for m2/baseTaka Cho1-10/+8
-using {} in logger in stead -diamond operator (<>) to reduce the verbosity of generics code. -rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$' Issue-ID: POLICY-2616 Change-Id: I8e722af52b08382ca53190a33a3a27ad1e7d4830 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-12Merge "sonar issue drools applications - 3"Pamela Dragosh3-11/+7
2020-06-10sonar issue drools applications - 3Taka Cho3-11/+7
get already returns string redudant return block unused import swap expected argument use equals method instead useless assignment for payload Issue-ID: POLICY-2616 Change-Id: Ie4f07085994420b7ea3f39db89f980f6594f01b7 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-09sonar issue drools-application - 2Taka Cho2-14/+14
fixed some sonar issues: removed empty method, put expected value in the 1st argument Change-Id: I86747938187abda34e9ab41b735d55fbf920ecd8 Issue-ID: POLICY-2616 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-06-01Use OperationsHistory from modelsJim Hahn2-9/+5
Deleted Dbao and replaced it with the shared class in policy-models. Also had to update the queries and the persistence.xml accordingly. Note: with this change, the "database" project is no longer needed, so it was deleted. Issue-ID: POLICY-2581 Change-Id: Idfde68b28b3a27f2ee794fa477d15e0f12717373 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-05-26Bump Drools-Apps to 1.7.0a.sreekumar9-9/+9
Change-Id: I1b4b088d276da6aae3b577102470a6d8e3dcdc6a Issue-ID: POLICY-2514 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-05-26Bump drools-applications to 1.6.5a.sreekumar9-9/+9
Change-Id: I52c0b421e6ca94153b7f37ae67fdcd086f14f3fa Issue-ID: POLICY-2514 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-04-28Bump drools-apps to 1.6.4-SNAPSHOTPamela Dragosh9-9/+9
Issue-ID: POLICY-2510 Change-Id: Ic431fa80f7b389c84b799f8662df81b4f0ea124f Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-27Bump drools-apps 1.6.3-SNAPSHOTPamela Dragosh9-9/+9
Before I can re-release, the patch needs to be bumped. Issue-ID: POLICY-2510 Change-Id: Ib868d0d72cd28f87b5eb7c233f239d219f699954 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-15bump to 1.6.2-SNAPSHOTjhh9-9/+9
Issue-ID: POLICY-2378 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I8feb308f90755a078d0b35e0d8742e385916c225
2020-03-25Bump drools-applications to 1.6.1-SNAPSHOTPeyton Puckett9-9/+9
Issue-ID: POLICY-2378 Change-Id: Ia97bc810e6ae23ffb0ecea28ddbab385d7d9af6d Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2020-03-24M2 junit intermittent timeout issueJoseph Chou1-7/+4
Update code to increase maximum wait time Issue-ID: POLICY-2435 Change-Id: Ib9d7452743c6cdb39c56f4bbed0fd7fd903dc8bc Signed-off-by: Joseph Chou <jc2555@att.com>
2020-03-18ONAP junit code updateJoseph Chou1-8/+25
M2 junit failed on AppcLcmTest Issue-ID: POLICY-2435 Change-Id: I30a2db72b6b127857dc3db2aeda75e46fa919dcd Signed-off-by: Joseph Chou <jc2555@att.com>
2020-03-06ONAP m2 base junit coverageChou, Joseph (jc2555)6-167/+390
Added testcases to improve code coverage Issue-ID: POLICY-2289 Change-Id: Ib573ae668b5bca008c4600df99e7f1cf4053d1a1 Signed-off-by: Joseph Chou <jc2555@att.com>
2020-03-03use policy/parent awaitilityPamela Dragosh7-85/+0
Also cleaned up a bunch of these pom's, they do not all need to declare JUnit, assertjr, mockito testing classes. Can use more cleanup in some other common dependencies, but we'll defer. Issue-ID: POLICY-2381 Change-Id: Ib1149a0cd0215d1a38d5b625634440413cf79089 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-02-14Change ip adresses used for m2 testsBruno Sakoto3-10/+32
By default Mac OS is not able to use loopback addresses other than 127.0.0.1. Issue-ID: POLICY-2368 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ibf4a884d2669a5f4969960963638aa213eebf172
2020-02-13Add tests to AppcLcm to increase coveragedg57623-7/+202
Add additional test cases to AppcLcm to increase jUnit test coverage this includs adding the file AppcLcmActorTest.java. Minimum test converage for the java files is over 80%. Issue-ID: POLICY-2291 Signed-off-by: dg5762 <dg5762@att.com> Change-Id: I26ed2b90f12f51568ceed843b65d2f119155391f
2020-01-17Add jUnit Test Coverage M2 GuardPeyton Puckett2-1/+67
Issue-ID: POLICY-2290 Change-Id: I05a737333141576512841d6872ecdb0a089a0a90 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2020-01-17Update m2 test to mockito2 for JDK 11Pamela Dragosh2-2/+2
Peyton's review was pulled in before Ali's JDK 11 fix. So unfortunately this update did not get done. Issue-ID: POLICY-1587 Change-Id: I9666b6e2f2327183e15bfe19d34515d0426c8ff0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-01-16Merge "policy/drools-apps jdk11 upgrades"Pamela Dragosh15-62/+64
2020-01-16policy/drools-apps jdk11 upgradesHockla, Ali (ah999m)15-62/+64
Issue-ID: POLICY-1587 Change-Id: I02bef6c829f2f24954ae73fb0c540ab7198775ce Signed-off-by: Hockla, Ali (ah999m) <ah999m@att.com>
2020-01-14Add jUnit Test Coverage M2 UtilPeyton Puckett2-2/+70
Issue-ID: POLICY-2293 Change-Id: Ia189239911053bd8937c0791aafcc55207c11dcf Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2020-01-10Add m2 model, including the LCM applicationStraubs, Ralph (rs8887)45-0/+7717
Issue-ID: POLICY-1948 Change-Id: I18a5231d3102073c928a591c9e91b241b7093680 Signed-off-by: Straubs, Ralph (rs8887) <rs8887@att.com>