Skip to content

Instantly share code, notes, and snippets.

@zyluo
zyluo / nova-test_db_api-run
Created December 19, 2011 13:29
nova run_tests.sh test_db_api
Failure
runTest ERROR
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_db_api')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joko/git/nova/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 379, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/joko/git/nova/.venv/local/lib/python2.7/site-packages/nose/util.py", line 331, in resolve_name
@zyluo
zyluo / test_db_api-edit
Created December 19, 2011 08:23
test_db_api change diff
diff --git a/nova/tests/test_db_api.py b/nova/tests/test_db_api.py
index bfcc6b8..e11c0dd 100644
--- a/nova/tests/test_db_api.py
+++ b/nova/tests/test_db_api.py
@@ -273,8 +273,8 @@ class _DbApiTestCase(test.TestCase):
self.saved_db_imp = db.api.IMPL
self.saved_migration_imp = db.migration.IMPL
- db.api.IMPL = self.get_db_driver()
- db.migration.IMPL = self.get_migration_driver()
@zyluo
zyluo / horizon-depr-msg-files
Created December 13, 2011 02:04
Affected files of deprecated message attribute access in horizon (commit: 97dbcb2ba8521085773a24403c3199fc1e410ea7)
horizon/context_processors.py
horizon/dashboards/syspanel/users/views.py
horizon/dashboards/syspanel/users/forms.py
horizon/dashboards/syspanel/flavors/views.py
horizon/dashboards/syspanel/quotas/views.py
horizon/dashboards/syspanel/instances/views.py
horizon/dashboards/syspanel/tenants/views.py
horizon/dashboards/syspanel/tenants/forms.py
horizon/dashboards/nova/images_and_snapshots/images/views.py
horizon/dashboards/nova/networks/views.py
@zyluo
zyluo / horizon-depr-msg
Created December 13, 2011 02:02
Details of deprecated message attribute access in horizon (commit: 97dbcb2ba8521085773a24403c3199fc1e410ea7)
horizon/context_processors.py:64: except Exception, e:
horizon/dashboards/syspanel/users/views.py:51: except Exception, e:
horizon/dashboards/syspanel/users/forms.py:75: except Exception, e:
horizon/dashboards/syspanel/users/forms.py:86: except Exception, e:
horizon/dashboards/syspanel/flavors/views.py:54: except Exception, e:
horizon/dashboards/syspanel/quotas/views.py:39: except Exception, e:
horizon/dashboards/syspanel/instances/views.py:264: except Exception as e:
horizon/dashboards/syspanel/instances/views.py:293: except Exception as e:
horizon/dashboards/syspanel/tenants/views.py:52: except Exception, e:
horizon/dashboards/syspanel/tenants/forms.py:181: except Exception, e: