Add cloudtaf framework
[ta/cloudtaf.git] / libraries / cluster / test_usermanager.py
1 # Copyright 2019 Nokia
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15
16 def test_create_user_with_roles(userverifier):
17     userverifier.verify_create_user_with_roles()
18
19
20 def test_delete_users(userverifier):
21     userverifier.verify_delete_users()
22
23
24 def test_corrupted_user_list(userverifier):
25     userverifier.verify_corrupted_user_list()
26
27
28 def test_user_with_roles_raises(userverifier):
29     userverifier.verify_user_with_roles_notexist()
30
31
32 def test_user_roles_duplicates(userverifier):
33     userverifier.verify_user_roles_duplicates()
34
35
36 def test_one_user_per_roles(userverifier):
37     userverifier.verify_one_user_per_roles()
38
39
40 def test_all_roles(userverifier):
41     userverifier.verify_all_roles()
42
43
44 def test_no_roles(userverifier):
45     userverifier.verify_no_roles()
46
47
48 def test_special_roles_raises(userverifier):
49     userverifier.verify_special_roles_raises()