Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Role1 / 50_force_delete
1 # TC_Role1.50.1.POS Create user to attach to role\r
2 expect 201\r
3 user cred add m00001@@[user.name].TC_Role1.test.com password123\r
4 \r
5 # TC_Role1.50.2.POS Create new role\r
6 expect 201\r
7 role create com.test.TC_Role1.@[user.name].r.C\r
8 \r
9 # TC_Role1.50.3.POS Attach user to role\r
10 expect 201\r
11 user role add m00001@@[user.name].TC_Role1.test.com com.test.TC_Role1.@[user.name].r.C\r
12 \r
13 # TC_Role1.50.4.POS Create permission and attach to role\r
14 expect 201\r
15 perm create com.test.TC_Role1.@[user.name].p.C myInstance myAction com.test.TC_Role1.@[user.name].r.C\r
16 \r
17 # TC_Role1.50.20.NEG Delete role with permission and user attached should fail\r
18 expect 424\r
19 role delete com.test.TC_Role1.@[user.name].r.C\r
20 \r
21 # TC_Role1.50.21.POS Force delete role should work\r
22 expect 200\r
23 set force=true role delete com.test.TC_Role1.@[user.name].r.C\r
24 \r
25 # TC_Role1.50.30.POS List Data on non-Empty NS\r
26 expect 200\r
27 ns list name com.test.TC_Role1.@[user.name]\r
28 \r