Commit 27fe57d8 authored by Georgios Gousios's avatar Georgios Gousios
Browse files

Fix order of test data to ensure proper insertion

This fixes an issue with DBs with proper referential integrity (e.g.
MySQL) where a VM cannot be inserted prior to an Image that is
referenced from it.
parent 0ac4ac5c
......@@ -93,6 +93,19 @@
"flavor" : 30000
}
},
{
"model": "db.Image",
"pk": 30000,
"fields": {
"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.VirtualMachine",
"pk": 30000,
......@@ -125,19 +138,6 @@
"operstate": "STOPPED"
}
},
{
"model": "db.Image",
"pk": 30000,
"fields": {
"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.Disk",
"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