aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src
AgeCommit message (Collapse)AuthorFilesLines
2017-09-29remove onap.properties from test resourcesKanagaraj Manickam k003651061-56/+0
CLI-2 Change-Id: Ib0100610d8a77cb504250cf0173b236adfdd076b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-29Enable exception to get tracedKanagaraj Manickam k0036510623-59/+125
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 k003651066-16/+16
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 k003651062-2/+10
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 k003651066-11/+117
CLI-43 Change-Id: I6b2b969cc3a56dbee60d2b9056a6a7f8f793a8b4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-15Fixes SONAR critical bugsKanagaraj Manickam k003651064-2/+51
CLI-43 Change-Id: I8a901da62617589ec17b125b788104d201afafef Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-14Migrate type long into digitKanagaraj Manickam k0036510614-21/+21
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 k0036510636-42/+42
CLI-3 Change-Id: I87d739c9c9b9f8e7724f1aa736a51b0fd91c30df Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-09-11CLI profile supportKanagaraj Manickam k003651067-86/+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 k003651064-1/+18
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 k003651065-2/+79
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 k003651064-3/+52
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 k003651065-6/+16
CLI-37 Change-Id: Ifabd3e0581c74fd76cc60ec2a5b3005fb023e55e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-30Add versioning for commandKanagaraj Manickam k0036510631-78/+308
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-29Fix classpath to include docs and confKanagaraj Manickam k003651061-54/+0
CLI-37 Change-Id: Iba7be18c12fd242c966eb7567dad401e82bc5149 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-26Add VSP lifecycle commandsBharath Thiruveedula10-20/+87
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 Manickam16-1404/+792
* changes: Move schema validation to load schema Move schema validation to load schema
2017-08-18Move schema validation to load schemasubhash kumar singh11-1402/+683
Move schema validation to load schema. Issue-Id: CLI-25 Change-Id: I8fdb8450f6f95b7170c10b0ec5883162a4cf406a Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2017-08-18Move schema validation to load schemasubhash kumar singh5-2/+109
Move schema validation to load schema. Issue-Id: CLI-25 Change-Id: I68855caf80cf1b55b41916e124a53b53e7af93d3 Signed-off-by: Subhash Kumar Singh <Subhash.Kumar.Singh@huawei.com>
2017-08-17Add UUID param typeKanagaraj Manickam k003651062-1/+6
CLI-13 Change-Id: Ia312119a9bf6b5075d482d28008569658c76ae58 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-17Add basic auth mode for serviceKanagaraj Manickam k0036510612-99/+125
CLI-29 Change-Id: I8c46a23d5875275dadcdddfd8cc2fbb864ab03f4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-16Add auth mode in serviceKanagaraj Manickam k0036510613-26/+30
ONAP is using basic auth already for some services and AAF is being used as well. so there are more than one auth type being used across. to support it, new property call auth is introduced in service section. also no-auth is now migrated as auth: none CLI-29 Change-Id: I151a4669151f67884f9875f47c8df396836ae25b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-11Migrate msb-url into host-urlKanagaraj Manickam k0036510616-43/+43
CLI framework is being enhanced to support different service mode like direct and catalog and msb term is verfy specific to catalog mode. so its migrated to move to generic format CLI-29 Change-Id: I93f8354e2f32f7cae1660168ce403c76cca0587f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-10Introduce direct service modeKanagaraj Manickam k003651064-2/+35
CLI-29 Change-Id: I68cfd8e7b68d6e3839f202509899509c2cdb539b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-08-10Populate default param based on no-authsubhash kumar singh20-39/+253
Based on no-auth customise the default parameter for onap-command. e.g. If "no-auth = true" then command should not add default parameter "onap-username, onap-password, msb-url and no-auth". Issue-Id: CLI-22 Change-Id: Ic9228feb1deb7e6f24eb9b9f0c8f15fd45364e94 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2017-08-04Fix invalid help parameterssubhash kumar singh19-100/+393
Introduce new section "default_parameter" to add "include" and "exclude" parameter from defalut parameter list. Following is a example for the parameter section to use it: xyz.yaml: ... default_parameters: include: - parameter1 - parameter2 ... exclude: - parameter3 - parameter4 ... parameters: - parameter5 .... .... Issue-Id: CLI-20 Change-Id: I99fd91a130739f2007fdd85a23c76d4e1b30c542 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2017-07-19Add seed code from Open-Orelease-1.0.0Kanagaraj Manickam k00365106126-0/+12139
It migrated the code from Open-O into onap namespace and adds the required framework, main, deployment and some sample plugins for msb. CLI-7 CLI-8 CLI-11 Change-Id: I499e34237daccb971ef74bd10e50f50707baa4d3 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>