]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Revert connection option post full-stack tests
authorJohn Schwarz <jschwarz@redhat.com>
Thu, 9 Apr 2015 15:41:06 +0000 (18:41 +0300)
committerJohn Schwarz <jschwarz@redhat.com>
Thu, 9 Apr 2015 15:51:03 +0000 (18:51 +0300)
commite4095758868f6debdddb5a7cd65f8c0a244bee66
tree3f6c027a847a14ceb6f5050f684588453fc2575c
parent483de6313fab5913f9e68eb24afe65c36bd9b623
Revert connection option post full-stack tests

The full-stack framework overrides the database connection string before
every test is started, but after the test it doesn't revert the string
back to what it was originally. Since after the test the database is
deleted, the string is not actually valid once the test finished, and
this conflicts with tests which are ran on the same job (specifically
the retargetable tests - see associated bug). The proposed patch saves
the original connection string and reverts it after the test finishes.

Change-Id: I96c01483009084cbc2b81588a1283e84e6bcb4c4
Closes-bug: #1440797
neutron/tests/fullstack/base.py
neutron/tests/retargetable/base.py