blob: 269f731739a69cb0bef1310b61df6072b26fabc6 [file] [log] [blame]
sg481n43854a92017-08-03 17:27:34 -04001set testid@aaf.att.com <pass>
2set XX@NS <pass>
3set testunused@aaf.att.com <pass>
4set bogus boguspass
5#delay 10
6set NFR 0
7as testid@aaf.att.com
8# TC_Appr1.10.0.POS List NS to prove ok
9ns list name com.test.appr
10** Expect 200 **
11
12List Namespaces by Name[com.test.appr]
13--------------------------------------------------------------------------------
14
15ns list name com.test.appr.@[user.name]
16** Expect 200 **
17
18List Namespaces by Name[com.test.appr.@[THE_USER]]
19--------------------------------------------------------------------------------
20
21# TC_Appr1.10.1.POS Create Personalized Namespace to add Approvals
22ns create com.test.appr.@[user.name] @[user.name] testid@aaf.att.com
23** Expect 201 **
24Created Namespace
25
26# TC_Appr1.10.2.POS Create General Namespace to add Approvals
27ns create com.test.appr @[user.name] testid@aaf.att.com
28** Expect 201 **
29Created Namespace
30
31# TC_Appr1.10.10.POS Create Roles in Namespace
32role create com.test.appr.@[user.name].addToUserRole
33** Expect 201 **
34Created Role
35
36role create com.test.appr.@[user.name].grantToPerm
37** Expect 201 **
38Created Role
39
40role create com.test.appr.@[user.name].ungrantFromPerm
41** Expect 201 **
42Created Role
43
44role create com.test.appr.@[user.name].grantFirstPerm
45** Expect 201 **
46Created Role
47
48role create com.test.appr.@[user.name].grantSecondPerm
49** Expect 201 **
50Created Role
51
52# TC_Appr1.10.12.POS Create Permissions in Namespace
53perm create com.test.appr.@[user.name].ungrantFromRole myInstance myAction com.test.appr.@[user.name].ungrantFromPerm
54** Expect 201 **
55Created Permission
56Granted Permission [com.test.appr.@[THE_USER].ungrantFromRole|myInstance|myAction] to Role [com.test.appr.@[THE_USER].ungrantFromPerm]
57
58perm create com.test.appr.@[user.name].grantToRole myInstance myAction
59** Expect 201 **
60Created Permission
61
62force perm create com.test.appr.@[user.name].deleteThisPerm myInstance myAction com.test.appr.@[user.name].grantedRole
63** Expect 201 **
64Created Permission
65Granted Permission [com.test.appr.@[THE_USER].deleteThisPerm|myInstance|myAction] to Role [com.test.appr.@[THE_USER].grantedRole] (Created)
66
67perm create com.test.appr.@[user.name].grantTwoRoles myInstance myAction
68** Expect 201 **
69Created Permission
70
71perm create com.test.appr.@[user.name].ungrantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm
72** Expect 201 **
73Created Permission
74Granted Permission [com.test.appr.@[THE_USER].ungrantTwoRoles|myInstance|myAction] to Role [com.test.appr.@[THE_USER].grantFirstPerm]
75Granted Permission [com.test.appr.@[THE_USER].ungrantTwoRoles|myInstance|myAction] to Role [com.test.appr.@[THE_USER].grantSecondPerm]
76
77as testunused@aaf.att.com
78# TC_Appr1.15.01.NEG Create Future and Approvals with non-admin request
79user role add @[user.name]@@[user.name].appr.test.com com.test.appr.@[user.name].addToUserRole
80** Expect 403 **
81Failed [SVC2403]: Approvals required, but not requested by Client
82
83# TC_Appr1.15.02.NEG Create Approval for NS create
84ns create com.test.appr.@[user.name].myProject @[user.name]
85** Expect 403 **
86Failed [SVC2403]: Approvals required, but not requested by Client
87
88# TC_Appr1.15.03.NEG Generate Approval for granting permission to role
89perm grant com.test.appr.@[user.name].grantToRole myInstance myAction com.test.appr.@[user.name].grantToPerm
90** Expect 403 **
91Failed [SVC2403]: Approvals required, but not requested by Client
92
93# TC_Appr1.15.04.NEG Generate Approval for ungranting permission from role
94perm ungrant com.test.appr.@[user.name].ungrantFromRole myInstance myAction com.test.appr.@[user.name].ungrantFromPerm
95** Expect 403 **
96Failed [SVC2403]: Approvals required, but not requested by Client
97
98# TC_Appr1.15.05.NEG Generate Approval for granting permission to role
99perm grant com.test.appr.@[user.name].grantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm
100** Expect 403 **
101Failed [SVC2403]: Approvals required, but not requested by Client
102Failed [SVC2403]: Approvals required, but not requested by Client
103
104# TC_Appr1.15.06.NEG Generate Approval for ungranting permission from role
105perm ungrant com.test.appr.@[user.name].ungrantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm
106** Expect 403 **
107Failed [SVC2403]: Approvals required, but not requested by Client
108Failed [SVC2403]: Approvals required, but not requested by Client
109
110# TC_Appr1.15.51.POS Create Future and Approvals with non-admin request
111set request true
112set request=true user role add @[user.name]@@[user.name].appr.test.com com.test.appr.@[user.name].addToUserRole
113** Expect 202 **
114UserRole Creation Accepted, but requires Approvals before actualizing
115
116# TC_Appr1.15.52.POS Create Approval for NS create
117set request true
118set request=true ns create com.test.appr.@[user.name].myProject @[user.name]
119** Expect 202 **
120Namespace Creation Accepted, but requires Approvals before actualizing
121
122# TC_Appr1.15.53.POS Generate Approval for granting permission to role
123set request true
124set request=true perm grant com.test.appr.@[user.name].grantToRole myInstance myAction com.test.appr.@[user.name].grantToPerm
125** Expect 202 **
126Permission Role Granted Accepted, but requires Approvals before actualizing
127
128# TC_Appr1.15.54.POS Generate Approval for ungranting permission from role
129request perm ungrant com.test.appr.@[user.name].ungrantFromRole myInstance myAction com.test.appr.@[user.name].ungrantFromPerm
130** Expect 202 **
131Permission Role Ungranted Accepted, but requires Approvals before actualizing
132
133# TC_Appr1.15.55.POS Generate Approval for granting permission to role
134request perm grant com.test.appr.@[user.name].grantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm
135** Expect 202 **
136Permission Role Granted Accepted, but requires Approvals before actualizing
137Permission Role Granted Accepted, but requires Approvals before actualizing
138
139# TC_Appr1.15.56.POS Generate Approval for ungranting permission from role
140request perm ungrant com.test.appr.@[user.name].ungrantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm
141** Expect 202 **
142Permission Role Ungranted Accepted, but requires Approvals before actualizing
143Permission Role Ungranted Accepted, but requires Approvals before actualizing
144