blob: 46ca091e32c17ff01d9aa7d7262b22220c9db072 [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001as testid_1@test.com
2expect Exception
3# TC_NS3.20.0.NEG Too short
4ns attrib
5
6# TC_NS3.20.1.NEG Wrong command
7ns attrib xyz
8
9# TC_NS3.20.2.NEG Too Short after Command
10ns attrib add
11
12# TC_NS3.20.3.NEG Too Short after Namespace
13ns attrib add com.test.TC_NS3.@[user.name]
14
15# TC_NS3.20.4.NEG Too Short after Key
16ns attrib add com.test.TC_NS3.@[user.name] TC_NS3_swm
17
18# TC_NS3.20.5.NEG No Permission
19expect 403
20ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1
21
22# TC_NS3.20.6.POS Create Permission to write Attrib
23expect 201
24as XX@NS
25perm create com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
26
27# TC_NS3.20.6.POS Create Permission
28expect 201
29perm create com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin
30
31# TC_NS3.20.10.POS Attribute added
32as testid_1@test.com
33expect 201
34ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1
35
36# TC_NS3.20.30.POS List NS by Attrib
37expect 200
38ns list keys TC_NS3_swm
39
40# TC_NS3.20.40.POS List NS (shows Attrib)
41ns list name com.test.TC_NS3.@[user.name]_1
42
43# TC_NS3.20.42.POS Change Attrib
44ns attrib upd com.test.TC_NS3.@[user.name]_1 TC_NS3_swm Version1
45
46# TC_NS3.20.49.POS List NS (shows new Attrib)
47ns list name com.test.TC_NS3.@[user.name]_1
48
49# TC_NS3.20.80.POS Remove write Permission
50expect 200
51perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
52
53# TC_NS3.20.83.POS Remove read Permission
54expect 200
55perm ungrant com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin
56