It is similar with Gnocchi, I wonder if this test need to create table ? I can run this test OK in my environment with aodh installed and running. the database connection is set with "connection = mysql://root:password@127.0.0.1/aodh?charset=utf8" in aodh.conf
It is similar with Gnocchi, I wonder if this test need to create table ? I can run this test OK in my environment with aodh installed and running. the database connection is set with "connection = mysql:/ /root:password@ 127.0.0. 1/aodh? charset= utf8" in aodh.conf
see:
root@monasca: /opt/stack/ aodh# python setup.py testr --testr-args aodh.tests. storage. sqlalchemy. test_migrations .ModelsMigratio nsSync OS_STDOUT_ CAPTURE= ${OS_STDOUT_ CAPTURE: -1} \ CAPTURE= ${OS_STDERR_ CAPTURE: -1} \ TIMEOUT= ${OS_TEST_ TIMEOUT: -600} \ PATH:-. /aodh/tests} -t . --list OS_STDOUT_ CAPTURE= ${OS_STDOUT_ CAPTURE: -1} \ CAPTURE= ${OS_STDERR_ CAPTURE: -1} \ TIMEOUT= ${OS_TEST_ TIMEOUT: -600} \ PATH:-. /aodh/tests} -t . --load-list /tmp/tmpWau2_I /opt/stack/ aodh# vi tox.ini /opt/stack/ aodh# python setup.py testr --slowest --testr-args aodh.tests. storage. sqlalchemy. test_migrations .ModelsMigratio nsSync OS_STDOUT_ CAPTURE= ${OS_STDOUT_ CAPTURE: -1} \ CAPTURE= ${OS_STDERR_ CAPTURE: -1} \ TIMEOUT= ${OS_TEST_ TIMEOUT: -600} \ PATH:-. /aodh/tests} -t . --list OS_STDOUT_ CAPTURE= ${OS_STDOUT_ CAPTURE: -1} \ CAPTURE= ${OS_STDERR_ CAPTURE: -1} \ TIMEOUT= ${OS_TEST_ TIMEOUT: -600} \ PATH:-. /aodh/tests} -t . --load-list /tmp/tmpq0HTKu ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------ ----------- storage. sqlalchemy. test_migrations .ModelsMigratio nsSync. test_models_ sync 0.082
running testr
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover ${OS_TEST_
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover ${OS_TEST_
Ran 1 tests in 0.087s (-0.003s)
PASSED (id=4)
root@monasca:
root@monasca:
running testr
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover ${OS_TEST_
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover ${OS_TEST_
Ran 1 tests in 0.084s (-0.002s)
PASSED (id=5)
Slowest Tests
Test id Runtime (s)
-------
aodh.tests.
I will try to find a way to try to make this test run with real backend scenario.