Re: [openstack-dev] [Ceilometer] Why ceilometer do not offer run_tests.sh script?

2015-04-28 Thread gordon chung
everything llu mentioned below. also, if you don't want to install mongo, you 
can run tests against mysql/postgres/elasticsearch instead using tox 
-epy-mysql, tox -epy-pgsql or tox -epy-elastic. if you want to debug the tests 
you can similar run tox -edebug-

cheers,
gord



> From: lianhao...@intel.com
> To: openstack-dev@lists.openstack.org
> Date: Wed, 29 Apr 2015 02:18:38 +
> Subject: Re: [openstack-dev] [Ceilometer] Why ceilometer do not offer 
> run_tests.sh script?
>
> On Apr 29, 2015 09:49, Luo Gangyi wrote:
>> Hi guys,
>>
>> When I try to run unit tests of ceilometer, I find there is no
>> run_tests.sh script offers.
>>
>> And when I use tox directly, I got a message ' 'Could not find mongod
>> command'.
>
> Please use setup-test-env-mongodb.sh instead. See tox.ini for details.
>
>> So another question is why unit tests needs mongo?
>
> It's used for the scenario tests on different db backend. Will be moved into 
> functional test though. https://review.openstack.org/#/c/160827/
>
>> Can someone give me some hint?
>
> -Lianhao Lu
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
  
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Ceilometer] Why ceilometer do not offer run_tests.sh script?

2015-04-28 Thread Lu, Lianhao
On Apr 29, 2015 09:49, Luo Gangyi wrote:
> Hi guys,
> 
> When I try to run unit tests of ceilometer, I find there is no 
> run_tests.sh script offers.
> 
> And when I use tox directly, I got a message ' 'Could not find mongod 
> command'.

Please use setup-test-env-mongodb.sh instead. See tox.ini for details.

> So another question is why unit tests needs mongo?

It's used for the scenario tests on different db backend. Will be moved into 
functional test though. https://review.openstack.org/#/c/160827/ 

> Can someone give me some hint?

-Lianhao Lu

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Ceilometer] Why ceilometer do not offer run_tests.sh script?

2015-04-28 Thread Luo Gangyi
Hi guys,


When I try to run unit tests of ceilometer, I find there is no run_tests.sh 
script offers.


And when I use tox directly, I got a message ' 'Could not find mongod command'.


So another question is why unit tests needs mongo?


Can someone give me some hint?


Thanks a lot.
--
Luo gangyiluogan...@chinamobile.com__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev