Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Cred1 / 30_multiple_creds
1 # TC_Cred1.30.1.NEG Multiple options available to delete
2 as XX@NS
3 expect 201
4 user cred add m99990@@[user.name].TC_Cred1.test.com pass23Word
5
6 as testid@aaf.att.com
7 expect 201
8 user cred add m99990@@[user.name].TC_Cred1.test.com pass23worD
9
10 # TC_Cred1.30.2.POS Succeeds when we choose last option
11 expect 200
12 user cred del m99990@@[user.name].TC_Cred1.test.com 2
13
14 # TC_Cred1.30.10.POS Add another credential
15 expect 201
16 user cred add m99990@@[user.name].TC_Cred1.test.com password123
17
18 # TC_Cred1.30.11.NEG Multiple options available to reset
19 expect 300
20 user cred reset m99990@@[user.name].TC_Cred1.test.com password123
21
22 # TC_Cred1.30.12.NEG Fails when we choose a bad option
23 expect 406
24 user cred reset m99990@@[user.name].TC_Cred1.test.com password123 0 
25
26 # TC_Cred1.30.13.POS Succeeds when we choose last option
27 expect 200
28 user cred reset m99990@@[user.name].TC_Cred1.test.com password123 2
29
30 #TC_Cred1.30.30.NEG Fails when we don't have specific property
31 expect 403
32 user cred extend m99990@@[user.name].TC_Cred1.test.com 
33
34 #### EXTENDS behavior ####
35 #TC_Cred1.30.32.POS Setup Temp Role for Extend Permission
36 expect 201
37 as XX@NS
38 role create com.test.TC_Cred1.@[user.name].extendTemp
39
40 #TC_Cred1.30.33.POS Grant Extends Permission to Role
41 expect 201
42 perm grant com.att.aaf.password com.att extend com.test.TC_Cred1.@[user.name].extendTemp 
43
44 #TC_Cred1.30.35.POS Add current User to Temp Role for Extend Permission
45 expect 201
46 role user add com.test.TC_Cred1.@[user.name].extendTemp XX@NS
47
48 #TC_Cred1.30.36.POS Extend Password, expecting Single Response
49 expect 200
50 user cred extend m99990@@[user.name].TC_Cred1.test.com 1
51
52 #TC_Cred1.30.39.POS Remove Role
53 expect 200
54 set force=true
55 role delete com.test.TC_Cred1.@[user.name].extendTemp
56
57 #### MULTI CLEANUP #####
58 expect 200
59 role list user m99990@@[user.name].TC_Cred1.test.com 
60
61 # TC_Cred1.30.80.POS Delete all entries for this cred
62 expect 200
63 set force=true
64 user cred del m99990@@[user.name].TC_Cred1.test.com 
65
66 # TC_Cred1.30.99.POS List ns shows no creds attached
67 expect 200
68 ns list name com.test.TC_Cred1.@[user.name]
69