Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Ronald Bradford
> > > > 1) Being able to do a grant with a prefix like > > GRANT all on 'openstack_ci%'.* to openstack_citest > > Then using that prefix in the random db generation. That would at least > limit scope. That seems the easiest to do with the existing infrastructure. > To use this syntax correctly in

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Sean Dague
On 02/23/2016 12:26 PM, Mike Bayer wrote: >> 2 thoughts on that: >> >> 1) Being able to do a grant with a prefix like >> >> GRANT all on 'openstack_ci%'.* to openstack_citest >> >> Then using that prefix in the random db generation. That would at least >> limit scope. That seems the easiest to do

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Mike Bayer
On 02/23/2016 12:20 PM, Sean Dague wrote: On 02/23/2016 11:29 AM, Mike Bayer wrote: On 02/22/2016 08:18 PM, Sean Dague wrote: On 02/22/2016 08:08 PM, Davanum Srinivas wrote: Sean, You need to set the env variable like so. See testenv:mysql-python for example

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Sean Dague
On 02/23/2016 11:29 AM, Mike Bayer wrote: > > > On 02/22/2016 08:18 PM, Sean Dague wrote: >> On 02/22/2016 08:08 PM, Davanum Srinivas wrote: >>> Sean, >>> >>> You need to set the env variable like so. See testenv:mysql-python >>> for example >>>

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Mike Bayer
On 02/22/2016 08:18 PM, Sean Dague wrote: On 02/22/2016 08:08 PM, Davanum Srinivas wrote: Sean, You need to set the env variable like so. See testenv:mysql-python for example OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost Thanks, Dims [1]

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Mike Bayer
On 02/22/2016 08:08 PM, Davanum Srinivas wrote: Sean, You need to set the env variable like so. See testenv:mysql-python for example OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost you should not need to set this if you're using the default URL. The

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-23 Thread Mike Bayer
On 02/22/2016 08:02 PM, Sean Dague wrote: Before migrating into oslo.db the opportunistic testing for database backends was pretty simple. Create an openstack_citest@openstack_citest pw:openstack_citest and you could get tests running on mysql. This no longer seems to be the case. this is

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-22 Thread Sean Dague
On 02/22/2016 09:03 PM, Davanum Srinivas wrote: > Sean, > > yes, please let us know which tests fail and we'll try to fix it. There are no currently failing tests, this is attempting to use this for new tests. Follow on question. I think I hacked together something which gets me far enough to

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-22 Thread Davanum Srinivas
Sean, yes, please let us know which tests fail and we'll try to fix it. Thanks, Dims On Mon, Feb 22, 2016 at 8:18 PM, Sean Dague wrote: > On 02/22/2016 08:08 PM, Davanum Srinivas wrote: >> Sean, >> >> You need to set the env variable like so. See testenv:mysql-python for >>

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-22 Thread Sean Dague
On 02/22/2016 08:08 PM, Davanum Srinivas wrote: > Sean, > > You need to set the env variable like so. See testenv:mysql-python for example > OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost > > Thanks, > Dims > > [1] >

Re: [openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-22 Thread Davanum Srinivas
Sean, You need to set the env variable like so. See testenv:mysql-python for example OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost Thanks, Dims [1] http://codesearch.openstack.org/?q=OS_TEST_DBAPI_ADMIN_CONNECTION=nope== On Mon, Feb 22, 2016 at 8:02 PM,

[openstack-dev] [oslo] documentation on using the oslo.db opportunistic test feature

2016-02-22 Thread Sean Dague
Before migrating into oslo.db the opportunistic testing for database backends was pretty simple. Create an openstack_citest@openstack_citest pw:openstack_citest and you could get tests running on mysql. This no longer seems to be the case. I went digging through the source code a bit and it's not