toaster: fix mysql migrations and add django test fixture
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | toaster: orm migrations Sort out migrations messlib/ lib/ lib/ +5 more | +26 | 0 replies | |
| 2/5 | toaster: SoftwareRecipesTable apply default order_bylib/ | +1 | 0 replies | |
| 3/5 | toaster: toastergui unit tests convert to use fixtureslib/ lib/ | +488 | 0 replies | |
| 4/5 | toaster: PackagesTable show only installed packageslib/ | +3 | 0 replies | |
| 5/5 | toaster: toastergui Fix invalid char test and implementationlib/ lib/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] toaster: fix mysql migrations and add django test fixture
This series contains a clean up of the database migrations to fix the issue that was preventing Toaster from starting up when using mysql backend. See https://bugzilla.yoctoproject.org/show_bug.cgi?id=9116
After fixing these migrations and getting Toaster to start up properly using mysql backend a number of unittests failed due to differences in testing on sqlite.
To remove these differences I've changed the data that was in the setUp to be more agnostic and added .lower() where needed to make sure the orderby re-ordering in the same way. I also took this opportunitiy to convert the toastergui unit tests to use a django fixture making it easier to load the database state for testing.
Bugs fixed discovered by fixing the unit tests are:
- toaster: SoftwareRecipesTable apply default order_by
- toaster: toastergui Fix invalid char test and implementation
and one already reported
- toaster: PackagesTable show only installed packages
The following changes since commit eb71785922100bf0f52c3429e60568524d488fd3:
toaster: update the meta-yocto toaster configuration file (2016-02-16 17:37:47 -0800)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/test/michaelw/mysql-migration
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/test/michaelw/mysql-migration
Michael Wood (5):
toaster: orm migrations Sort out migrations mess
toaster: SoftwareRecipesTable apply default order_by
toaster: toastergui unit tests convert to use fixtures
toaster: PackagesTable show only installed packages
toaster: toastergui Fix invalid char test and implementation
lib/toaster/orm/migrations/0001_initial.py | 26 --
.../orm/migrations/0002_auto_20151210_1209.py | 41 --
.../orm/migrations/0002_customimagerecipe.py | 24 ++
.../orm/migrations/0003_customimagepackage.py | 2 +-
lib/toaster/orm/migrations/0004_merge.py | 15 -
...0002_auto_20151223_1528.py => 0004_provides.py} | 2 +-
.../orm/migrations/0005_auto_20160118_1055.py | 19 -
.../0006_customimagerecipe_last_updated.py | 19 -
.../fixtures/toastergui-unittest-data.xml | 446 +++++++++++++++++++++
lib/toaster/toastergui/tables.py | 5 +-
lib/toaster/toastergui/tests.py | 257 ++----------
lib/toaster/toastergui/views.py | 7 +-
12 files changed, 524 insertions(+), 339 deletions(-)
delete mode 100644 bitbake/lib/toaster/orm/migrations/0002_auto_20151210_1209.py
create mode 100644 bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py
delete mode 100644 bitbake/lib/toaster/orm/migrations/0004_merge.py
rename bitbake/lib/toaster/orm/migrations/{0002_auto_20151223_1528.py => 0004_provides.py} (94%)
delete mode 100644 bitbake/lib/toaster/orm/migrations/0005_auto_20160118_1055.py
delete mode 100644 bitbake/lib/toaster/orm/migrations/0006_customimagerecipe_last_updated.py
create mode 100644 bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml--
1.9.1