Hi Milindu, It's great to see a complete workflow being executed! The format the data is displayed in looks good. Let's continue to add the commands one by one.
Py.Test is a great framework to do Python unit testing. Let us know the results of the research on test frameworks. There might be better frameworks suited to test command line apps as a whole. Regards, Chamila de Alwis Committer and PMC Member - Apache Stratos Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Jun 11, 2015 at 3:50 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi everyone, > > We had a Google Hangout yesterday to discuss the progress. Since we have > finished the foundation of the CLI, we thought of moving to calling Stratos > REST API parts. I'm currently working with Mock IaaS. As a test run, I > tried to list the available users and show on the terminal as a table. It > went well and here is a snapshot :) > > I will continue this, with action names as of Java CLI ( eg;- list-users, > etc ). > > > [image: Inline image 1] > > We discussed to use PyTest( http://pytest.org ) for testing, I will try > to write some test for the codes we have this far :) Meanwhile, I will > research other options also. > > > > On Tue, Jun 9, 2015 at 6:46 PM, Manula Thantriwatte < > manulachathur...@gmail.com> wrote: > >> Hi, >> >> +1 for the non-interactive mode behaviour. >> >> On Tue, Jun 9, 2015 at 12:08 AM, Milindu Sanoj Kumarage < >> agentmili...@gmail.com> wrote: >> >>> Hi, >>> >>> When the CLI is used in the non-interactive mode, it is most likely >>>> included in a (ex: Bash) script. In that case it should notify of the error >>>> and continue, rather than hang up and wait for user input (thus the name >>>> "non-interactive" :) ). WDYT? >>> >>> >>> I too agree. Like to know others' ideas too :) >>> >>> Just a minor point on the source code. >>>> [image: Inline image 1] >>>> In Configs.py I noticed that "~" symbol is used. Is this portable to >>>> Windows? If not let's keep that in mind and test only in Linux for now. We >>>> will have to make it portable to Windows as well. >>>> >>> >>> In Logging.py I'm using following code to get the path of the >>> Stratos's dir( ".stratos" ) inside the user's home dir( "~/" ) , in >>> platform independent manner. >>> >>> stratos_dir_path = os.path.expanduser(Configs.stratos_dir) >>> >>> But it seems it is better to add this part too to Configs.py :) Let's >>> change that :) >>> >>> >>> >> >> >> -- >> Regards, >> Manula Chathurika Thantriwatte >> phone : (+65) 91306970 >> email : manulachathur...@gmail.com >> Linkedin : *http://lk.linkedin.com/in/manulachathurika >> <http://lk.linkedin.com/in/manulachathurika>* >> blog : http://manulachathurika.blogspot.com/ >> > >