commit | 8a764d1fb6cd99d08cda6400bd35162fa3ac5fe0 | [log] [tgz] |
---|---|---|
author | Jakob Juelich <[email protected]> | Tue Oct 14 19:24:21 2014 -0700 |
committer | chrome-internal-fetch <[email protected]> | Sat Nov 22 09:35:47 2014 +0000 |
tree | 150135803a6a9fa65c498d4265f83c0304ab7a3b | |
parent | d42a0915414baa03bd44d81e93aa6ca56223128e [diff] [blame] |
[autotest] Use global database for tko models in django v3. This adds the global database to django. A django database router is added to determine to which database should be used for which models. All tko models are always taken or written from or into the global database while all other objects remain unchanged. BUG=chromium:422637 TEST=Ran suites, syncdb, restart apache, ran a suite. Confirm global database connection is closed after each attempt to get test view: https://x20web.corp.google.com/~beeps/log/db_routers.html Change-Id: Idf6933d1d112bbc5a2896fa61afd03f6604dafb5 Reviewed-on: https://chromium-review.googlesource.com/223501 Tested-by: Dan Shi <[email protected]> Reviewed-by: Prashanth B <[email protected]> Commit-Queue: Dan Shi <[email protected]>
diff --git a/utils/unittest_suite.py b/utils/unittest_suite.py index 9b8c121..277a9a9 100755 --- a/utils/unittest_suite.py +++ b/utils/unittest_suite.py
@@ -46,6 +46,7 @@ 'rdb_cache_unittests.py', 'scheduler_lib_unittest.py', 'host_scheduler_unittests.py', + 'site_parse_unittest.py', )) REQUIRES_MYSQLDB = set((