Commit 546d699a077d1dab8b30d7da696794771cf048e6

Authored by Alexis Koralewski
1 parent 8aa9bbc0
Exists in dev

Update test_fixture for tests (add roles as in PyROS)

src/core/pyros_django/misc/fixtures/tests/common_test_TZ.json
... ... @@ -222,17 +222,88 @@
222 222 "maintenance_date": null
223 223 }
224 224 },
  225 +
225 226 {
226 227 "model": "common.userlevel",
227 228 "pk": 1,
228 229 "fields": {
229   - "name": "Developer",
  230 + "name": "Admin",
230 231 "desc": "",
231   - "priority": 0,
  232 + "priority": 7,
  233 + "quota": 9999.0
  234 + }
  235 + },
  236 + {
  237 + "model": "common.userlevel",
  238 + "pk": 2,
  239 + "fields": {
  240 + "name": "Observer",
  241 + "desc": "",
  242 + "priority": 2,
  243 + "quota": 9999.0
  244 + }
  245 + },
  246 + {
  247 + "model": "common.userlevel",
  248 + "pk": 3,
  249 + "fields": {
  250 + "name": "TAC",
  251 + "desc": "",
  252 + "priority": 1,
  253 + "quota": 9999.0
  254 + }
  255 + },
  256 + {
  257 + "model": "common.userlevel",
  258 + "pk": 4,
  259 + "fields": {
  260 + "name": "Management board member",
  261 + "desc": "",
  262 + "priority": 3,
  263 + "quota": 9999.0
  264 + }
  265 + },
  266 + {
  267 + "model": "common.userlevel",
  268 + "pk": 5,
  269 + "fields": {
  270 + "name": "Operator",
  271 + "desc": "",
  272 + "priority": 4,
  273 + "quota": 9999.0
  274 + }
  275 + },
  276 + {
  277 + "model": "common.userlevel",
  278 + "pk": 6,
  279 + "fields": {
  280 + "name": "Unit-PI",
  281 + "desc": "",
  282 + "priority": 6,
232 283 "quota": 9999.0
233 284 }
234 285 },
235 286 {
  287 + "model": "common.userlevel",
  288 + "pk": 7,
  289 + "fields": {
  290 + "name": "Unit board",
  291 + "desc": "",
  292 + "priority": 6,
  293 + "quota": 9999.0
  294 + }
  295 + },
  296 + {
  297 + "model": "common.userlevel",
  298 + "pk": 8,
  299 + "fields": {
  300 + "name": "Visitor",
  301 + "desc": "Account without any privilege",
  302 + "priority": 0,
  303 + "quota": 0.0
  304 + }
  305 + },
  306 + {
236 307 "model": "common.pyrosuser",
237 308 "pk": 1,
238 309 "fields": {
... ...