Inviato da Samsung Mobile


Dan Wendlandt <[email protected]> ha scritto:


Replies in line. Apologies for typos, sending from my mobile.

 That's a clever idea Salvatore, I like it :)

Salv: thanks:-)

My only real concern would be that we chose a templating language that will be 
an easy dependency to fulfill on most distros, as I am guessing the CLI to be 
packaged as part of the "client package", which will have to run on any system 
that talks to quantum (both orchestrators and core openstack services like 
nova).  That definitely seems doable though.

Salv: this is my concern as well. Cheetah AFAIK is available on most distros. I 
don't know about nanja. Same discussion happened in nova a while ago. Cheetah 
was required only for KVM. For this reason it is not in pip-requires and 
dynamically imported. We can do the same thing here and add it as a dependency 
only for the cluent package

For a while I've been meaning to redo the CLI output to be a bit more friendly 
to simple shell scripting as well... so that might be a good thing to take into 
consideration as long as we're redoing the output.

Salv:Once we introduce templating you will be able to format the output as you 
wish without touching the code.

This will be a great improvement, as CLI unit tests are definitely a gap.  In 
fact, we recently ran into a CLI bug when doing a alpha deployment of Quantum 
at a customer yesterday.... just a little too late :)

Salv: I found two bugs today :-)  possibly the same. Will push patch la tr er.

Dan


On Thu, Aug 11, 2011 at 8:26 AM, Salvatore Orlando 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I’m writing the unit tests for CLI. Verifying successful completion of API 
operations implies checking the output of the CLI, which could be tedious, 
error-prone, and not easy to maintain.
For this reason I’m thinking of introducing Cheetah templates for generating 
CLI output. This will simplify the implementation of the CLI itself, and 
terribly reduce the maintenance burden on unit tests.

Has anybody strong re
-- 
Mailing list: https://launchpad.net/~netstack
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to