Commit c3fa31bd authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Fix broken db_test_data.json wrt to Image model

Removing the description field from the Image model
and moving it to ImageMetadata broke the fixtures in
db_test_data.json and the associated tests of the db app.

Tests for api, db, logic run properly.
parent c4e32a50
......@@ -100,12 +100,28 @@
"name": "Debian Squeeze",
"updated": "2011-02-06 00:00:00",
"created": "2011-02-06 00:00:00",
"size" : 2000,
"state": "ACTIVE",
"description": "Full Debian Squeeze Installation",
"owner" : 30000
}
},
{
"model": "db.ImageMetadata",
"pk": 1,
"fields": {
"meta_key": "description",
"meta_value": "Debian Squeeze, full installation",
"image": 30000
}
},
{
"model": "db.ImageMetadata",
"pk": 2,
"fields": {
"meta_key": "size",
"meta_value": "2048",
"image": 30000
}
},
{
"model": "db.VirtualMachine",
"pk": 30000,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment