summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/expected/TC_PW1.expected
blob: b167edbb6e9d484ac276592a2684c8cb2d21c0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
set testid@aaf.att.com <pass>
set testunused@aaf.att.com <pass>
set XX@NS <pass>
set bogus boguspass
#delay 10
set NFR 0
as testid@aaf.att.com
# TC_PW1.10.0.POS Validate no NS
ns list name com.test.TC_PW1.@[user.name] 
** Expect 200,404 **

List Namespaces by Name[com.test.TC_PW1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

# TC_PW1.10.1.POS Create Namespace to add IDs
ns create com.test.TC_PW1.@[user.name] @[user.name] testid@aaf.att.com
** Expect 201 **
Created Namespace

# TC_PW1.10.10.POS Create role to assign mechid perm to
role create com.test.TC_PW1.@[user.name].cred_admin
** Expect 201 **
Created Role

as XX@NS
# TC_PW1.10.11.POS Assign role to mechid perm
perm grant com.att.aaf.mechid com.att create com.test.TC_PW1.@[user.name].cred_admin
** Expect 201 **
Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.TC_PW1.@[THE_USER].cred_admin]

as testid@aaf.att.com
# TC_PW1.10.12.POS Assign user for creating creds
user role add testid@aaf.att.com com.test.TC_PW1.@[user.name].cred_admin
** Expect 201 **
Added Role [com.test.TC_PW1.@[THE_USER].cred_admin] to User [testid@aaf.att.com]

# TC_PW1.20.1.NEG ASPR 1010 Passwords must be at least 8 characters in length
user cred add m12345@TC_PW1.test.com 12
** Expect 406 **
Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)

# TC_PW1.20.2.NEG ASPR 1010 Passwords must be at least 8 characters in length
user cred add m12345@TC_PW1.test.com 1
** Expect 406 **
Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)

# TC_PW1.20.3.NEG ASPR 1010 Passwords must be at least 8 characters in length
user cred add m12345@TC_PW1.test.com 1234567
** Expect 406 **
Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010),
Passwords must include characters from at least two of these groupings: alpha, numeric and one of these special chars: !@#$%^*()-+?/,:;. (ASPR-1010)

# TC_PW1.21.1.NEG ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
user cred add m12345@@[user.name].TC_PW1.test.com 12345678
** Expect 406 **
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)

# TC_PW1.21.2.NEG ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
user cred add m12345@@[user.name].TC_PW1.test.com abcdefgh
** Expect 406 **
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)

# TC_PW1.21.3.NEG ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
user cred add m12345@@[user.name].TC_PW1.test.com "!@#%^()*"
** Expect 406 **
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)

# TC_PW1.21.4.POS ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
user cred add m12345@@[user.name].TC_PW1.test.com "!@#a%^()*"
** Expect 201 **
Added Credential [m12345@@[THE_USER].TC_PW1.test.com]

sleep 0
user cred del m12345@@[user.name].TC_PW1.test.com
** Expect 200 **
Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]

# TC_PW1.21.5.POS ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
user cred add m12345@@[user.name].TC_PW1.test.com "!@#2%^()*"
** Expect 201 **
Added Credential [m12345@@[THE_USER].TC_PW1.test.com]

sleep 0
user cred del m12345@@[user.name].TC_PW1.test.com
** Expect 200 **
Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]

# TC_PW1.21.6.POS ASPR 1010 Passwords must include chars from 2 groupings, alpha, numeric and special
user cred add m12345@@[user.name].TC_PW1.test.com "abc123sd"
** Expect 201 **
Added Credential [m12345@@[THE_USER].TC_PW1.test.com]

sleep 0
user cred del m12345@@[user.name].TC_PW1.test.com
** Expect 200 **
Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]

# TC_PW1.21.10.NEG ASPR 1010 Passwords cannot be the same as the User ID
user cred add m12345@@[user.name].TC_PW1.test.com m12345
** Expect 406 **
Failed [SVC1406]: Not Acceptable - Password must be 8 chars or greater in length (ASPR-1010)

# TC_PW1.23.1.NEG Too Few Args for User Cred 1
user cred 
** Expect -1 **
Too few args: cred <add|del|reset|extend> <id> [password (! D|E)] [entry# (if multi)] 

# TC_PW1.23.2.NEG Too Few Args for User Cred add
user cred add
** Expect -1 **
Too few args: cred <add|del|reset|extend> <id> [password (! D|E)] [entry# (if multi)] 

# TC_PW1.30.1.POS Create a Credential, with Temporary Time
user cred add m12345@@[user.name].TC_PW1.test.com "abc123sd"
** Expect 201 **
Added Credential [m12345@@[THE_USER].TC_PW1.test.com]

# TC_PW1.30.3.NEG Credential Exists
user cred add m12345@@[user.name].TC_PW1.test.com "abc123sf"
** Expect 409 **
Failed [SVC1409]: Conflict Already Exists - Credential with same Expiration Date exists, use 'reset'

# TC_PW1.30.8.POS Reset this Password
user cred reset m12345@@[user.name].TC_PW1.test.com "ABC123SD" 1
** Expect 200 **
Reset Credential [m12345@@[THE_USER].TC_PW1.test.com]

# TC_PW1.30.9.POS Delete a Credential
user cred del m12345@@[user.name].TC_PW1.test.com 1
** Expect 200 **
Deleted Credential [m12345@@[THE_USER].TC_PW1.test.com]

as testid@aaf.att.com
# TC_PW1.99.1.NEG Delete ID m12345@@[user.name].TC_PW1.test.com
set force true
user cred del m12345@@[user.name].TC_PW1.test.com
** Expect 200,404 **
Failed [SVC5404]: Not Found - Credential does not exist

# TC_PW1.99.2.POS Remove ability to create creds
user role del testid@aaf.att.com com.test.TC_PW1.@[user.name].cred_admin
** Expect 200,404 **
Removed Role [com.test.TC_PW1.@[THE_USER].cred_admin] from User [testid@aaf.att.com]

as XX@NS
perm ungrant com.att.aaf.mechid com.att create com.test.TC_PW1.@[user.name].cred_admin
** Expect 200,404 **
UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.TC_PW1.@[THE_USER].cred_admin]

as testid@aaf.att.com
role delete com.test.TC_PW1.@[user.name].cred_admin
** Expect 200,404 **
Deleted Role

# TC_PW1.99.98.POS Delete Namespace com..test.TC_PW1
ns delete com.test.TC_PW1.@[user.name]
** Expect 200,404 **
Deleted Namespace

# TC_PW1.99.99.POS Verify Cleaned NS
ns list name com.test.TC_PW1.@[user.name]
** Expect 200,404 **

List Namespaces by Name[com.test.TC_PW1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***