Statistics
| Branch: | Tag: | Revision:

root / vocabs.py @ ec06b07c

History | View | Annotate | Download (3.5 kB)

1
IMAGE_TAGS = {
2
                1: 'archlinux',
3
                2: 'centos',
4
                3: 'debian',
5
                4: 'freebsd',
6
                5: 'gentoo',
7
                6: 'netbsd',
8
                7: 'openbsd',
9
                8: 'redhat',
10
                9: 'slackware',
11
                10: 'suse',
12
                11: 'ubuntu',
13
                12: 'windows',
14
               }
15

    
16
MOCK_IMAGES = [
17
                {
18
                    "id" : 2,
19
                    "name" : "CentOS 5.2",
20
                    "updated" : "2010-10-10T12:00:00Z",
21
                    "created" : "2010-08-10T12:00:00Z",
22
                    "status" : "ACTIVE"
23
                },
24
                {
25
                    "id" : 3,
26
                    "name" : "Debian Lenny",
27
                    "updated" : "2010-10-10T12:00:00Z",
28
                    "created" : "2010-08-10T12:00:00Z",
29
                    "status" : "ACTIVE"
30
                },
31
                {
32
                    "id" : 11,
33
                    "name" : "Ubuntu 10.04 server 64bit",
34
                    "updated" : "2010-10-10T12:00:00Z",
35
                    "created" : "2010-08-10T12:00:00Z",
36
                    "status" : "ACTIVE"
37
                },
38
                {
39
                    "id" : 12,
40
                    "name" : "My Server Backup",
41
                    "serverId" : 12,
42
                    "updated" : "2010-10-10T12:00:00Z",
43
                    "created" : "2010-08-10T12:00:00Z",
44
                    "status" : "SAVING",
45
                    "progress" : 80
46
                },
47
              ]
48

    
49

    
50
MOCK_SERVERS = [
51
                {
52
                "id" : 1234,
53
                "name" : "sample-server",
54
                "imageId" : 11,
55
                "flavorId" : 1,
56
                "hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0",
57
                "status" : "BUILD",
58
                "progress" : 60,
59
                "addresses" : {
60
                    "public" : [
61
                        "67.23.10.132",
62
                        "67.23.10.131"
63
                        ],
64
                    "private" : [
65
                        "10.176.42.16"
66
                        ]
67
                    },
68
                "metadata" : {
69
                        "Server Label" : "Web Head 1",
70
                        "Image Version" : "2.1"
71
                    }
72
                },
73
                {
74
                    "id" : 5678,
75
                    "name" : "sample-server2",
76
                    "imageId" : 6,
77
                    "flavorId" : 1,
78
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
79
                    "status" : "ACTIVE",
80
                    "addresses" : {
81
                        "public" : [
82
                                "67.23.10.133"
83
                            ],
84
                        "private" : [
85
                                "10.176.42.17"
86
                            ]
87
                        },
88
                    "metadata" : {
89
                            "Server Label" : "DB 1"
90
                        }
91
                },
92
                {
93
                    "id" : 890,
94
                    "name" : "sample-server3",
95
                    "imageId" : 12,
96
                    "flavorId" : 2,
97
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
98
                    "status" : "SUSPENDED",
99
                    "addresses" : {
100
                        },
101
                    "metadata" : {
102
                            "Server Label" : "DB 2"
103
                        }
104
                }
105
               ]
106