Re: [DISCUSS]How to write API Unit Tests

2012-11-28 Thread Prasanna Santhanam
On Wed, Nov 28, 2012 at 06:58:14AM +0530, David Nalley wrote: > On Tue, Nov 27, 2012 at 6:09 PM, Min Chen wrote: > > Hi there, > > > > In working with API refactoring work, I cannot help wondering how we > > should write Junit test cases for our APIs. Recently I saw that Chip has > > merge

Re: [DISCUSS]How to write API Unit Tests

2012-11-28 Thread Min Chen
gt;> >>>>Sent from my iPhone. >>>> >>>>On Nov 27, 2012, at 8:33 PM, Sudha Ponnaganti >>>> wrote: >>>> >>>>> Min, >>>>> >>>>> Here is the link to the current framework >>>>> ht

Re: [DISCUSS]How to write API Unit Tests

2012-11-28 Thread Min Chen
testing-with-python.html >>>> >>>> Also check out Rohit's CLI as well. That would also help to automate >>>>faster >>>> >>>> Thanks >>>> /Sudha >>>> >>>> -Original Message- >>>>

Re: [DISCUSS]How to write API Unit Tests

2012-11-28 Thread Rayees Namathponnan
nks >>> /Sudha >>> >>> -Original Message- >>> From: David Nalley [mailto:da...@gnsa.us] >>> Sent: Tuesday, November 27, 2012 5:28 PM >>> To: cloudstack-dev@incubator.apache.org >>> Subject: Re: [DISCUSS]How to write API Unit Tests >&g

Re: [DISCUSS]How to write API Unit Tests

2012-11-28 Thread Min Chen
gt;> >> Thanks >> /Sudha >> >> -Original Message- >> From: David Nalley [mailto:da...@gnsa.us] >> Sent: Tuesday, November 27, 2012 5:28 PM >> To: cloudstack-dev@incubator.apache.org >> Subject: Re: [DISCUSS]How to write API Unit Tests >&

Re: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Chip Childers
: cloudstack-dev@incubator.apache.org > Subject: Re: [DISCUSS]How to write API Unit Tests > > On Tue, Nov 27, 2012 at 6:09 PM, Min Chen wrote: >> Hi there, >> >>In working with API refactoring work, I cannot help wondering >> how we should write Junit test

RE: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Animesh Chaturvedi
: Tuesday, November 27, 2012 5:17 PM To: cloudstack-dev@incubator.apache.org Subject: Re: [DISCUSS]How to write API Unit Tests The idea of not dependent on DB is nice, but I am not sure if this will apply well to this particular LIST api performance refactor code I am working on. In this case

RE: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Sudha Ponnaganti
ember 27, 2012 5:28 PM To: cloudstack-dev@incubator.apache.org Subject: Re: [DISCUSS]How to write API Unit Tests On Tue, Nov 27, 2012 at 6:09 PM, Min Chen wrote: > Hi there, > > In working with API refactoring work, I cannot help wondering > how we should write Junit test c

Re: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread David Nalley
On Tue, Nov 27, 2012 at 6:09 PM, Min Chen wrote: > Hi there, > > In working with API refactoring work, I cannot help wondering how we > should write Junit test cases for our APIs. Recently I saw that Chip has > merged some of his API unit test cases into master branch, and his api > unit t

Re: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Min Chen
cloudstack-dev@incubator.apache.org >Subject: Re: [DISCUSS]How to write API Unit Tests > >The idea of not dependent on DB is nice, but I am not sure if this will >apply well to this particular LIST api performance refactor code I am >working on. In this case, the idea is to create Datab

RE: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Sudha Ponnaganti
: Tuesday, November 27, 2012 5:17 PM To: cloudstack-dev@incubator.apache.org Subject: Re: [DISCUSS]How to write API Unit Tests The idea of not dependent on DB is nice, but I am not sure if this will apply well to this particular LIST api performance refactor code I am working on. In this case, the

Re: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Min Chen
The idea of not dependent on DB is nice, but I am not sure if this will apply well to this particular LIST api performance refactor code I am working on. In this case, the idea is to create Database view to remove extra db trips in response generation to get various uuids. Without talking to Databa

RE: [DISCUSS]How to write API Unit Tests

2012-11-27 Thread Animesh Chaturvedi
Min I have few comments in-line. -Original Message- From: Min Chen [mailto:min.c...@citrix.com] Sent: Tuesday, November 27, 2012 3:10 PM To: cloudstack-dev@incubator.apache.org Subject: [DISCUSS]How to write API Unit Tests Hi there, In working with API refactoring work, I cann