sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 1 | as testid_1@test.com |
| 2 | expect Exception |
| 3 | # TC_NS3.20.0.NEG Too short |
| 4 | ns attrib |
| 5 | |
| 6 | # TC_NS3.20.1.NEG Wrong command |
| 7 | ns attrib xyz |
| 8 | |
| 9 | # TC_NS3.20.2.NEG Too Short after Command |
| 10 | ns attrib add |
| 11 | |
| 12 | # TC_NS3.20.3.NEG Too Short after Namespace |
| 13 | ns attrib add com.test.TC_NS3.@[user.name] |
| 14 | |
| 15 | # TC_NS3.20.4.NEG Too Short after Key |
| 16 | ns attrib add com.test.TC_NS3.@[user.name] TC_NS3_swm |
| 17 | |
| 18 | # TC_NS3.20.5.NEG No Permission |
| 19 | expect 403 |
| 20 | ns 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 |
| 23 | expect 201 |
| 24 | as XX@NS |
| 25 | perm 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 |
| 28 | expect 201 |
| 29 | perm 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 |
| 32 | as testid_1@test.com |
| 33 | expect 201 |
| 34 | ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1 |
| 35 | |
| 36 | # TC_NS3.20.30.POS List NS by Attrib |
| 37 | expect 200 |
| 38 | ns list keys TC_NS3_swm |
| 39 | |
| 40 | # TC_NS3.20.40.POS List NS (shows Attrib) |
| 41 | ns list name com.test.TC_NS3.@[user.name]_1 |
| 42 | |
| 43 | # TC_NS3.20.42.POS Change Attrib |
| 44 | ns 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) |
| 47 | ns list name com.test.TC_NS3.@[user.name]_1 |
| 48 | |
| 49 | # TC_NS3.20.80.POS Remove write Permission |
| 50 | expect 200 |
| 51 | perm 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 |
| 54 | expect 200 |
| 55 | perm ungrant com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin |
| 56 | |