From: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
v1>v4, split user and group and be compatible to previous access tagging
v5>v7, Update testcases.
Royce Lv (4):
Split users and groups for permission query
Move validation to authorizaiton
change vm permission tag
Update test model for authentication and authorization
docs/API.md | 19 ++++++----
src/kimchi/control/groups.py | 28 ++++++++++++++
src/kimchi/control/host.py | 14 -------
src/kimchi/control/users.py | 35 +++++++++++++++++
src/kimchi/i18n.py | 1 +
src/kimchi/mockmodel.py | 4 ++
src/kimchi/model/groups.py | 67 +++++++++++++++++++++++++++++++++
src/kimchi/model/host.py | 19 ----------
src/kimchi/model/users.py | 90 ++++++++++++++++++++++++++++++++++++++++++++
src/kimchi/model/vms.py | 65 ++++++++++++++++++++------------
tests/test_authorization.py | 3 +-
tests/test_model.py | 3 +-
tests/test_rest.py | 4 +-
tests/utils.py | 3 +-
14 files changed, 284 insertions(+), 71 deletions(-)
create mode 100644 src/kimchi/control/groups.py
create mode 100644 src/kimchi/control/users.py
create mode 100644 src/kimchi/model/groups.py
create mode 100644 src/kimchi/model/users.py
--
1.8.3.2