summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org
AgeCommit message (Collapse)AuthorFilesLines
2019-06-14Merge "Custom data validator"Sunder Tattavarada1-0/+98
2019-06-14Merge "XSS Vulnerability fix in TicketEventController"Sunder Tattavarada1-0/+12
2019-06-14Merge "XSS Vulnerability fix in RoleManageController"Sunder Tattavarada1-0/+79
2019-06-14Merge "Fix sql injection vulnerability"Sunder Tattavarada1-0/+26
2019-06-05Custom data validatorDominik Mizyn1-0/+98
By creating custom data validator we can reduce code duplications. Issue-ID: OJSI-15 Change-Id: I39decf1d6ded559322c4445f0956fad2a159878d Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-31XSS Vulnerability fix in TicketEventControllerDominik Mizyn1-0/+12
@SafeHtml and SecureString used to fix this issue; Issue-ID: OJSI-209 Change-Id: I588872839696c824135bab88c100b31c23d960ba Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-31XSS Vulnerability fix in RoleManageControllerDominik Mizyn1-0/+79
@SafeHtml and SecureString used to secure this class Issue-ID: OJSI-208 Change-Id: Ie01799933add3419cacf0fc716ce2da6da0a2853 Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-30XSS Vulnerability fix in AppsControllerExternalRequestDominik Mizyn1-0/+80
@SafeHtml annotation is used to fix this problem. This patch also fix some minor issues: * isAuxRESTfulCall() method delete. Method was nowhere used. * '.length() == 0' changed to '.isEmpty()' Issue-ID: PORTAL-604 Change-Id: Ib7091622081f507812654b50275ad7ac4c97bfc3 Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-30XSS Vulnerability fix in MicroserviceControllerDominik Mizyn1-39/+58
@SafeHtml annotation is used to fix this problem. This commit also fix: * redundant local variable issue * sonar issue: Replace the type specification in this constructor call with the diamond operator ("<>"). * performance issue - String concatenation argument as argument to 'StringBuilder.append()' call * redundant cast * redundant 'throws Exception'. 'Exception' is never thrown * access static member via instance reference * unused declarations Issue-ID: PORTAL-602 Change-Id: Id92fe2d9cfe239474403f611f3d5d0170acf63cc Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-30XSS Vulnerability fix in DashboardSearchResultControllerDominik Mizyn1-28/+114
@SafeHtml annotation is used to fix this problem. New class 'SecureString' must be added to project to valid incoming Strings from '@RequestParam String incoming String' pom.xml file update. This patch also fix: * remove unnecessary semicolon * Sonar issue: Replace the type specification in this constructor call with the diamond operator ("<>") Issue-ID: PORTAL-601 Change-Id: Id214b6e65f0c486141679fd23725a7fb66443acd Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-30Fix sonar issue: Override "equals(Object obj)"Dominik Mizyn1-0/+12
This commit provide equals method for CentralV2UserApp and test for this method. Issue-ID: PORTAL-599 Change-Id: Ied44c680032831ec6a02211f658ec16f0aad8f4a Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2019-05-30Fix sql injection vulnerabilityDominik Orliński1-0/+26
Use a variable binding instead of concatenation. Add new test for function 'createLocalUserIfNecessary'. Issue-ID: OJSI-174 Change-Id: Iddd65893bb2cb16c90d4f8db59816fdf261874bc Signed-off-by: Dominik Orliński <d.orlinski@samsung.com>
2019-05-02Fix Sonar Bugs NullPointersk.kazak2-88/+123
Fix Sonar bugs - potential NullPointerException in portal-BE-common: ExternalAppsRestfulController and ApplicationRestClientServiceImpl Changed Tests for updated method in ExternalAppsRestfulController Added new test Formatted according to ONAP formatting guidelines Change-Id: I7c0587127e32ba3f06a138a0b4b2526fa10ea1f6 Issue-ID: PORTAL-556 Signed-off-by: k.kazak <k.kazak@samsung.com>
2019-04-29Fix Sonar Bugs NullPointersk.kazak3-1/+78
Fix Sonar bugs - potential NullPointerException Remove unused code Add/Update Tests for updated methods Change-Id: Iaf28a0ee5f6507da1caf4b497e2d73bf35bc0b58 Issue-ID: PORTAL-556 Signed-off-by: k.kazak <k.kazak@samsung.com>
2019-04-19Sonar fix too mnay method paramArindam Mondal2-42/+42
+) Reduced too many method param ++) Code format Issue-ID: PORTAL-561 Change-Id: I2c27344477b318ab0f1a77442579be459c3597fd Signed-off-by: Arindam Mondal <arind.mondal@samsung.com>
2019-03-20CADI AAF Integration and merging the codehb123f16-363/+446
Issue-ID: PORTAL-319 CADI AAF Integration and code merge Change-Id: I6e44f3b2741858d8d403b77a49ec9a0153084801 Signed-off-by: hb123f <hbindu@research.att.com>
2018-10-09Merge "added a test in CustomLogginFilterTest.java"Manoop Talasila1-31/+43
2018-10-09Merge "Add roles to user"Manoop Talasila2-46/+2
2018-10-09Add roles to userKotta, Shireesha (sk434m)2-46/+2
Issue-ID: PORTAL-432 add roles to user when the app is centralized Change-Id: I46a782be24ea1804597dc7205bf98170731ffe4d Signed-off-by: Kotta, Shireesha (sk434m) <shireesha.kotta@att.com>
2018-10-09Merge "test equality in EPUserAppRolesRequestTest.java"Manoop Talasila1-40/+160
2018-10-09Merge "test added MusicCookieCsrfTokenRepository.java"Manoop Talasila1-0/+71
2018-10-09Merge "test cases for the remaining lines of equal method"Manoop Talasila1-21/+39
2018-10-09Merge "test covered for comparetTo method in EPUser.java"Manoop Talasila1-103/+110
2018-10-09Merge "added test cases in EPRoleTest.java"Manoop Talasila1-53/+65
2018-10-04test added MusicCookieCsrfTokenRepository.javaasgar1-0/+71
Change-Id: I9791e63f64aa6e37a422d878c45274a39e3afdf2 Issue-ID: PORTAL-428 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-10-03added a test in CustomLogginFilterTest.javaasgar1-31/+43
Change-Id: Ib801f9ab42486d51fa64b6575124e5668a48c853 Issue-ID: PORTAL-427 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-10-03test equality in EPUserAppRolesRequestTest.javaasgar1-40/+160
Change-Id: Ib8e9ff486af57ee03c7f47749d7a040c5ae9d4a0 Issue-ID: PORTAL-426 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-10-01Merge "test cases added for PortalRestResponse.java"Manoop Talasila1-0/+74
2018-09-28test covered for comparetTo method in EPUser.javaasgar1-103/+110
Change-Id: I7a171068a878f4500af0996d0a7123d2472fef18 Issue-ID: PORTAL-413 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-28added test cases in EPRoleTest.javaasgar1-53/+65
Change-Id: Ib50643fa9d07948b5bd5815b126c937397dc4454 Issue-ID: PORTAL-411 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-27test cases for the remaining lines of equal methodasgar1-21/+39
Change-Id: Ia96a9ee1f4f7cd286202f7abeefc0548227fa79a Issue-ID: PORTAL-409 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-26test cases added for PortalRestResponse.javaasgar1-0/+74
Change-Id: I974be70db1b036be3eea57cfaf1359d1bfea9407 Issue-ID: PORTAL-404 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-26equals method covered in EPUserApp.javaasgar1-72/+116
Change-Id: Ib804ca53a4c308a3c2710acc2efdd351d103047a Issue-ID: PORTAL-403 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-07-30JUnits for coveragesa282w42-335/+2949
Issue-ID: PORTAL-273 JUnits for sonar coverage Change-Id: Icb88d8563164281d29877bbc2de9c8f1f780aa0c Signed-off-by: sa282w <sa282w@att.com>
2018-06-27JUnits for coverageHima Elisetty48-333/+8330
Issue-ID: PORTAL-273 JUnits for sonar coverage Change-Id: Ibfa06dcbc7809d9d2598af4ba31dd8c88943aa20 Signed-off-by: Hima Elisetty <hb123f@att.com>
2018-06-21Music health check apissa282w3-0/+305
Issue-ID: PORTAL-291, PORTAL-307 Included the music changes, other changes from 2.3 branch to be included in master, added JUnits to the new classes and updated the document with the API version changes. Change-Id: I7b4c54be49317264afbdcb8d8ae3f20395bf0e1f Signed-off-by: sa282w <sa282w@att.com>
2018-05-25Bulk upload changes and music health check apisKishore Reddy, Gujja (kg811t)19-229/+1605
Issue-ID: PORTAL-290, PORTAL-291 Bulk upload changes and music health check apis Change-Id: I63d289d75420658ff4a14385a5106838fa8c32b2 Signed-off-by: Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
2018-04-19Replace ecomp referencesHima Elisetty151-151/+151
Issue-ID: PORTAL-19 Remove ecomp trademark Change-Id: I76311f2ab10b2c0d406415ea2f922d1aad993e21 Signed-off-by: Hima Elisetty <hbindu@research.att.com>
2018-03-23Security fixesKishore Reddy, Gujja (kg811t)1-1/+1
Issue-ID: PORTAL-136, PORTAL-155, PORTAL-210,PORTAL-217 Includes JUNITS and docker changes, music integration and security fixes Change-Id: Ib9205d7e8aa31c525a87e9d9a8076906ea4c7f0a Signed-off-by: Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
2018-03-23Docker changes and Music IntegrationKishore Reddy, Gujja (kg811t)3-18/+171
Issue-ID: PORTAL-136, PORTAL-155, PORTAL-210,PORTAL-217 Includes JUNITS and docker changes, music integration and security fixes Change-Id: Ib974401b48efc1f0d4f98036b0028043c3283691 Signed-off-by: Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
2018-03-07Merge "Unit Test Case for EPLeftMenuServiceImpl.java"Sunder Tattavarada2-79/+249
2018-03-07Unit Test Case for EPLeftMenuServiceImpl.javaHari Om Verma2-79/+249
Added JUnit test cases for EPLeftMenuServiceImpl.java Change-Id: Ieea37f1723566f8135b9d7a17d227e66b45aa110 Issue-ID: PORTAL-208 Signed-off-by: Hari Om Verma <hv00482922@techmahindra.com>
2018-03-06Added JunitsKishore Reddy, Gujja (kg811t)1-1/+1
Issue-ID: PORTAL-136 Includes JUNITS Change-Id: I5ea9dc100dcf4a14c57dff5663e1e55a1677a017 Signed-off-by:Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
2018-03-05Merge "Added Junits"Sunder Tattavarada1-0/+141
2018-03-05Merge "Adding Junit Test for EPAuditServiceImp.java"Sunder Tattavarada1-0/+88
2018-03-05Adding Junit Test for EPAuditServiceImp.javaHavaldar Girish1-0/+88
Adding Junit Test for org.openecomp.portalapp.portal.service.EPAuditServiceImp.java Change-Id: I8133ed1776026a3183493f9011d0a2c6035fb8a7 Issue-ID: PORTAL-184 Signed-off-by: Havaldar Girish <hg0071052@techmahindra.com>
2018-03-02Added JunitsKishore Reddy, Gujja (kg811t)1-0/+141
Issue-ID: PORTAL-136 Includes JUNITS Change-Id: I025eff3eb4f74940cd427767e4d1f376eabfe51f Signed-off-by:Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
2018-03-01Added JunitsGujja2-37/+404
Issue-ID: PORTAL-155 Includes JUNITS, security issues fix Change-Id: I7c4032808163c46bf53477195823c7ed9dc99edc Signed-off-by:GUJJA <kg811t@research.att.com>
2018-02-26Added JunitsGUJJA6-85/+1050
Issue-ID: PORTAL-207 Includes JUNITS Change-Id: If0befc3456e15106ac1f79e4c4462c072beeeec3 Signed-off-by:GUJJA <kg811t@research.att.com>
2018-02-23Merge "Added Junits"Manoop Talasila6-5/+573