Added Postgres CI opportunistic test case

Added test case and support functions for CI opportunistic testing
using a PostgreSQL database, as part of our postgresql as a first
class citizen effort.

rebased again on top of test migration with data framework

clean up debug, and ensure pg will fail to connect gracefully

fix previous migration test which was inserting a key by id, which
postgresql doesn't like, as it doesn't adjust the autoincrement
counter.

added driver to connection string for mysql

Updated comment to expose how to do this on pg easily

Fixes:
bug 1084567

Change-Id: If0bfe5cf748f6d5724d17082be6d18b6f96f6ee4
This commit is contained in:
Kurt Taylor
2013-01-17 15:15:59 -05:00
parent 38c7fa2ab9
commit 5dcf4dd9b2
2 changed files with 78 additions and 23 deletions
+1
View File
@@ -7,6 +7,7 @@ feedparser
fixtures>=0.3.12
mox==0.5.3
MySQL-python
psycopg2
pep8==1.3.3
pylint==0.25.2
python-subunit