summaryrefslogtreecommitdiffstats
path: root/framework
AgeCommit message (Collapse)AuthorFilesLines
2018-03-13Impl Verify feature for CLIsubhash kumar singh8-89/+215
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-12Update the default credentials settingsKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-95 Change-Id: Ic8e2e6bf81fc562641902cc5589ed4b1eac077e3 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-09Make bool param set by string valueKanagaraj Manickam k003651061-1/+6
Issue-ID: CLI-99 Change-Id: I3778e848dc824c1a7145a0fcf8cb3e4b7af695ab Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-09Rename default profile to defaultKanagaraj Manickam k003651062-1/+2
Issue-ID: CLI-99 Change-Id: I668fd3639c5f0fda1fc96d21a7da6a336a8b7100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Improvde param cacheKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-93 Change-Id: Ifb938b3347778a0be0ba04850cb8fcb8df2b3fb9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Default value for optional parameter set to blankKanagaraj Manickam k003651061-3/+3
Issue-ID: CLI-99 Change-Id: I4e17be25d54b11d7bcd7ea3f151dd194230ae9ec Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Debug option is not workingKanagaraj Manickam k003651062-17/+17
Issue-ID: CLI-98 Change-Id: I02ebf70aed60bb9b172e798cd6d5479bb331b630 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Add support for profile include excludeKanagaraj Manickam k003651063-4/+28
Issue-ID: CLI-95 Change-Id: I454020229481e2893459f7b29bf815bc0c701bed Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Add profile list supportKanagaraj Manickam k003651068-4/+65
Issue-ID: CLI-95 Change-Id: Ic50132693fcd8a49c7e0b1bfb38e02f0948f764d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-28Add support for context parametersubhash kumar singh2-2/+48
Add support for context parameter, which can be used to communicate data from framework to profile. Change-Id: Idf77f3c225e7e65be2660f687782b37dc3da76c3 Issue-ID: CLI-74 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-02-28Make default value type objectsubhash kumar singh6-64/+166
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-12Handle CLI warning effectivelyv2.0.0Kanagaraj Manickam k003651061-2/+2
Issue-ID: CLI-92 Change-Id: If5ce9499763fdec5980c4cdd1839d5ef31ccdd49 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-12Fix closure by try resource approachKanagaraj Manickam k003651061-2/+10
Issue-ID: CLI-92 Change-Id: I6375058625b51d2d15d397163c0aa20025114bc2 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-05Make Closable objects are used latterKanagaraj Manickam k003651061-3/+2
Issue-ID: CLI-50 Change-Id: I5e54f97ca359ee008a1ef82804b47a4e42231cc3 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-05Ignore those exceptions never occursKanagaraj Manickam k003651062-3/+3
Issue-ID: CLI-50 Change-Id: If7de4980b0c7b205bd6fcbb8ead71eb017ec1a43 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-02-05Improve spl macro handlingKanagaraj Manickam k003651061-12/+12
Issue-ID: CLI-50 Change-Id: Ia25e6b66ee1ad8c2eee80c8759c62e0a8bd698c1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-01-31Add snmp profile for clisubhash kumar singh1-4/+4
Add snmp profile for cli to support snmp get operation. Issue-ID: CLI-85 Change-Id: I7bebd38f2b3089df80c71a5581b23c5408c6d3ab Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-01-16Init default type to STRINGKanagaraj Manickam k003651062-13/+7
Issue-ID: CLI-66 Change-Id: I6c5fd672811f324d81b653cb4a2a2304678829cd Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-01-05Normalize the config paramsKanagaraj Manickam k003651062-24/+24
Issue-ID: CLI-66 Change-Id: Ibab64e9764ecaf2dd64490e87612f225f724b9ff Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-29Make addProperties in config to publicKanagaraj Manickam k003651061-2/+1
Issue-ID: CLI-66 Change-Id: Ic796a7ff0766bdc229fcfe0e865e0644ec9eaec7 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-27Fix log4j properties fileKanagaraj Manickam k003651061-1/+9
Issue-ID: CLI-66 Change-Id: I3e4e34b3f4b78d1948dcb0dc96efba31dbcb65da Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-26Add toJsonMessage to Exception classKanagaraj Manickam k003651062-0/+11
Issue-ID: CLI-66 Change-Id: Ic4553c28e20cd6db9add438339423dd458ab7d76 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-26Ignore default pararms while discovering schemasKanagaraj Manickam k003651061-0/+5
Issue-ID: CLI-66 Change-Id: I529041893e3e2558bbdb9e6c50698cee27f3fa6e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-26Merge default params filesKanagaraj Manickam k0036510610-30/+213
Issue-ID: CLI-66 Change-Id: I320e21ff3b25d0c38c196b49f2ed320174396e4a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-21Add is_deafult_parm and is_default_attrKanagaraj Manickam k003651068-9/+97
Issue-ID: CLI-66 Change-Id: Id6789ffda5d8ae93f4927564844bde36ecd88678 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-19Fix http profile to override the headersKanagaraj Manickam k003651061-1/+3
Issue-ID: CLI-66 Change-Id: I0aa2413db977449f163bc4a75bcd7900c95076b8 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-18Fix logout and auth specific param customizationKanagaraj Manickam k003651063-2/+3
Issue-ID: CLI-66 Change-Id: Ic50f4bf040bc88e29419942076d9c7d154d384d1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-16Add getNoOfRows in Results objectKanagaraj Manickam k003651061-0/+11
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 k003651062-2/+2
Issue-ID: CLI-66 Change-Id: I129c6e5067d14fb28c8ee7c75dc7358562766c9b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-13Add yaml format support for printing resultKanagaraj Manickam k003651063-13/+33
Issue-ID: CLI-66 Change-Id: I38cee498c98b78a1767a700c029dbcb310a6f727 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-13Add json print formatKanagaraj Manickam k003651061-2/+17
Issue-ID: CLI-66 Change-Id: Ic032912de0b302352f5c8ed94749ddd012f55af6 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-13Fix -h to be precedence over other argsKanagaraj Manickam k003651063-21/+17
Issue-ID: CLI-66 Change-Id: I252fe9705d2801012aa571f51d386c0712416ad9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-12Make Http as separate pluginKanagaraj Manickam k0036510687-4369/+581
Issue-ID: CLI-66 Change-Id: I8ad78f417f6dbb00e29effdd3ed8ec1939aee81d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-06Rename product names to use amsterdamKanagaraj Manickam k003651063-117/+117
Issue-ID: CLI-66 Change-Id: Ief9c03adec45f037baea82d344addb1c6b538bd9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Merges from 1.1.0Kanagaraj Manickam k0036510631-114/+30
Issue-Id: CLI-66 Change-Id: I89fde334e2425eb91630912d726c320ece4aebd6 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Make auth login command parameters as part of cmdKanagaraj Manickam k003651069-32/+164
Now auth commands parameters are added into the command parameters list Issue-Id: CLI-66 Change-Id: If6d7629b9efeb773f90ba53fb2ed8d6e464f3a73 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Move install.sh into zip root folderKanagaraj Manickam k003651063-12/+17
Issue-Id: CLI-66 Change-Id: I316788d3f9fc036da71479be7106150b82e25330 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Remove aspect based loggingKanagaraj Manickam k003651063-197/+0
Issue-Id: CLI-66 Change-Id: Ib0d9365af04710aac812e1413972354c132ebb47 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-21Make schema-validate independent of schema profileKanagaraj Manickam k0036510640-200/+335
Now schema-validate is able to validate schema of any given type supported. Issue-Id: CLI-66 Change-Id: I47ac5e81e9b12dd575e0a4cdc7e8e8bad0f87474 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Utils are splitted into multiple classesKanagaraj Manickam k0036510615-1237/+1377
Issue-Id: CLI-66 Change-Id: I334d9121fe19c25af00bd83a53260c43b7f5446e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Removed the dead codesKanagaraj Manickam k0036510619-1498/+731
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 k0036510613-134/+81
Issue-Id: CLI-66 Change-Id: I3756ccce8682644822850fd2621d9356bad74dc8 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Optimize version option outputKanagaraj Manickam k003651064-13/+30
Issue-Id: CLI-66 Change-Id: Ia64adb3e32de0dafc124ce1dbaf0204b43e9ffaf Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Add build time to jarKanagaraj Manickam k003651062-1/+36
Issue-Id: CLI-66 Change-Id: I45f524e3e4f0f111fd411f3d9577edb5e3c0d0ed Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Add type to schema-refresh commandKanagaraj Manickam k003651064-34/+16
Issue-Id: CLI-66 Change-Id: I2f6ff7b2eb0584aedb796dc814f6294e26f1f407 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Ignore invalid schema while discovering schemaKanagaraj Manickam k003651063-52/+17
Issue-Id: CLI-66 Change-Id: I17a367c9277a264b2d3828007af9b42592484ff1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Onap to Oclip text migrationKanagaraj Manickam k0036510646-299/+288
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 k003651064-7/+7
Issue-Id: CLI-66 Change-Id: Iac377cf4cbd3e4d7419fcd41417e4c8bc127a03e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Normalize OnapCommandSchemaKanagaraj Manickam k0036510622-397/+424
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>