summaryrefslogtreecommitdiffstats
path: root/tests/legacy_d5.sqlite
blob: d96dbf40fef26f4741642dae46f126f2a93410d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
begin;
-- MySQL dump 10.13  Distrib 5.1.54, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: keystone
-- ------------------------------------------------------
-- Server version	5.1.54-1ubuntu4

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `credentials`
--

DROP TABLE IF EXISTS `credentials`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `credentials` (
  `id` integer NOT NULL primary key autoincrement,
  `user_id` integer   NULL,
  `tenant_id` integer   NULL,
  `type` varchar(20)   NULL,
  `key` varchar(255)   NULL,
  `secret` varchar(255)   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `credentials`
--


/*!40000 ALTER TABLE `credentials` DISABLE KEYS */;
INSERT INTO `credentials` VALUES (1,1,1,'EC2','admin','secrete');
INSERT INTO `credentials` VALUES (2,2,2,'EC2','demo','secrete');
/*!40000 ALTER TABLE `credentials` ENABLE KEYS */;


--
-- Table structure for table `endpoint_templates`
--

DROP TABLE IF EXISTS `endpoint_templates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `endpoint_templates` (
  `id` integer NOT NULL primary key autoincrement,
  `region` varchar(255)   NULL,
  `service_id` integer   NULL,
  `public_url` varchar(2000)   NULL,
  `admin_url` varchar(2000)   NULL,
  `internal_url` varchar(2000)   NULL,
  `enabled` integer   NULL,
  `is_global` integer   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `endpoint_templates`
--


/*!40000 ALTER TABLE `endpoint_templates` DISABLE KEYS */;
INSERT INTO `endpoint_templates` VALUES (1,'RegionOne',1,'http://10.4.128.10:8774/v1.1/%tenant_id%','http://10.4.128.10:8774/v1.1/%tenant_id%','http://10.4.128.10:8774/v1.1/%tenant_id%',1,1);
INSERT INTO `endpoint_templates` VALUES (2,'RegionOne',2,'http://10.4.128.10:9292/v1.1/%tenant_id%','http://10.4.128.10:9292/v1.1/%tenant_id%','http://10.4.128.10:9292/v1.1/%tenant_id%',1,1);
INSERT INTO `endpoint_templates` VALUES (3,'RegionOne',3,'http://10.4.128.10:5000/v2.0','http://10.4.128.10:35357/v2.0','http://10.4.128.10:5000/v2.0',1,1);
/*!40000 ALTER TABLE `endpoint_templates` ENABLE KEYS */;


--
-- Table structure for table `endpoints`
--

DROP TABLE IF EXISTS `endpoints`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `endpoints` (
  `id` integer NOT NULL primary key autoincrement,
  `tenant_id` integer   NULL,
  `endpoint_template_id` integer   NULL
)      ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `endpoints`
--


/*!40000 ALTER TABLE `endpoints` DISABLE KEYS */;
/*!40000 ALTER TABLE `endpoints` ENABLE KEYS */;


--
-- Table structure for table `roles`
--

DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `roles` (
  `id` integer NOT NULL primary key autoincrement,
  `name` varchar(255)   NULL,
  `desc` varchar(255)   NULL,
  `service_id` integer   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `roles`
--


/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` VALUES (1,'Admin',NULL,NULL);
INSERT INTO `roles` VALUES (2,'Member',NULL,NULL);
INSERT INTO `roles` VALUES (3,'KeystoneAdmin',NULL,NULL);
INSERT INTO `roles` VALUES (4,'KeystoneServiceAdmin',NULL,NULL);
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;


--
-- Table structure for table `services`
--

DROP TABLE IF EXISTS `services`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `services` (
  `id` integer NOT NULL primary key autoincrement,
  `name` varchar(255)   NULL,
  `type` varchar(255)   NULL,
  `desc` varchar(255)   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `services`
--


/*!40000 ALTER TABLE `services` DISABLE KEYS */;
INSERT INTO `services` VALUES (1,'nova','compute','Nova Compute Service');
INSERT INTO `services` VALUES (2,'glance','image','Glance Image Service');
INSERT INTO `services` VALUES (3,'keystone','identity','Keystone Identity Service');
/*!40000 ALTER TABLE `services` ENABLE KEYS */;


--
-- Table structure for table `tenants`
--

DROP TABLE IF EXISTS `tenants`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tenants` (
  `id` integer NOT NULL primary key autoincrement,
  `name` varchar(255)   NULL,
  `desc` varchar(255)   NULL,
  `enabled` integer   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tenants`
--


/*!40000 ALTER TABLE `tenants` DISABLE KEYS */;
INSERT INTO `tenants` VALUES (1,'admin',NULL,1);
INSERT INTO `tenants` VALUES (2,'demo',NULL,1);
INSERT INTO `tenants` VALUES (3,'invisible_to_admin',NULL,1);
/*!40000 ALTER TABLE `tenants` ENABLE KEYS */;


--
-- Table structure for table `token`
--

DROP TABLE IF EXISTS `token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `token` (
  `id` varchar(255) NOT NULL,
  `user_id` integer   NULL,
  `tenant_id` integer   NULL,
  `expires` datetime   NULL
)      ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `token`
--


/*!40000 ALTER TABLE `token` DISABLE KEYS */;
INSERT INTO `token` VALUES ('secrete',1,1,'2015-02-05 00:00:00');
/*!40000 ALTER TABLE `token` ENABLE KEYS */;


--
-- Table structure for table `user_roles`
--

DROP TABLE IF EXISTS `user_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_roles` (
  `id` integer NOT NULL primary key autoincrement,
  `user_id` integer   NULL,
  `role_id` integer   NULL,
  `tenant_id` integer   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_roles`
--


/*!40000 ALTER TABLE `user_roles` DISABLE KEYS */;
INSERT INTO `user_roles` VALUES (1,1,1,1);
INSERT INTO `user_roles` VALUES (2,2,2,2);
INSERT INTO `user_roles` VALUES (3,2,2,3);
INSERT INTO `user_roles` VALUES (4,1,1,2);
INSERT INTO `user_roles` VALUES (5,1,1,NULL);
INSERT INTO `user_roles` VALUES (6,1,3,NULL);
INSERT INTO `user_roles` VALUES (7,1,4,NULL);
/*!40000 ALTER TABLE `user_roles` ENABLE KEYS */;


--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `id` integer NOT NULL primary key autoincrement,
  `name` varchar(255)   NULL,
  `password` varchar(255)   NULL,
  `email` varchar(255)   NULL,
  `enabled` integer   NULL,
  `tenant_id` integer   NULL
)        ;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--


/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'admin','secrete',NULL,1,NULL);
INSERT INTO `users` VALUES (2,'demo','secrete',NULL,1,NULL);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;

/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2012-02-14  0:16:40
commit;