summaryrefslogtreecommitdiffstats
path: root/framework
AgeCommit message (Collapse)AuthorFilesLines
2018-05-03Remove this unused import from CommandPrintKanagaraj Manickam k003651061-1/+0
Issue-ID: CLI-100 Change-Id: Ifc85d5f47f3ef1fac715300663149501463a2e53 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-03Make the var names compliant to standardKanagaraj Manickam k003651061-3/+3
Issue-ID: CLI-100 Change-Id: I2bd87604b9fa1438f9d2fb96857176263eed86c2 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-03Strip off invalid exception throws from cli reg.Kanagaraj Manickam k003651061-2/+1
Issue-ID: CLI-106 Change-Id: I3ea8eba1c3d48d553f90cb6beb38add5959187a3 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-03Standardize log namming to comply with rulesKanagaraj Manickam k003651062-6/+6
Issue-ID: CLI-106 Change-Id: I0daeeec33ef09ea7589a7122322a4c88cf2f56fd Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-03Remove invalid throwsKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-100 Change-Id: I21b5dfc810d8f94c1de9b771fc54827299415aff Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-02Del invalid excep throws in OnapCommand getSchemaKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-106 Change-Id: I2b40fb38a77feeea0ec0a743987d7211ad45dd7e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-02Add hashCode() for SchemaInfoKanagaraj Manickam k003651061-0/+6
Issue-ID: CLI-106 Change-Id: If8e3bc25821bbdd3c56f7f6309c43456424a173b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-05-02Add type check for Schema info obj compartionKanagaraj Manickam k003651061-0/+7
Issue-ID: CLI-106 Change-Id: Ie650896c0506632347164c57b23f3d264497a62a 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-26Merge if statementsKanagaraj Manickam k003651061-13/+10
Issue-ID: CLI-100 Change-Id: Id0db2e9e51b68009177d4847a4b24d2f84c1cb50 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Remove toString() inappropriateKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-100 Change-Id: I523eda5664e55e5d2b1b618b7b816d28f0916673 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26For utils class add private constructorKanagaraj Manickam k003651061-0/+4
Issue-ID: CLI-100 Change-Id: I04670e42d763e2ad866803e2b9c1fe0a9135f77c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Fix yaml print with right set of exceptionKanagaraj Manickam k003651061-3/+1
Issue-ID: CLI-100 Change-Id: I9ff493c0f83f9b63d6e2f647197f32b76d475ba4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Make use of try with resourceKanagaraj Manickam k003651061-14/+4
Issue-ID: CLI-100 Change-Id: I96a0e3cf0e982c001adf6d6bf3c0a5ad8c23a110 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Remove types in diamond operator of mapKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-100 Change-Id: I7d8b983310cb29cfeb7b738994a0762aa3c85f32 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Combine hierarchy if statementsKanagaraj Manickam k003651061-7/+4
Issue-ID: CLI-100 Change-Id: I744ffefb28bf292b98a7e1465fb58e55b7bf1aeb Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Add method for retrieving raw data from ParameterKanagaraj Manickam k003651061-1/+8
Issue-ID: CLI-100 Change-Id: I83b049e6d71ef2daa1ef3cf66e0c99e1c3ad827c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-26Add equals interface to SchemaInfoKanagaraj Manickam k003651061-1/+4
Issue-ID: CLI-100 Change-Id: I3bcd7a23d107e5cf00ee558fca5dee2b0b34d900 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Comply with Java Code ConventionKanagaraj Manickam k003651061-2/+3
Issue-ID: CLI-100 Change-Id: Id6b4d6a6053bb2829f609d5fd4387e0e25267e81 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Following guideline while placing the constructorKanagaraj Manickam k003651061-16/+16
Issue-ID: CLI-100 Change-Id: I29980de174127f21f52b46dee0369bb7c43ba4da Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Following java coding for instance varKanagaraj Manickam k003651061-5/+5
Issue-ID: CLI-100 Change-Id: I3beffd15835e7cac7a4aa0a36288cae963e366d2 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Use proper constant insteadKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-100 Change-Id: I4fc3c78312d5e62c08d3cd87597849e91659fba0 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Use entrySet insteadKanagaraj Manickam k003651061-2/+3
Issue-ID: CLI-100 Change-Id: I1e8d8687c5c8f382062f350241c42d42de4ae9f7 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Adhere to java standard of dynamic objectKanagaraj Manickam k003651061-0/+1
Issue-ID: CLI-100 Change-Id: I42fd756865fdaf2ef9f60d488d9cba062818f661 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Use boolean parse insteadKanagaraj Manickam k003651061-1/+2
Issue-ID: CLI-100 Change-Id: I937dae19cd6c4551689315c76971600e13ffa81b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Fix base pre and post run debug infoKanagaraj Manickam k003651061-2/+2
Issue-ID: CLI-100 Change-Id: I6294ccf4feb8b000cd315bdea3e92c56fc837f4a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-25Follow java name convention for log in OnapCommandKanagaraj Manickam k003651061-6/+6
Issue-ID: CLI-100 Change-Id: I19aae137a905a961215d9003792210fa9860ed1b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-24Remove unused imports from OnapCommandKanagaraj Manickam k003651061-6/+0
Issue-ID: CLI-100 Change-Id: I4e62e52bbeb308d96b4f20b008e6c5ec3c18ac1b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-23Ignore param validation for is_include=falseKanagaraj Manickam k003651061-1/+6
Issue-ID: CLI-100 Change-Id: Ie11a2b409ab71b1c74299e2de4433decc08f6289 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-18License: Add headerKanagaraj Manickam k003651062-0/+28
Change-Id: I49b1ec27a4eee38fe13e37af4d666b04b731ce0f Issue-ID: CLI-100 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 k003651063-0/+42
Change-Id: I0eca2b4572b04f6323d0be75a1a0688124021719 Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-18License: Add headerKanagaraj Manickam k003651062-0/+28
Change-Id: I861b74e9fcaad7f08057be70b1e7ec1bc46add6a Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-04-16Update OCLIP commands detailsKanagaraj Manickam k003651062-2/+2
Issue-ID: CLI-100 Change-Id: Ib986931fd198e6ba993b89dff35795c27f0bcf3e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-28Make SchemaInfo comparableKanagaraj Manickam k003651061-4/+9
Issue-ID: CLI-100 Change-Id: Iff1d0606b1b2e0d386282daf47b27d50c24fe18b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-27Macro fails to subsitute map paramKanagaraj Manickam k003651062-17/+41
Issue-ID: CLI-78 Change-Id: Ice150ba53f85b9bbed5264805b06f6c28e2d21e7 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-27Add state info in help messageKanagaraj Manickam k003651061-1/+11
Issue-ID: CLI-78 Change-Id: Ie79342fc3fc5322ca9b1a6517b03c8d7bf03dd81 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-27Discover command state and persistKanagaraj Manickam k003651067-2/+37
Issue-ID: CLI-100 Change-Id: I828f860ab5994796ceb692dbf12a7323ebd4d07a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-27Intrdouce command stateKanagaraj Manickam k003651061-0/+53
Issue-ID: CLI-100 Change-Id: I8c5cce763a05722778a816f0dafbdd0bc23035b2 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-27Strip off poduct name from service name in helpKanagaraj Manickam k003651061-1/+1
Issue-ID: CLI-100 Change-Id: I4c9b802f478f65c63e89040ecac3b5b931810f1d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-26Merge "Enable feature to disable mock for verify"Kanagaraj Manickam1-1/+1
2018-03-23Add validation for sample file schemaKanagaraj Manickam k003651062-0/+19
Issue-ID: CLI-105 Change-Id: I748662f8f3760d9b38f1920bfadf82a210ddc3de Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-23Ignore invalid schemasKanagaraj Manickam k003651061-0/+5
Issue-ID: CLI-105 Change-Id: Ie8684832dacb8ce9726737ddb38373001d0f1f14 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-22Make json default to {}Kanagaraj Manickam k003651061-0/+3
Issue-ID: CLI-103 Change-Id: Iad9a583f535275b7d4b0a069a0578c97211c0a78 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-21Fix SECURITY ISSUESKanagaraj Manickam k003651061-3/+3
Issue-ID: CLI-102 Change-Id: I599e74e7ab01236f5852c018eb1df79b5a7672a0 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2018-03-13Enable feature to disable mock for verifysubhash kumar singh1-1/+1
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 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>