Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / expected / TC_PW1.expected
1 set testid@aaf.att.com <pass>
2 set testunused@aaf.att.com <pass>
3 set XX@NS <pass>
4 set bogus boguspass
5 #delay 10
6 set NFR 0
7 as testid@aaf.att.com
8 # TC_PW1.10.0.POS Validate no NS
9 ns list name com.test.TC_PW1.@[user.name] 
10 ** Expect 200,404 **
11
12 List Namespaces by Name[com.test.TC_PW1.@[THE_USER]]
13 --------------------------------------------------------------------------------
14     *** Namespace Not Found ***
15
16 # TC_PW1.10.1.POS Create Namespace to add IDs
17 ns create com.test.TC_PW1.@[user.name] @[user.name] testid@aaf.att.com
18 ** Expect 201 **
19 Created Namespace
20
21 # TC_PW1.10.10.POS Create role to assign mechid perm to
22 role create com.test.TC_PW1.@[user.name].cred_admin
23 ** Expect 201 **
24 Created Role
25
26 as XX@NS
27 # TC_PW1.10.11.POS Assign role to mechid perm
28 perm grant com.att.aaf.mechid com.att create com.test.TC_PW1.@[user.name].cred_admin
29 ** Expect 201 **
30 Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.TC_PW1.@[THE_USER].cred_admin]
31
32 as testid@aaf.att.com
33 # TC_PW1.10.12.POS Assign user for creating creds
34 user role add testid@aaf.att.com com.test.TC_PW1.@[user.name].cred_admin
35 ** Expect 201 **
36 Added Role [com.test.TC_PW1.@[THE_USER].cred_admin] to User [testid@aaf.att.com]
37
38 # TC_PW1.20.1.NEG ASPR 1010 Passwords must be at least 8 characters in length
39 user cred add m12345@TC_PW1.test.com 12
40 ** Expect 406 **
41 Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
42 Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)
43
44 # TC_PW1.20.2.NEG ASPR 1010 Passwords must be at least 8 characters in length
45 user cred add m12345@TC_PW1.test.com 1
46 ** Expect 406 **
47 Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
48 Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)
49
50 # TC_PW1.20.3.NEG ASPR 1010 Passwords must be at least 8 characters in length
51 user cred add m12345@TC_PW1.test.com 1234567
52 ** Expect 406 **
53 Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
54 Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)
55
56 # TC_PW1.21.1.NEG ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
57 user cred add m12345@@[user.name].TC_PW1.test.com 12345678
58 ** Expect 406 **
59 Failed [SVC1406]: Not Acceptable - Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)
60
61 # TC_PW1.21.2.NEG ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
62 user cred add m12345@@[user.name].TC_PW1.test.com abcdefgh
63 ** Expect 406 **
64 Failed [SVC1406]: Not Acceptable - Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)
65
66 # TC_PW1.21.3.NEG ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
67 user cred add m12345@@[user.name].TC_PW1.test.com "!@#%^()*"
68 ** Expect 406 **
69 Failed [SVC1406]: Not Acceptable - Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)
70
71 # TC_PW1.21.4.POS ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
72 user cred add m12345@@[user.name].TC_PW1.test.com "!@#a%^()*"
73 ** Expect 201 **
74 Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
75
76 sleep 0
77 user cred del m12345@@[user.name].TC_PW1.test.com
78 ** Expect 200 **
79 Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]
80
81 # TC_PW1.21.5.POS ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
82 user cred add m12345@@[user.name].TC_PW1.test.com "!@#2%^()*"
83 ** Expect 201 **
84 Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
85
86 sleep 0
87 user cred del m12345@@[user.name].TC_PW1.test.com
88 ** Expect 200 **
89 Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]
90
91 # TC_PW1.21.6.POS ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
92 user cred add m12345@@[user.name].TC_PW1.test.com "abc123sd"
93 ** Expect 201 **
94 Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
95
96 sleep 0
97 user cred del m12345@@[user.name].TC_PW1.test.com
98 ** Expect 200 **
99 Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]
100
101 # TC_PW1.21.10.NEG ASPR 1010 Passwords cannot be the same as the User ID
102 user cred add m12345@@[user.name].TC_PW1.test.com m12345
103 ** Expect 406 **
104 Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010)
105
106 # TC_PW1.23.1.NEG Too Few Args for User Cred 1
107 user cred 
108 ** Expect -1 **
109 Too few args: cred <add|del|reset|extend> <id> [password (! D|E)] [entry# (if multi)] 
110
111 # TC_PW1.23.2.NEG Too Few Args for User Cred add
112 user cred add
113 ** Expect -1 **
114 Too few args: cred <add|del|reset|extend> <id> [password (! D|E)] [entry# (if multi)] 
115
116 # TC_PW1.30.1.POS Create a Credential, with Temporary Time
117 user cred add m12345@@[user.name].TC_PW1.test.com "abc123sd"
118 ** Expect 201 **
119 Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
120
121 # TC_PW1.30.3.NEG Credential Exists
122 user cred add m12345@@[user.name].TC_PW1.test.com "abc123sf"
123 ** Expect 409 **
124 Failed [SVC1409]: Conflict Already Exists - Credential with same Expiration Date exists, use 'reset'
125
126 # TC_PW1.30.8.POS Reset this Password
127 user cred reset m12345@@[user.name].TC_PW1.test.com "ABC123SD" 1
128 ** Expect 200 **
129 Reset Credential [m12345@@[THE_USER].TC_PW1.test.com]
130
131 # TC_PW1.30.9.POS Delete a Credential
132 user cred del m12345@@[user.name].TC_PW1.test.com 1
133 ** Expect 200 **
134 Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]
135
136 as testid@aaf.att.com
137 # TC_PW1.99.1.NEG Delete ID m12345@@[user.name].TC_PW1.test.com
138 set force true
139 user cred del m12345@@[user.name].TC_PW1.test.com
140 ** Expect 200,404 **
141 Failed [SVC5404]: Not Found - Credential does not exist
142
143 # TC_PW1.99.2.POS Remove ability to create creds
144 user role del testid@aaf.att.com com.test.TC_PW1.@[user.name].cred_admin
145 ** Expect 200,404 **
146 Removed Role [com.test.TC_PW1.@[THE_USER].cred_admin] from User [testid@aaf.att.com]
147
148 as XX@NS
149 perm ungrant com.att.aaf.mechid com.att create com.test.TC_PW1.@[user.name].cred_admin
150 ** Expect 200,404 **
151 UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.TC_PW1.@[THE_USER].cred_admin]
152
153 as testid@aaf.att.com
154 role delete com.test.TC_PW1.@[user.name].cred_admin
155 ** Expect 200,404 **
156 Deleted Role
157
158 # TC_PW1.99.98.POS Delete Namespace com..test.TC_PW1
159 ns delete com.test.TC_PW1.@[user.name]
160 ** Expect 200,404 **
161 Deleted Namespace
162
163 # TC_PW1.99.99.POS Verify Cleaned NS
164 ns list name com.test.TC_PW1.@[user.name]
165 ** Expect 200,404 **
166
167 List Namespaces by Name[com.test.TC_PW1.@[THE_USER]]
168 --------------------------------------------------------------------------------
169     *** Namespace Not Found ***
170