blob: b167edbb6e9d484ac276592a2684c8cb2d21c0ec [file] [log] [blame]
sg481n43854a92017-08-03 17:27:34 -04001set testid@aaf.att.com <pass>
2set testunused@aaf.att.com <pass>
3set XX@NS <pass>
4set bogus boguspass
5#delay 10
6set NFR 0
7as testid@aaf.att.com
8# TC_PW1.10.0.POS Validate no NS
9ns list name com.test.TC_PW1.@[user.name]
10** Expect 200,404 **
11
12List 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
17ns create com.test.TC_PW1.@[user.name] @[user.name] testid@aaf.att.com
18** Expect 201 **
19Created Namespace
20
21# TC_PW1.10.10.POS Create role to assign mechid perm to
22role create com.test.TC_PW1.@[user.name].cred_admin
23** Expect 201 **
24Created Role
25
26as XX@NS
27# TC_PW1.10.11.POS Assign role to mechid perm
28perm grant com.att.aaf.mechid com.att create com.test.TC_PW1.@[user.name].cred_admin
29** Expect 201 **
30Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.TC_PW1.@[THE_USER].cred_admin]
31
32as testid@aaf.att.com
33# TC_PW1.10.12.POS Assign user for creating creds
34user role add testid@aaf.att.com com.test.TC_PW1.@[user.name].cred_admin
35** Expect 201 **
36Added 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
39user cred add m12345@TC_PW1.test.com 12
40** Expect 406 **
41Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
42Passwords 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
45user cred add m12345@TC_PW1.test.com 1
46** Expect 406 **
47Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
48Passwords 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
51user cred add m12345@TC_PW1.test.com 1234567
52** Expect 406 **
53Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
54Passwords 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
57user cred add m12345@@[user.name].TC_PW1.test.com 12345678
58** Expect 406 **
59Failed [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
62user cred add m12345@@[user.name].TC_PW1.test.com abcdefgh
63** Expect 406 **
64Failed [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
67user cred add m12345@@[user.name].TC_PW1.test.com "!@#%^()*"
68** Expect 406 **
69Failed [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
72user cred add m12345@@[user.name].TC_PW1.test.com "!@#a%^()*"
73** Expect 201 **
74Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
75
76sleep 0
77user cred del m12345@@[user.name].TC_PW1.test.com
78** Expect 200 **
79Deleted 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
82user cred add m12345@@[user.name].TC_PW1.test.com "!@#2%^()*"
83** Expect 201 **
84Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
85
86sleep 0
87user cred del m12345@@[user.name].TC_PW1.test.com
88** Expect 200 **
89Deleted 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
92user cred add m12345@@[user.name].TC_PW1.test.com "abc123sd"
93** Expect 201 **
94Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
95
96sleep 0
97user cred del m12345@@[user.name].TC_PW1.test.com
98** Expect 200 **
99Deleted 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
102user cred add m12345@@[user.name].TC_PW1.test.com m12345
103** Expect 406 **
104Failed [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
107user cred
108** Expect -1 **
109Too 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
112user cred add
113** Expect -1 **
114Too 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
117user cred add m12345@@[user.name].TC_PW1.test.com "abc123sd"
118** Expect 201 **
119Added Credential [m12345@@[THE_USER].TC_PW1.test.com]
120
121# TC_PW1.30.3.NEG Credential Exists
122user cred add m12345@@[user.name].TC_PW1.test.com "abc123sf"
123** Expect 409 **
124Failed [SVC1409]: Conflict Already Exists - Credential with same Expiration Date exists, use 'reset'
125
126# TC_PW1.30.8.POS Reset this Password
127user cred reset m12345@@[user.name].TC_PW1.test.com "ABC123SD" 1
128** Expect 200 **
129Reset Credential [m12345@@[THE_USER].TC_PW1.test.com]
130
131# TC_PW1.30.9.POS Delete a Credential
132user cred del m12345@@[user.name].TC_PW1.test.com 1
133** Expect 200 **
134Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]
135
136as testid@aaf.att.com
137# TC_PW1.99.1.NEG Delete ID m12345@@[user.name].TC_PW1.test.com
138set force true
139user cred del m12345@@[user.name].TC_PW1.test.com
140** Expect 200,404 **
141Failed [SVC5404]: Not Found - Credential does not exist
142
143# TC_PW1.99.2.POS Remove ability to create creds
144user role del testid@aaf.att.com com.test.TC_PW1.@[user.name].cred_admin
145** Expect 200,404 **
146Removed Role [com.test.TC_PW1.@[THE_USER].cred_admin] from User [testid@aaf.att.com]
147
148as XX@NS
149perm ungrant com.att.aaf.mechid com.att create com.test.TC_PW1.@[user.name].cred_admin
150** Expect 200,404 **
151UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.TC_PW1.@[THE_USER].cred_admin]
152
153as testid@aaf.att.com
154role delete com.test.TC_PW1.@[user.name].cred_admin
155** Expect 200,404 **
156Deleted Role
157
158# TC_PW1.99.98.POS Delete Namespace com..test.TC_PW1
159ns delete com.test.TC_PW1.@[user.name]
160** Expect 200,404 **
161Deleted Namespace
162
163# TC_PW1.99.99.POS Verify Cleaned NS
164ns list name com.test.TC_PW1.@[user.name]
165** Expect 200,404 **
166
167List Namespaces by Name[com.test.TC_PW1.@[THE_USER]]
168--------------------------------------------------------------------------------
169 *** Namespace Not Found ***
170