summaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2018-03-26Merge "Enable feature to disable mock for verify"Kanagaraj Manickam1-0/+13
2018-03-23Ignore null on consoleKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-104 Change-Id: I8fbe6c64355fbd27ef87c2c86ef6b5e8498e99a4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-13Enable feature to disable mock for verifysubhash kumar singh1-0/+13
Enable feature to disable mock for verify so that real environment can be used. Issue-ID: CLI-74 Change-Id: Ibaa15b7c93fcf077e3f28e9f7e96b1b8a68ad5c0 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-13Impl Verify feature for CLIsubhash kumar singh3-58/+113
Implement verify feature for CLI. So that command developer will come up with his mocking file and can use framework to develope the command. Change-Id: I0ac22aaa7284626de60c66e56e83bb75ec9d773d Issue-ID: CLI-74 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-09Support batch commanding using param fileKanagaraj Manickam k003651063-83/+167
Issue-ID: CLI-93 Change-Id: I562ebb052a076dc803571688cfea25d26f581f92 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-09Rename default profile to defaultKanagaraj Manickam k003651061-7/+8
Issue-ID: CLI-99 Change-Id: I668fd3639c5f0fda1fc96d21a7da6a336a8b7100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-09Fix Profile creation failedKanagaraj Manickam k003651061-2/+2
Issue-ID: CLI-99 Change-Id: I66a7a2bde49ae5747d0deb2f52d3b7c25319919e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-09Improve array and map to read from file as wellKanagaraj Manickam k003651061-2/+3
Issue-ID: CLI-99 Change-Id: If41a8b75d1516991e759dfa73de478da47936eb4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-09Improve map input parsingKanagaraj Manickam k003651061-4/+12
Issue-ID: CLI-99 Change-Id: Ie78b3567d4542b8ea59d62b94d48a4351e803a5c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Add space for profile in normal modeKanagaraj Manickam k003651061-10/+16
Issue-ID: CLI-95 Change-Id: I6d76d3097fe6ed7a25e35cad1effdd7c1b79eeb1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Add support for profile include excludeKanagaraj Manickam k003651061-1/+4
Issue-ID: CLI-95 Change-Id: I454020229481e2893459f7b29bf815bc0c701bed Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Add profile list supportKanagaraj Manickam k003651062-1/+10
Issue-ID: CLI-95 Change-Id: Ic50132693fcd8a49c7e0b1bfb38e02f0948f764d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-06nteractive mode is brokenKanagaraj Manickam k003651062-7/+2
Issue-ID: CLI-96 change-Id: Ie6b5551aa50e8c240e66bfd41073e03e45f4f49 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-28Make default value type objectsubhash kumar singh2-17/+22
Enhance default value type from String to Object so that it will directly support different type (BOOL, Array, Map). Issue-ID: CLI-74 Change-Id: Iaca438e58150c80047340acba92917ecae685242 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-02-20Improve logging and avoid null chanceKanagaraj Manickam k003651061-0/+1
Issue-ID: CLI-92 Change-Id: I681f605a1cb52ff548c03b5510452cafb648bae9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-12Handle CLI warning effectivelyv2.0.0Kanagaraj Manickam k003651061-6/+5
Issue-ID: CLI-92 Change-Id: If5ce9499763fdec5980c4cdd1839d5ef31ccdd49 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-12Make console reader be saferKanagaraj Manickam k003651061-17/+17
Issue-ID: CLI-92 Change-Id: I5c415b2fcdf92b2a861a871d9ab907221290107d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-27Fix log4j properties fileKanagaraj Manickam k003651061-16/+0
Issue-ID: CLI-66 Change-Id: I3e4e34b3f4b78d1948dcb0dc96efba31dbcb65da Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-16Add getNoOfRows in Results objectKanagaraj Manickam k003651061-1/+12
Issue-ID: CLI-66 Change-Id: I89fa87019c63504e8f8ceb4f052f12e62941bc3a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-15Increase the snake yaml versionKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-66 Change-Id: I129c6e5067d14fb28c8ee7c75dc7358562766c9b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-12Make Http as separate pluginKanagaraj Manickam k003651069-232/+131
Issue-ID: CLI-66 Change-Id: I8ad78f417f6dbb00e29effdd3ed8ec1939aee81d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-06Add support for running oclip from windows shellKanagaraj Manickam k003651061-0/+1
Issue-ID: CLI-66 Change-Id: Id12759d0b7afcc29c6ee9d3f4c504925f09074c9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Merges from 1.1.0Kanagaraj Manickam k003651063-3/+3
Issue-Id: CLI-66 Change-Id: I89fde334e2425eb91630912d726c320ece4aebd6 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Remove aspect based loggingKanagaraj Manickam k003651061-14/+2
Issue-Id: CLI-66 Change-Id: Ib0d9365af04710aac812e1413972354c132ebb47 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Removed the dead codesKanagaraj Manickam k003651064-113/+50
Swagger client sdk support is removed. Issue-Id: CLI-66 Change-Id: Ic7b23cfd72f2ae29de7ab44d2cffb35af2db701b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Add schema type for plugins like httpKanagaraj Manickam k003651064-6/+6
Issue-Id: CLI-66 Change-Id: I3756ccce8682644822850fd2621d9356bad74dc8 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Fix rebased conflicts from masterKanagaraj Manickam k003651061-0/+0
Issue-Id: CLI-66 Change-Id: I1cc275c2794d9c7e4b951f648eb8cc1e569973c5 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Onap to Oclip text migrationKanagaraj Manickam k003651065-29/+29
Issue-Id: CLI-66 Change-Id: I58e98952c61902e34585e9defabc36d1233a99a4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Normalize all env with OPEN_CLIKanagaraj Manickam k003651061-11/+11
Issue-Id: CLI-66 Change-Id: Iac377cf4cbd3e4d7419fcd41417e4c8bc127a03e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Normalize OnapCommandSchemaKanagaraj Manickam k003651061-1/+1
discovery is optimized to register the plugins and http commands from one function Issue-Id: CLI-66 Change-Id: I3b813862ffd5640c5218c4cced7d10f914dce4ad Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Make oclip.sh from onap.shKanagaraj Manickam k003651062-2/+2
Issue-Id: CLI-66 Change-Id: I88345b358c70c3f9048bea1ac7a34a5263e970c4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Remove default_parameter section and use is_includKanagaraj Manickam k003651065-13/+16
Issue-Id: CLI-66 Change-Id: I24a3bc4d133d4d69fd6522091f20f88edd6c2f19 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Migrate onap-cli-schema into open-cli-schemaKanagaraj Manickam k003651063-18/+20
Issue-Id: CLI-66 Change-Id: I719719194bc5f21f4316380e606ce1a58f0f046c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Migrate onap-username and onap-passwordKanagaraj Manickam k003651063-13/+13
onap-username and onap-password are migrated into host-username and host-password respectively Issue-Id: CLI-66 Change-Id: I4d658283523e75a2223dac9d0b839fdbc6ae2da3 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-10-26Fix the sample file name align with schemaKanagaraj Manickam k003651061-5/+5
CLI-55 Change-Id: I84533921d6a2bbfd818e0c68b723d6f131a21b2c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-10-26Code refactoring to remove test code generationsubhash kumar singh2-0/+24
Refactor code to remove test code generation code from framework codebase. Issue-ID: CLI-55 Change-Id: I4b45ef50143317586c39cf118a1717be150707da Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2017-09-30Normalize the error code in exceptionsKanagaraj Manickam k003651063-5/+5
CLI-2 Change-Id: I9d205993c9ca8fbf58459352fa023a2bf80ca376 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-29Remove CLI_DEV and replace by discover_always confKanagaraj Manickam k003651061-8/+6
CLI-2 Change-Id: Ic67ac30c6f6c9a0a8928b1fac6d5adc85ca53a5b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-18Fix sonar coverage issuesKanagaraj Manickam k003651061-1/+29
CLI-43 Change-Id: I7dc674db9ffc0bd2281003b3a680e52a0af9baab Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-18Improve the UT of profileKanagaraj Manickam k003651063-10/+29
CLI-43 Change-Id: If2f1040a93d18d8f4375c459db3e7250f4dba99f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-18Add exception for profile persist layerKanagaraj Manickam k003651063-1/+38
CLI-43 Change-Id: I6b2b969cc3a56dbee60d2b9056a6a7f8f793a8b4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-15Fixes SONAR critical bugsKanagaraj Manickam k003651062-20/+62
CLI-43 Change-Id: I8a901da62617589ec17b125b788104d201afafef Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-14Migrate type long into digitKanagaraj Manickam k003651062-2/+2
CLI-3 Change-Id: I5706963146d9575a9094aa7c24b85e1a0d8e7f80 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-13Print exception stack in dev modeKanagaraj Manickam k003651061-0/+7
CLI-14 Change-Id: I5df0d582e8c1885ac815e91af6d2536036143c34 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-13Namespace migration to open_cli_schema_versionKanagaraj Manickam k003651062-2/+2
CLI-3 Change-Id: I87d739c9c9b9f8e7724f1aa736a51b0fd91c30df Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-11Add profile support in interactive modeKanagaraj Manickam k003651062-1/+16
CLI-5 Change-Id: I993da7756b8495a2cc1205ad9085391c9212e54c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-11CLI profile supportKanagaraj Manickam k003651062-3/+29
invoke CLI with --profile <name> to persist the settings across the sessions. CLI-5 Change-Id: I214334dab11fecdb730c780976d5d9bb2c14509d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-11Add service context in set and unsetKanagaraj Manickam k003651061-1/+5
To set service specific parameters, use set <service>:param-name=value CLI-5 Change-Id: Ife8e618ba50cbbd4357ac36f03d22dacd5c46de8 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-08Add CLI_DEVKanagaraj Manickam k003651062-3/+7
While working on the commands implementation CLI_DEV env can be used to refresh the YAML everytime cli is ran CLI-2 Change-Id: Ic267f3f4eba7f8bd653eee9c82269d154a44e05c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-07Add TEXT parameter typeKanagaraj Manickam k003651061-0/+19
CLI-2 Change-Id: I4af65e154649e1cd891f30b870406fe5b5ea8cbb Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>