blob: f6944cfe3e6648145e5e0650e0388d36d1648520 [file] [log] [blame]
Sergey Vilgelmace8ea32018-11-19 16:25:10 -06001---
2features:
3 - |
4 Merged ``RbacUtils`` and ``RbacUtilsMixin`` classes. Now there is only
5 ``RbacUtilsMixin`` class. The new class still provides all functionality of
6 the original ``RbacUtils`` class. New implementation simplifies the usage
7 of the rbac utils:
8
9 * there is no need in calling ``cls.setup_rbac_utils()`` function, because
10 it happens automatically at the ``setup_clients`` step.
11
12 * there is no ``rbac_utils`` variable, so if you need to call a
13 ``override_role`` function, just do it using ``self``:
14
15 .. code-block:: python
16
17 with self.override_role():
18 ...
19
20 * there is no need in ``test_obj`` variable for ``override_role`` function,
21 because it can use ``self``.
22
23upgrade:
24 - Remove usage of ``cls.setup_rbac_utils()`` function.
25 - |
26 Remove usage of ``self.rbac_utils`` variable:
27
28 .. code-block:: python
29
30 with self.rbac_utils.override_role(self):
31
32 convert to
33
34 .. code-block:: python
35
36 with self.override_role():
37
38 - |
39 Remove ``test_obj`` in usage of ``override_role`` context manager:
40
41 .. code-block:: python
42
43 with self.override_role(self):
44
45 convert to
46
47 .. code-block:: python
48
49 with self.override_role():