blob: e2495608f68460e296a60a9fa9a232363e486c92 [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001# TC_Perm1.22.1.NEG Try to rename permission without changing anything
2expect 409
3perm rename com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].p.B myInstance myAction
4
5# TC_Perm1.22.2.NEG Try to rename parent ns
6expect 403
7perm rename com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.att.TC_Perm1.@[user.name].p.C myInstance myAction
8
9# TC_Perm1.22.10.POS View permission in original state
10expect 200
11ns list name com.test.TC_Perm1.@[user.name]
12
13# TC_Perm1.22.11.POS Rename permission instance
14expect 200
15perm rename com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].p.B yourInstance myAction
16
17# TC_Perm1.22.12.POS Verify change in permission instance
18expect 200
19ns list name com.test.TC_Perm1.@[user.name]
20
21# TC_Perm1.22.13.POS Rename permission action
22expect 200
23perm rename com.test.TC_Perm1.@[user.name].p.B yourInstance myAction com.test.TC_Perm1.@[user.name].p.B yourInstance yourAction
24
25# TC_Perm1.22.14.POS Verify change in permission action
26expect 200
27ns list name com.test.TC_Perm1.@[user.name]
28
29# TC_Perm1.22.15.POS Rename permission type
30expect 200
31perm rename com.test.TC_Perm1.@[user.name].p.B yourInstance yourAction com.test.TC_Perm1.@[user.name].p.yourB yourInstance yourAction
32
33# TC_Perm1.22.16.POS Verify change in permission type
34expect 200
35ns list name com.test.TC_Perm1.@[user.name]
36
37# TC_Perm1.22.20.POS See permission is attached to this role
38expect 200
39role list role com.test.TC_Perm1.@[user.name].r.A
40
41# TC_Perm1.22.21.POS Rename permission type, instance and action
42expect 200
43perm rename com.test.TC_Perm1.@[user.name].p.yourB yourInstance yourAction com.test.TC_Perm1.@[user.name].p.B myInstance myAction
44
45# TC_Perm1.22.22.POS See permission stays attached after rename
46expect 200
47role list role com.test.TC_Perm1.@[user.name].r.A
48
49# TC_Perm1.22.23.POS Verify permission is back to original state
50expect 200
51ns list name com.test.TC_Perm1.@[user.name]
52