aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/test/java/org
AgeCommit message (Collapse)AuthorFilesLines
2022-07-01ValidateSchemaTest sonar issue, Replace these 3 tests with a single ↵Ganesh1-22/+7
Parameterized one Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: I7f65fcecea7ac6ba574f2cb9bd128a200fbae4e1 Issue-ID: CLI-444
2022-06-27sonar issue, Replace these 3 tests with a single Parameterized oneGanesh1-18/+5
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: I3868ba6b54e2412de99580d19165cff448937465 Issue-ID: CLI-444
2022-05-09Sonar violation fixes for Parameterized tests and Lambda Expressionsabhishek.c921-27/+33
Violations : Parameterized tests for OnapCommandprintTest Use lambda expression for OnapCommandSchemaCmdLoader Refactor method in OnapCli Signed-off-by: abhishek.c92 <abhishek.c92@samsung.com> Issue-ID: CLI-446 Change-Id: I8e8337d2b5993983d8ea105b2d1882952a3783a3
2022-04-08Removed unnecessary assertionssharath reddy1-2/+0
Issue-ID: CLI-442 report: tested weather-report, execution-list sonar issue link: https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=onap_cli&open=AXl7xGycwWvHrAKRLY53 Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: I6d99e0f49ad9b33ff56e7fb5a02c8af7ece480cf
2022-04-05simplified an assertion.sharath reddy1-2/+2
Issue-ID: CLI-439 report: tested weather-report, execution-list Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: I08cb34a86b00fe7832511cb6ec30b718f7c26aca Signed-off-by: sharath reddy <bs.reddy@huawei.com>
2022-03-25Fixed Sonar Bug and Code Smell Blockerssharath reddy2-4/+5
Issue-ID: CLI-439 Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: I81bd79661ab7c6b1152fa481d9273a86e77b4f3a Signed-off-by: sharath reddy <bs.reddy@huawei.com>
2022-03-22Fixed Sonar Bugs & Vulnerabilitiessharath reddy1-2/+2
Issue-ID: CLI-439 Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: Icbe3d40286d15b8b3639af7a7eb6c4e189169a3f Signed-off-by: sharath reddy <bs.reddy@huawei.com>
2021-01-12Fix OnapCommand class modelBogumil Zebek1-10/+101
- No Metadata in OnapCommand Info section - Optional parameters with default values are lost after overriding selected parameter Issue-ID: CLI-349 CLI-348 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: I893bb01809737b4262a99f355d6c7681c8c275bb
2020-12-14printyaml method fixpriyanka.akhade1-0/+35
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Change-Id: I4e9178a884981600731b2a33fb8bec2640fcd9b7 Issue-ID: CLI-251
2020-08-06Merge "Code improvement - Pending sonar issues"Kanagaraj Manickam9-9/+36
2020-08-05Code improvement - Pending sonar issuespriyanka.akhade9-9/+36
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: CLI-270 Change-Id: I11bff3e6fa5f3299ee3ad0f7bf5d3e42ee7a704c
2020-08-04code improvements-sonar fixesSravanKumarGunda2-4/+4
Signed-off-by: SravanKumarGunda <sravan.kumar1@huawei.com> Issue-ID: CLI-270 Change-Id: I3f663df51e27e7295f9cad51ace100d784ab94bb
2020-07-14Code ImprovementsSravanKumarGunda11-25/+30
Signed-off-by: SravanKumarGunda <sravan.kumar1@huawei.com> Issue-ID: CLI-270 Change-Id: I3de621dab68f153c16a36102239b095c60abf9ab
2020-07-09Fixed sonarcloud issuesjitendra0074-1/+61
Issue-ID: CLI-270 Signed-off-by: jitendra007 <jitendra.sharma1@huawei.com> Change-Id: Ibb52afb2fe8fe7c9be4299d1a1cb1e3d32ab0eca
2020-07-02Code Improvements-Sonar Issue FixesSravanKumarGunda4-1/+34
Signed-off-by: SravanKumarGunda <sravan.kumar1@huawei.com> Issue-ID: CLI-270 Change-Id: Iba00ddc8c471bc5990d87ba3729af373e2bd6711
2020-07-01code improvementspriyanka.akhade2-2/+35
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: CLI-270 Change-Id: If9eab4bc8642c7c20a841d58c8a9e2bf5ae6c98b
2020-05-07sonar vulnerability issue fix- Do something with the "boolean" value ↵priyanka.akhade2-1/+18
returned by "delete"; Enable server certificate validation on this SSL/TLS connection Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: CLI-270 Change-Id: I1aa94f93bd71beeb0b6f6758be4b0687ea8536d2
2020-03-04Resolved JsonElement issue for grpc server and other classespriyanka.akhade1-3/+1
Issue-ID: CLI-247 Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Change-Id: Ifcfba782ec6454f58d1df11e6ab7db3e1a04d17b
2020-03-02Code clean upKanagaraj Manickam1-1/+1
Issue-ID: CLI-249 Change-Id: I9364f7ee3640dd74358f43ed33cd8663c0397103 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2020-02-29Migrate to gsonpriyanka.akhade3-1/+96
Issue-ID: CLI-247 Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Change-Id: If66134db5503382fb45210ece883402fc130ac93
2020-02-19Change dependency version for commons-codec and spring-corejitendra sharma1-0/+6
Issue-ID: CLI-246 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Ia0a07a417f64733e859ea7f1be6488b95d42cb52
2019-09-03Revert the command name changeKanagaraj M1-1/+1
Issue-ID: CLI-166 Change-Id: Ie933c02c74b02420745870716e756299020a849f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2019-08-20add Junit test case wth cleanup code for OnapCommandExceutionShowOutCommandTestjitendra sharma1-0/+54
Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I97ede02fb0b76a0e6680422266570068af4c26e8
2019-08-20Merge "add Junit test cases wth cleanup code for ↵Kanagaraj Manickam2-12/+22
OnapCommandExceutionShowCommandTest and OnapCommandExceutionShowDebugCommandTest"
2019-08-19add Junit test cases wth cleanup code for OnapCommandExecutionStoreTest and ↵jitendra sharma2-37/+75
OnapCommandProfileStoreTest Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Id08d83f0560b14b32cda4979b12e18a48d929da6
2019-08-19add Junit test case wth cleanup code for OnapSchemaValidateCommandTestjitendra sharma1-0/+58
Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I1032b9f71de575dba9db17ebeeb417c1f82f56b7
2019-08-19add Junit test case wth cleanup code for OnapSchemaShowCommandTestjitendra sharma1-0/+57
Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I46fc8bb4a351c2767fea8fd4ba88287b31a7086e
2019-08-19add Junit test case wth cleanup code for OnapSchemaListCommandTestjitendra sharma1-0/+56
Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I76e20b65f1c98348f46bcf021f08f14d61051d20
2019-08-19add Junit test cases wth cleanup code for ↵jitendra sharma2-12/+22
OnapCommandExceutionShowCommandTest and OnapCommandExceutionShowDebugCommandTest Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Iab025837347cdc5c10c70cf3afc375312ad6cd9c
2019-08-19Merge changes I8b5f6927,Icf626618Kanagaraj Manickam2-0/+121
* changes: add Junit test case wth cleanup code for OnapCommandExceutionShowErrCommandTest add Junit test cases wth cleanup code for OnapCommandExceutionListCommandTest
2019-08-19Merge "Sonar fixes and improvements"Kanagaraj Manickam1-0/+45
2019-08-16add Junit test case wth cleanup code for OnapCommandExceutionShowErrCommandTestjitendra sharma1-0/+52
Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I8b5f69279f937d7f2c89f623c154976362fd1540
2019-08-16add Junit test cases wth cleanup code for OnapCommandExceutionListCommandTestjitendra sharma1-0/+69
Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Icf6266189c7a0c5150a723f2ac9c27129b72dd9d
2019-08-09UT for Onap Commands execution-show and execution-show-debugjitendra sharma2-0/+98
UT Classes are OnapCommandExceutionShowCommandTest and OnapCommandExceutionShowDebugCommandTest Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I812df7dd504a72f1fed33fbbdb2781f4fa22fc3c
2019-08-08UT for OnapProductsListCommandTest and OnapServiceListCommandTestjitendra sharma2-0/+73
UT for product-list command and service-list command Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I5fc65771af030a10fb159ea2bf8cfaa30535e37d
2019-08-08UT for OnapCommandProfileStoreTestjitendra sharma1-0/+67
UT for profilestore create, remove and update Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Ibe1fa94692584d11d3d35155a69049045b5c0c55
2019-08-08UT for OnapCommandExecutionStorejitendra sharma1-0/+85
UT for storing of execution details such as output,debug. Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Ia281273204360f17225214898521f8810e702cf4
2019-08-08UT for OnapCommandArtifactStorejitendra sharma1-0/+86
UT for artifacts create, delete and update Issue-ID: CLI-169 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: Iba639576d02b4241446f9c7ff5f1ede5643c4b66
2019-08-08Sonar fixes and improvementsArindam Mondal1-0/+45
+) Implement try-with-resources ++)Added ut Issue-ID: CLI-170 Change-Id: Id040a05c8f83666b26908bd4b29e9701a0544e98 Signed-off-by: arindamm <arind.mondal@samsung.com>
2019-03-01Fix the code vulnerabilitiesKanagaraj Manickam k003651061-7/+20
Issue-ID: CLI-129 Change-Id: I441d7897c2e47b8eda13775d66327401656300ba Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2019-02-28Merge changes I60285973,I612ecfe2subhash kumar singh7-40/+19
* changes: CVC: Add support for execution, schema, product CMD: Enhace command profile with additional macros
2019-02-28CVC: Add support for execution, schema, productKanagaraj Manickam k003651066-37/+15
Issue-ID: CLI-129 Change-Id: I602859733b8f965ab031625eba6494a9b754cb64 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2019-02-28CMD: Enhace command profile with additional macrosKanagaraj Manickam k003651061-3/+4
Issue-ID: CLI-129 Change-Id: I612ecfe2c25f73714a8759ce87fdc373c8d5a7f0 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2019-01-29Junits for OnapCommandUtils classpkaras1-18/+194
Change-Id: Ic39b09408cf4eab586e15ee51020c6168ffdffda Issue-ID: CLI-128 Signed-off-by: piotr.karas <piotr.karas@nokia.com>
2018-09-05VTP: Add schema-list commandKanagaraj Manickam k003651061-1/+1
To list the commands available under given product Issue-ID: VNFSDK-305 Change-Id: I932b1cebd9d2493b175814c67a63b5c8267288ab Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Fix import warningsKanagaraj Manickam k003651061-13/+16
Issue-ID: CLI-100 Change-Id: Ie8a303c2b9d69b4e3b9725c442c1cfd8a4f96fe9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Fix validation testKanagaraj Manickam k003651061-1/+2
Issue-ID: CLI-100 Change-Id: I969048f352242a6a449cdd3a626417edbb575a6e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Fix the style warings reported in registrarKanagaraj Manickam k003651061-16/+14
Issue-ID: CLI-100 Change-Id: Id9c413b7bb496212342da3c018b99fb2fd51a531 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Remove unsed vars from Print testingKanagaraj Manickam k003651061-7/+1
Issue-ID: CLI-100 Change-Id: I76ccc1ed1c0860eac6f57cf7621b6a4f3493ce3d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Make the conditional check shorterKanagaraj Manickam k003651061-3/+5
Issue-ID: CLI-100 Change-Id: Id725711c37d2804039a0959a50ca018de4bd2361 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>