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 default is right here: https://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/provision.py#L457 if that default is not working when OS_TEST_DBAPI_ADMIN_CONNECTION is not set, then that's a bug in oslo.db that should be reported. It is using pymysql now though, so if you are trying to run against python-mysql then you'd need to set this. > > Thanks, > Dims > > [1] http://codesearch.openstack.org/?q=OS_TEST_DBAPI_ADMIN_CONNECTION&i=nope&files=&repos= > > > On Mon, Feb 22, 2016 at 8:02 PM, Sean Dague <sean at dague.net> wrote: >> Before migrating into oslo.db the opportunistic testing for database >> backends was pretty simple. Create an openstack_citest at 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 entirely >> evident what the new required setup is. Can someone point me to the docs >> to use this? Or explain what the setup for local testing is now? We've >> got some bugs which expose on mysql and not sqlite in nova that we'd >> like to get some test cases written for. >> >> -Sean >> >> -- >> Sean Dague >> http://dague.net >> >> >> __________________________________________________________________________ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> > > >