diff options
author | 2017-07-26 08:55:58 +0200 | |
---|---|---|
committer | 2017-07-26 08:55:58 +0200 | |
commit | 00bfa61e3a3cd0fef6038ba297b92f6bc3f6b6c7 (patch) | |
tree | fe81ee751616e57da745b90900ad3e43d150c2a1 /moonv4/tests/11_user_scalability/scenario/session_750.py | |
parent | c6cbfea94f51536b11e46bfe7053e1fb96c0a968 (diff) |
Delete test data from repository.
Change-Id: Ie3da4f813a50df34b64e2d2a7d26e737720c98a6
Diffstat (limited to 'moonv4/tests/11_user_scalability/scenario/session_750.py')
-rw-r--r-- | moonv4/tests/11_user_scalability/scenario/session_750.py | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/moonv4/tests/11_user_scalability/scenario/session_750.py b/moonv4/tests/11_user_scalability/scenario/session_750.py deleted file mode 100644 index 1a5aef28..00000000 --- a/moonv4/tests/11_user_scalability/scenario/session_750.py +++ /dev/null @@ -1,69 +0,0 @@ -import random - -pdp_name = "pdp1" -policy_name = "Session policy example" -model_name = "Session" -policy_genre = "session" - -SUBJECT_NUMBER = 750 -OBJECT_NUMBER = 750 -ROLE_NUMBER = 500 - -subjects = {} -for _id in range(SUBJECT_NUMBER): - subjects["user{}".format(_id)] = "" -objects = {"admin": "", } -for _id in range(ROLE_NUMBER): - objects["role{}".format(_id)] = "" -actions = {"activate": "", "deactivate": ""} - -subject_categories = {"subjectid": "", } -object_categories = {"role": "", } -action_categories = {"session-action": "", } - -subject_data = {"subjectid": {}} -for _id in range(SUBJECT_NUMBER): - subject_data["subjectid"]["user{}".format(_id)] = "" - -object_data = {"role": { - "admin": "", - "*": "" -}} -for _id in range(ROLE_NUMBER): - object_data["role"]["role{}".format(_id)] = "" -action_data = {"session-action": {"activate": "", "deactivate": "", "*": ""}} - -subject_assignments = {} -for _id in range(SUBJECT_NUMBER): - subject_assignments["user{}".format(_id)] = ({"subjectid": "user{}".format(_id)}, ) -object_assignments = {"admin": ({"role": "admin"}, {"role": "*"})} -for _id in range(ROLE_NUMBER): - _role = "role{}".format(_id) - object_assignments[_role] = ({"role": _role}, {"role": "*"}) -action_assignments = {"activate": ({"session-action": "activate"}, {"session-action": "*"}, ), - "deactivate": ({"session-action": "deactivate"}, {"session-action": "*"}, ) - } - -meta_rule = { - "session": {"id": "", "value": ("subjectid", "role", "session-action")}, -} - -rules = { - "session": [] -} - -for _id in range(SUBJECT_NUMBER): - _subject = "user{}".format(_id) - _object = "role{}".format(random.choice(range(ROLE_NUMBER))) - rules["session"].append({ - "rule": (_subject, _object, "*"), - "instructions": ( - { - "update": { - "operation": "add", - "target": "rbac:role:admin" # add the role admin to the current user - } - }, - {"chain": {"name": "rbac"}} # chain with the meta_rule named rbac - ) - }) |