blob: 308170f8eca3ff53870c8d6bebfab636d0570516 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# TC_Perm1.20.1.POS List Data on non-Empty NS
expect 200
ns list name com.test.TC_Perm1.@[user.name]
# TC_Perm1.20.2.POS Add Perm
expect 201
perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction
# TC_Perm1.20.3.NEG Already Added Perm
expect 409
perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction
# TC_Perm1.20.4.POS Add Perm with non-existent Roles as well
expect 201
force perm create com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].r.A,com.test.TC_Perm1.@[user.name].r.B
# TC_Perm1.20.8.POS Print Info for Validation
expect 200
ns list name com.test.TC_Perm1.@[user.name]
# TC_Perm1.20.9.NEG Already Added Perm with some Roles as well
expect 409
perm create com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].r.A,com.test.TC_Perm1.@[user.name].r.B
# TC_Perm1.20.10.NEG Non-admins can't change description
expect 403
as testunused
perm describe com.test.TC_Perm1.@[user.name].p.A myInstance myAction Description for A
# TC_Perm1.20.11.NEG Permission must exist to change description
expect 404
as testid
perm describe com.test.TC_Perm1.@[user.name].p.C myInstance myAction Description for C
# TC_Perm1.20.12.POS Admin can change description
expect 200
perm describe com.test.TC_Perm1.@[user.name].p.A myInstance myAction Description for A
|