aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2017-11-20Normalize all env with OPEN_CLIKanagaraj Manickam k003651062-3/+3
Issue-Id: CLI-66 Change-Id: Iac377cf4cbd3e4d7419fcd41417e4c8bc127a03e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Normalize OnapCommandSchemaKanagaraj Manickam k0036510616-378/+411
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-20Migrate OPEN_CLI_PRODUCT_VERSION to IN_USEKanagaraj Manickam k003651063-3/+3
Issue-Id: CLI-66 Change-Id: I13f8786b8084b83d04f14dd791862e84bed0101b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Add overriding concept to ParametersKanagaraj Manickam k003651064-98/+45
Issue-Id: CLI-66 Change-Id: I90b69da1b4235bfa12d4eaffd3f73538fd12a443 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Remove default_parameter section and use is_includKanagaraj Manickam k0036510615-360/+197
Issue-Id: CLI-66 Change-Id: I24a3bc4d133d4d69fd6522091f20f88edd6c2f19 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Add is_include to parameterKanagaraj Manickam k003651063-0/+33
Issue-Id: CLI-66 Change-Id: I91c513709c40808f720ace049b28e8e1ba798e33 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Add Info sectionKanagaraj Manickam k003651065-18/+172
Issue-Id: CLI-66 Change-Id: I864c4af234e7f27d75eaad7318e0d919c1d82305 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Migrate auth logic into http commandKanagaraj Manickam k003651066-103/+97
Login/Logout logic is moved into http command as this framework would be enhanced to support other command types like ssh Issue-Id: CLI-66 Change-Id: I33936f8871dfa4c000f8fcabb9cf17e96fc71e0b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Fix auth plugin issuesKanagaraj Manickam k003651062-7/+10
Now OCLIP is enabled to be very generic platform. Issue-Id: CLI-66 Change-Id: Id431f2eca5e516ad3b070c2c80e4fcd2ba0b54b2 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Migrate onap-cli-schema into open-cli-schemaKanagaraj Manickam k003651064-32/+12
Issue-Id: CLI-66 Change-Id: I719719194bc5f21f4316380e606ce1a58f0f046c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Basic auth login and logout commandKanagaraj Manickam k0036510611-124/+267
Issue-Id: CLI-66 Change-Id: Ief44cd0d12d7814c029129ff4d8a384dc36c369f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Migrate onap-username and onap-passwordKanagaraj Manickam k003651061-2/+2
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-11-14Make input parameter available in output valueKanagaraj Manickam k003651062-0/+38
Issue-Id: CLI-66 Change-Id: Ib7dc22352932294b485b1239dbb56e4092ef6644 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Add default_value for output attributesKanagaraj Manickam k003651065-52/+158
Special enteries are $s{uuit} and $s{env:EVN-VAR} Issue-Id: CLI-66 Change-Id: I6c16d8815f4934b7759adee3a41372303cef9a65 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Add command type to support auth and catalogKanagaraj Manickam k003651068-2/+138
By default all commands are cmd type Issue-Id: CLI-66 Change-Id: I90567ecba00def1a1e904d2959a53c1a2cfc098b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-10-31Fix onap doc generation to logs serial noKanagaraj Manickam k003651061-5/+0
CLI-57 Change-Id: Ie56edf2c52778341a680e499587898a35623ac6f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-10-26Fix the sample file name align with schemaKanagaraj Manickam k003651061-4/+4
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 singh7-249/+33
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-10-17Implement autogeneation of moco jsonsubhash kumar singh9-11/+305
Autogenerate mocked json files for moco-master from http request respose. Change-Id: I731682c41b623713a6b4de7ea74b14ab83f5d17e Issue-ID: CLI-55 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2017-10-11Verfiy Invalid samplesKanagaraj Manickam k003651061-4/+0
CLI-2 Change-Id: I7388da38841d07bacf64d10a2c11620dfb781c12 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-10-11Enhance validation with moco serverKanagaraj Manickam k003651062-0/+44
CLI-2 Change-Id: Ie8a98a2a20137610634b3450d1076bec1790e9b1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-30Normalize the error code in exceptionsKanagaraj Manickam k0036510638-40/+53
CLI-2 Change-Id: I9d205993c9ca8fbf58459352fa023a2bf80ca376 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-29Enable exception to get tracedKanagaraj Manickam k0036510619-49/+114
CLI-2 Change-Id: Ib16490d6800a07d69c995f2301d34bebf3f78c28 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-29Remove CLI_DEV and replace by discover_always confKanagaraj Manickam k003651064-12/+15
CLI-2 Change-Id: Ic67ac30c6f6c9a0a8928b1fac6d5adc85ca53a5b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-26Add commands help generation codeKanagaraj Manickam k003651061-10/+13
CLI-34 Change-Id: Ic71c0a0d79ad4e1e1be74d5f98c3e1c40f300e2a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-23Fix Version directive to print current p versionKanagaraj Manickam k003651061-1/+1
CLI-2 Change-Id: I85eac5af5637e4123241d4695edf9332b5b503d8 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-18Fix sonar coverage issuesKanagaraj Manickam k003651061-2/+2
CLI-43 Change-Id: I7dc674db9ffc0bd2281003b3a680e52a0af9baab Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-18Improve the UT of profileKanagaraj Manickam k003651064-7/+17
CLI-43 Change-Id: If2f1040a93d18d8f4375c459db3e7250f4dba99f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-18Add exception for profile persist layerKanagaraj Manickam k003651064-8/+90
CLI-43 Change-Id: I6b2b969cc3a56dbee60d2b9056a6a7f8f793a8b4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-15Fixes SONAR critical bugsKanagaraj Manickam k003651061-2/+2
CLI-43 Change-Id: I8a901da62617589ec17b125b788104d201afafef Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-14Migrate type long into digitKanagaraj Manickam k003651061-3/+3
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-1/+1
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 k003651065-9/+9
CLI-3 Change-Id: I87d739c9c9b9f8e7724f1aa736a51b0fd91c30df Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-11CLI profile supportKanagaraj Manickam k003651066-85/+217
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-11Fix to consider 404 for delete success codeKanagaraj Manickam k003651061-1/+3
CLI-5 Change-Id: I99e0cf1ee39ce967d1d1f470b2df51f3378adeb5 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-08Add CLI_DEVKanagaraj Manickam k003651063-1/+17
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-1/+3
CLI-2 Change-Id: I4af65e154649e1cd891f30b870406fe5b5ea8cbb Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-07Make set specific to product versionKanagaraj Manickam k003651064-2/+77
CLI-2 Change-Id: If6c72255c4c84615dafe5f0074eb5532bc90bf5e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-05Add set unset directiveKanagaraj Manickam k003651061-1/+1
CLI-2 Change-Id: I70ca564cc2c41508bb209b5fae54104aba13a8be Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-31Make interactive mode as defaultKanagaraj Manickam k003651061-14/+34
CLI-37 Change-Id: Ic1ea32d4d38a46652de3fe7840391e76bc35a934 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-31Add command useKanagaraj Manickam k003651063-2/+51
use command helps to choose the product version to use while there are more than one product commands present in cli CLI-37 Change-Id: I4020bbbcc7574cfcc73ddcd4d46c627087990d20 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-30Consider missing attributes as blankKanagaraj Manickam k003651061-2/+2
sometime the response does not have the required filed to process and consider it as blank instead of failing it CLI-37 Change-Id: I953fcd5ee92aac5ca926029462f15f45ba765dfc Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-30Add validation for all commandsKanagaraj Manickam k003651063-22/+21
Add new project to validate the commands and optionally add required test cases CLI-35 Change-Id: I8bd437c77421a590b0e60e4aec12cc99997451a1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-30Update Schema refresh to report product versionKanagaraj Manickam k003651062-2/+6
CLI-37 Change-Id: Ifabd3e0581c74fd76cc60ec2a5b3005fb023e55e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-30Add versioning for commandKanagaraj Manickam k0036510612-58/+214
By allowing to add version to the YAML, helps to create same command for multiple versions of product say onap 1.0, 1.1 CLI-37 Change-Id: Ic3982ea912045ff4f422fcf093cbd98ecd99716d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-26Add VSP lifecycle commandsBharath Thiruveedula7-12/+57
Change-Id: Ibdc78b3ab1921c160f8ee193fcd47be0c75f94a9 Issue-ID: CLI-16 Signed-off-by: Bharath T<bharath.thiruveedula@verizon.com>
2017-08-24Merge "Fix sonar blocker issues"Kanagaraj Manickam1-6/+6
2017-08-23Fix sonar blocker issuesKanagaraj Manickam k003651061-6/+6
CLI-34 Change-Id: Ie143e3cdaf89497474c916b4a61a92617eef6efc Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-23Replace if-else check with switch caseSubhash Kumar Singh2-261/+324
Replace if-else check in schema load with switch case. Issue-Id: CLI-24 Change-Id: I0990b9ea8a1ebb9a2f739cfe527ba2e051ade03c Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2017-08-18Merge changes I8fdb8450,I68855cafKanagaraj Manickam10-1322/+630
* changes: Move schema validation to load schema Move schema validation to load schema