summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/TC_DELG1/10_init
blob: 558effe0f574302e9c637ff6d3f3fcbeaefd98f3 (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
# TC_DELG1.10.1.POS Check For Existing Data
as testid@aaf.att.com
expect 200
ns list name com.test.delg.@[user.name]

as XX@NS
expect 201,409
perm create com.att.aaf.delg com.att * com.att.admin

expect 404
user list delegates delegate @[user.name]@csp.att.com

as testid@aaf.att.com
# TC_DELG1.10.2.POS Create Namespace to add IDs
expect 201
ns create com.test.delg.@[user.name] @[user.name] testid@aaf.att.com

as XX@NS
# TC_DELG1.10.10.POS Grant ability to change delegates
expect 404
force perm grant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg

# TC_DELG1.10.11.POS Grant ability to change delegates
expect 201
role create com.test.delg.@[user.name].change_delg

# TC_DELG1.10.12.POS Grant ability to change delegates
expect 201
force perm grant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg

# TC_DELG1.10.14.POS Create user role to change delegates
expect 201
user role add testid@aaf.att.com com.test.delg.@[user.name].change_delg

# TC_DELG1.10.15.POS Grant ability to create cred
expect 201
perm grant com.att.aaf.delg com.att create com.test.delg.@[user.name].change_delg

as testid@aaf.att.com
# TC_DELG1.10.30.POS Create cred that will change his own delg
expect 201
user cred add m99999@@[user.name].delg.test.com password123

as XX@NS
 TC_DELG1.10.31.POS ungrant ability to create cred
expect 200
perm ungrant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg

as testid@aaf.att.com
# TC_DELG1.10.99.POS Check for Data as Correct
expect 200
ns list name com.test.delg.@[user.name]