Statistics
| Branch: | Tag: | Revision:

root / db / fixtures / db_test_data.json @ faa26af8

History | View | Annotate | Download (3.7 kB)

1
[
2
    {
3
        "model": "db.SynnefoUser",
4
        "pk": 30000,
5
        "fields": {
6
            "name": "testdbuser",
7
            "realname" :"test db user",
8
            "uniq" :"test@synnefo.gr",
9
            "credit": 10,
10
            "auth_token": "46e427d657b20defe352804f0eb6f8a2",
11
            "auth_token_created": "2009-04-07 09:17:14",
12
            "type": "STUDENT",
13
            "created": "2011-02-06"
14
               }
15
    },
16
    {
17
        "model" : "db.Limit",
18
        "pk" : 30000,
19
        "fields" : {
20
            "name" : "QUOTA_CREDIT",
21
            "user" : 30000,
22
            "value" : 100
23
        }
24
    },
25
    {
26
        "model" : "db.Limit",
27
        "pk" : 30001,
28
        "fields" : {
29
            "name" : "MIN_CREDITS",
30
            "user" : 30000,
31
            "value" : -100
32
        }
33
    },
34
    {
35
        "model" : "db.Limit",
36
        "pk" : 30002,
37
        "fields" : {
38
            "name" : "MONTHLY_RATE",
39
            "user" : 30000,
40
            "value" : 10
41
        }
42
    },
43
    {
44
        "model": "db.Flavor",
45
        "pk": 30000,
46
        "fields": {
47
            "cpu": 1,
48
            "ram": 1024,
49
            "disk": 10
50
        }
51
    },
52
    {
53
        "model": "db.Flavor",
54
        "pk": 30001,
55
        "fields": {
56
            "cpu": 1,
57
            "ram": 1024,
58
            "disk": 20
59
        }
60
    },
61
    {
62
        "model" : "db.FlavorCost",
63
        "pk" : 30010,
64
        "fields" : {
65
            "cost_active" : 10,
66
            "cost_inactive" : 5,
67
            "effective_from" : "2010-01-01",
68
            "flavor" : 30001
69
        }
70
    },
71
    {
72
        "model" : "db.FlavorCost",
73
        "pk" : 30000,
74
        "fields" : {
75
            "cost_active" : 10,
76
            "cost_inactive" : 5,
77
            "effective_from" : "2011-01-01",
78
            "flavor" : 30000
79
        }
80
    },
81
    {
82
        "model" : "db.FlavorCost",
83
        "pk" : 30002,
84
        "fields" : {
85
            "cost_active" : 5,
86
            "cost_inactive" : 2,
87
            "effective_from" : "2010-12-01",
88
            "flavor" : 30000
89
        }
90
    },
91
    {
92
        "model" : "db.FlavorCost",
93
        "pk" : 30003,
94
        "fields" : {
95
            "cost_active" : 4,
96
            "cost_inactive" : 10,
97
            "effective_from" : "2010-01-01",
98
            "flavor" : 30000
99
        }
100
    },
101
    {
102
        "model": "db.Image",
103
        "pk": 30000,
104
        "fields": {
105
            "name": "Debian Squeeze",
106
            "updated": "2011-02-06 00:00:00",
107
            "created": "2011-02-06 00:00:00",
108
            "size" : 2000,
109
            "state": "ACTIVE",
110
            "description": "Full Debian Squeeze Installation",
111
            "owner" : 30000
112
        }
113
    },
114
    {
115
        "model": "db.VirtualMachine",
116
        "pk": 30000,
117
        "fields": {
118
            "owner": 30000,  
119
            "name": "snf-1001",
120
            "created": "2009-02-06 00:00:00",
121
            "charged": "2010-02-06 00:00:00",
122
            "sourceimage": 30000,
123
            "hostid": "HAL-9000",
124
            "ipfour": "192.168.2.1",
125
            "ipsix": "::1",
126
            "flavor": 30000,
127
            "operstate": "STARTED"
128
        }
129
    },
130
{
131
        "model": "db.VirtualMachine",
132
        "pk": 30001,
133
        "fields": {
134
            "owner": 30000,
135
            "name": "snf-1002",
136
            "created": "2009-02-06 00:00:00",
137
            "charged": "2010-02-06 00:00:00",
138
            "sourceimage": 30000,
139
            "hostid": "HAL-9000",
140
            "ipfour": "192.168.2.1",
141
            "ipsix": "::1",
142
            "flavor": 30000,
143
            "operstate": "STOPPED"
144
        }
145
    },
146
    {
147
        "model": "db.Disk",
148
        "pk": 30000,
149
        "fields": {
150
            "name": "My_Music",
151
            "created": "2011-02-10 00:00:00",
152
            "size" : 20,
153
            "vm" : 30000,
154
            "owner" : 30000
155
        }
156
    }
157
]