summaryrefslogtreecommitdiffstats
path: root/framework/src/test
AgeCommit message (Collapse)AuthorFilesLines
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>
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-10Update the list of short optionsKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-100 Change-Id: I15bdf99cb015af276b960539659d216e1e0e08f8 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>
2018-05-09Fix assertness in Result testKanagaraj Manickam k003651061-1/+2
Issue-ID: CLI-100 Change-Id: Id02d38b7ca308ed57e6ca601004487bf8e5a706d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Remove extra line charsKanagaraj Manickam k003651062-3/+5
Issue-ID: CLI-100 Change-Id: I939ef3c7fe09e1ec1c751283dc087727ad58de05 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Remove the build warning reportedKanagaraj Manickam k003651061-66/+67
Issue-ID: CLI-100y Change-Id: Ic4871efa3dea780dd11c5416a04ef457baefdc18 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-09Fix OnapCommandSample with coding std.Kanagaraj Manickam k003651061-1/+2
Issue-ID: CLI-100 Change-Id: Id0e4d267352feba3e884948251ce5c80902edeb5 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-27Improve the CommandInfo test coverageKanagaraj Manickam k003651061-0/+38
Issue-ID: CLI-100 Change-Id: I5c0c275154edd3f135a0435adab885c76dcc1520 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-27Improve the stablility of command stateKanagaraj Manickam k003651061-0/+38
Issue-ID: CLI-100 Change-Id: I82f124cb7f0502a9ae9f4a04ad857a8368f8fc2a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-18License: Add headerKanagaraj Manickam k0036510611-0/+154
Change-Id: I8ec6bab71fea73f8639278ddc69fccf8691ea33a Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-18License: Add headerKanagaraj Manickam k003651063-0/+42
Change-Id: I795ad0a5180ba8c2b296702cdca35ff3055da786 Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-18License: Add headerKanagaraj Manickam k003651061-0/+14
Change-Id: I861b74e9fcaad7f08057be70b1e7ec1bc46add6a Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-27Discover command state and persistKanagaraj Manickam k003651061-0/+1
Issue-ID: CLI-100 Change-Id: I828f860ab5994796ceb692dbf12a7323ebd4d07a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-13Impl Verify feature for CLIsubhash kumar singh1-1/+1
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-08Debug option is not workingKanagaraj Manickam k003651061-13/+13
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 k003651061-1/+2
Issue-ID: CLI-95 Change-Id: I454020229481e2893459f7b29bf815bc0c701bed Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-08Add profile list supportKanagaraj Manickam k003651065-2/+35
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 singh1-1/+40
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 singh3-27/+73
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>
2017-12-26Merge default params filesKanagaraj Manickam k003651062-0/+26
Issue-ID: CLI-66 Change-Id: I320e21ff3b25d0c38c196b49f2ed320174396e4a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-12-12Make Http as separate pluginKanagaraj Manickam k0036510635-1522/+129
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 k003651062-116/+116
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 k0036510625-108/+24
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 k003651064-0/+87
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-21Remove aspect based loggingKanagaraj Manickam k003651061-134/+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 k0036510614-81/+97
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 k003651062-33/+33
Issue-Id: CLI-66 Change-Id: I334d9121fe19c25af00bd83a53260c43b7f5446e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Removed the dead codesKanagaraj Manickam k0036510612-623/+30
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 k003651063-59/+15
Issue-Id: CLI-66 Change-Id: I3756ccce8682644822850fd2621d9356bad74dc8 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Ignore invalid schema while discovering schemaKanagaraj Manickam k003651061-41/+0
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 k0036510624-263/+252
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-1/+1
Issue-Id: CLI-66 Change-Id: Iac377cf4cbd3e4d7419fcd41417e4c8bc127a03e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Normalize OnapCommandSchemaKanagaraj Manickam k003651066-19/+13
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-20Add overriding concept to ParametersKanagaraj Manickam k003651063-247/+0
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 k0036510629-134/+183
Issue-Id: CLI-66 Change-Id: I24a3bc4d133d4d69fd6522091f20f88edd6c2f19 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-20Modify validate to include sample pluginKanagaraj Manickam k0036510610-253/+0
Issue-Id: CLI-66 Change-Id: I3397cd29835c5ac3a95a7f0f80fcee5d1e49de99 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Add is_include to parameterKanagaraj Manickam k003651061-0/+1
Issue-Id: CLI-66 Change-Id: I91c513709c40808f720ace049b28e8e1ba798e33 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2017-11-14Add Info sectionKanagaraj Manickam k003651062-12/+37
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 k003651062-11/+10
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 k003651066-8/+212
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 k003651067-7/+7
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 k003651064-18/+14
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 k003651068-27/+27
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-14Add default_value for output attributesKanagaraj Manickam k003651065-21/+44
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 k003651061-0/+7
By default all commands are cmd type Issue-Id: CLI-66 Change-Id: I90567ecba00def1a1e904d2959a53c1a2cfc098b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>