summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/TC_DELG1/20_create
blob: 2dec8bf3fad04ec729fe0c751beb3745bd529c5f (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.20.10.NEG Cannot create delegate with unknown user ID
expect 404
user delegate add aa111q@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'

# TC_DELG1.20.11.NEG Cannot Create Delegate with unknown delegate
expect 404
user delegate add @[user.name]@csp.att.com aa111q@csp.att.com '2099-12-31 06:00'

# TC_DELG1.20.20.NEG May not change user, no delegate permission
as m99999@@[user.name].delg.test.com
expect 403
force user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'

as testid@aaf.att.com
# TC_DELG1.20.21.NEG Fail to Update Delegate that doesnt exist
expect 404
user delegate upd @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'

# TC_DELG1.20.22.NEG May not create delegate for self. 
expect 406
user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'

# TC_DELG1.20.23.POS May create delegate for self for tests by forcing.
expect 201
force user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'

as XX@NS
# TC_DELG1.20.30.POS Expect Delegates for User
expect 200
user list delegates user @[user.name]@csp.att.com

as testid@aaf.att.com
# TC_DELG1.20.35.NEG Fail Create when exists 
expect 409
user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'

as XX@NS
# TC_DELG1.20.40.POS Expect Delegates for User
expect 200
user list delegates user @[user.name]@csp.att.com

as testid@aaf.att.com
# TC_DELG1.20.46.POS Update Delegate with new Date
expect 200
user delegate upd @[user.name]@csp.att.com @[user.name]@csp.att.com '2999-01-01 06:00'

as XX@NS
# TC_DELG1.20.82.POS Expect Delegates for User
expect 200
user list delegates user @[user.name]@csp.att.com

# TC_DELG1.20.83.POS Expect Delegate to show up in list
expect 200
user list delegates delegate @[user.name]@csp.att.com