From 546d699a077d1dab8b30d7da696794771cf048e6 Mon Sep 17 00:00:00 2001 From: Alexis Koralewski Date: Fri, 13 Aug 2021 15:28:12 +0200 Subject: [PATCH] Update test_fixture for tests (add roles as in PyROS) --- src/core/pyros_django/misc/fixtures/tests/common_test_TZ.json | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/src/core/pyros_django/misc/fixtures/tests/common_test_TZ.json b/src/core/pyros_django/misc/fixtures/tests/common_test_TZ.json index 3b13ed6..5afd184 100644 --- a/src/core/pyros_django/misc/fixtures/tests/common_test_TZ.json +++ b/src/core/pyros_django/misc/fixtures/tests/common_test_TZ.json @@ -222,17 +222,88 @@ "maintenance_date": null } }, + { "model": "common.userlevel", "pk": 1, "fields": { - "name": "Developer", + "name": "Admin", "desc": "", - "priority": 0, + "priority": 7, + "quota": 9999.0 + } + }, + { + "model": "common.userlevel", + "pk": 2, + "fields": { + "name": "Observer", + "desc": "", + "priority": 2, + "quota": 9999.0 + } + }, + { + "model": "common.userlevel", + "pk": 3, + "fields": { + "name": "TAC", + "desc": "", + "priority": 1, + "quota": 9999.0 + } + }, + { + "model": "common.userlevel", + "pk": 4, + "fields": { + "name": "Management board member", + "desc": "", + "priority": 3, + "quota": 9999.0 + } + }, + { + "model": "common.userlevel", + "pk": 5, + "fields": { + "name": "Operator", + "desc": "", + "priority": 4, + "quota": 9999.0 + } + }, + { + "model": "common.userlevel", + "pk": 6, + "fields": { + "name": "Unit-PI", + "desc": "", + "priority": 6, "quota": 9999.0 } }, { + "model": "common.userlevel", + "pk": 7, + "fields": { + "name": "Unit board", + "desc": "", + "priority": 6, + "quota": 9999.0 + } + }, + { + "model": "common.userlevel", + "pk": 8, + "fields": { + "name": "Visitor", + "desc": "Account without any privilege", + "priority": 0, + "quota": 0.0 + } + }, + { "model": "common.pyrosuser", "pk": 1, "fields": { -- libgit2 0.21.2