sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame^] | 1 | # TC_Perm1.22.1.NEG Try to rename permission without changing anything
|
| 2 | expect 409
|
| 3 | perm 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
|
| 6 | expect 403
|
| 7 | perm 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
|
| 10 | expect 200
|
| 11 | ns list name com.test.TC_Perm1.@[user.name]
|
| 12 |
|
| 13 | # TC_Perm1.22.11.POS Rename permission instance
|
| 14 | expect 200
|
| 15 | perm 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
|
| 18 | expect 200
|
| 19 | ns list name com.test.TC_Perm1.@[user.name]
|
| 20 |
|
| 21 | # TC_Perm1.22.13.POS Rename permission action
|
| 22 | expect 200
|
| 23 | perm 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
|
| 26 | expect 200
|
| 27 | ns list name com.test.TC_Perm1.@[user.name]
|
| 28 |
|
| 29 | # TC_Perm1.22.15.POS Rename permission type
|
| 30 | expect 200
|
| 31 | perm 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
|
| 34 | expect 200
|
| 35 | ns list name com.test.TC_Perm1.@[user.name]
|
| 36 |
|
| 37 | # TC_Perm1.22.20.POS See permission is attached to this role
|
| 38 | expect 200
|
| 39 | role list role com.test.TC_Perm1.@[user.name].r.A
|
| 40 |
|
| 41 | # TC_Perm1.22.21.POS Rename permission type, instance and action
|
| 42 | expect 200
|
| 43 | perm 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
|
| 46 | expect 200
|
| 47 | role list role com.test.TC_Perm1.@[user.name].r.A
|
| 48 |
|
| 49 | # TC_Perm1.22.23.POS Verify permission is back to original state
|
| 50 | expect 200
|
| 51 | ns list name com.test.TC_Perm1.@[user.name]
|
| 52 |
|