[openstack-dev] [nova] novaclient functional test guidelines

Ed Leafe ed at leafe.com
Tue Feb 24 20:28:50 UTC 2015


On Feb 24, 2015, at 1:49 PM, Sean Dague <sean at dague.net> wrote:

>> IMHO the CLI should have an option to returned raw JSON back instead of
>> pretty tabled results as well.
> 
> Um... isn't that just the API calls?
> 
> I'm not sure creating a 3rd functional surface is really the answer
> here, because we still need to actually test the CLI / pretty table output.

The python-openstacksdk project was originally envisioned to wrap the API calls and return usable Python objects. The nova client CLI (or any other CLI, for that matter) would then just provide the command line input parsing and output presentation. It's been a while since I was involved with that project, but it seems that decoupling the command line interface from the Python API wrapper would make testing much, much easier.


-- Ed Leafe





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150224/ef9db927/attachment.pgp>


More information about the OpenStack-dev mailing list