sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 1 | set XX@NS <pass> |
| 2 | set testid@aaf.att.com <pass> |
| 3 | set testunused@aaf.att.com <pass> |
| 4 | set testid_1@test.com <pass> |
| 5 | set testid_2@test.com <pass> |
| 6 | set bogus boguspass |
| 7 | #delay 10 |
| 8 | set NFR 0 |
| 9 | as XX@NS |
| 10 | ns list name com.test.TC_NS3.@[user.name] |
| 11 | ** Expect 200 ** |
| 12 | |
| 13 | List Namespaces by Name[com.test.TC_NS3.@[THE_USER]] |
| 14 | -------------------------------------------------------------------------------- |
| 15 | *** Namespace Not Found *** |
| 16 | |
| 17 | # TC_NS3.10.1.POS Create Namespace with User ID |
| 18 | ns create com.test.TC_NS3.@[user.name]_1 @[user.name] testid_1@test.com |
| 19 | ** Expect 201 ** |
| 20 | Created Namespace |
| 21 | |
| 22 | as testid_1@test.com |
| 23 | # TC_NS3.20.0.NEG Too short |
| 24 | ns attrib |
| 25 | ** Expect -1 ** |
| 26 | Too few args: attrib <add|upd|del> <ns> <key> [value] |
| 27 | |
| 28 | # TC_NS3.20.1.NEG Wrong command |
| 29 | ns attrib xyz |
| 30 | ** Expect -1 ** |
| 31 | Too few args: attrib <add|upd|del> <ns> <key> [value] |
| 32 | |
| 33 | # TC_NS3.20.2.NEG Too Short after Command |
| 34 | ns attrib add |
| 35 | ** Expect -1 ** |
| 36 | Too few args: attrib <add|upd|del> <ns> <key> [value] |
| 37 | |
| 38 | # TC_NS3.20.3.NEG Too Short after Namespace |
| 39 | ns attrib add com.test.TC_NS3.@[user.name] |
| 40 | ** Expect -1 ** |
| 41 | Too few args: attrib <add|upd|del> <ns> <key> [value] |
| 42 | |
| 43 | # TC_NS3.20.4.NEG Too Short after Key |
| 44 | ns attrib add com.test.TC_NS3.@[user.name] TC_NS3_swm |
| 45 | ** Expect -1 ** |
| 46 | Not added: Need more Data |
| 47 | |
| 48 | # TC_NS3.20.5.NEG No Permission |
| 49 | ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1 |
| 50 | ** Expect 403 ** |
| 51 | Failed [SVC1403]: Forbidden - testid_1@test.com may not create NS Attrib [com.test.TC_NS3.@[THE_USER]_1:TC_NS3_swm] |
| 52 | |
| 53 | # TC_NS3.20.6.POS Create Permission to write Attrib |
| 54 | as XX@NS |
| 55 | perm create com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin |
| 56 | ** Expect 201 ** |
| 57 | Created Permission |
| 58 | Granted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] to Role [com.test.TC_NS3.@[THE_USER]_1.admin] |
| 59 | |
| 60 | # TC_NS3.20.6.POS Create Permission |
| 61 | perm create com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin |
| 62 | ** Expect 201 ** |
| 63 | Created Permission |
| 64 | Granted Permission [com.att.aaf.attrib|:com.att.*:*|read] to Role [com.test.TC_NS3.@[THE_USER]_1.admin] |
| 65 | |
| 66 | # TC_NS3.20.10.POS Attribute added |
| 67 | as testid_1@test.com |
| 68 | ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1 |
| 69 | ** Expect 201 ** |
| 70 | Add Attrib TC_NS3_swm=v1 to com.test.TC_NS3.@[THE_USER]_1 |
| 71 | |
| 72 | # TC_NS3.20.30.POS List NS by Attrib |
| 73 | ns list keys TC_NS3_swm |
| 74 | ** Expect 200 ** |
| 75 | |
| 76 | List Namespace Names by Attribute |
| 77 | -------------------------------------------------------------------------------- |
| 78 | com.test.TC_NS3.@[THE_USER]_1 |
| 79 | |
| 80 | # TC_NS3.20.40.POS List NS (shows Attrib) |
| 81 | ns list name com.test.TC_NS3.@[user.name]_1 |
| 82 | ** Expect 200 ** |
| 83 | |
| 84 | List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1] |
| 85 | -------------------------------------------------------------------------------- |
| 86 | com.test.TC_NS3.@[THE_USER]_1 |
| 87 | Administrators |
| 88 | testid_1@test.com |
| 89 | Responsible Parties |
| 90 | @[THE_USER]@csp.att.com |
| 91 | Namespace Attributes |
| 92 | TC_NS3_swm=v1 |
| 93 | Roles |
| 94 | com.test.TC_NS3.@[THE_USER]_1.admin |
| 95 | com.test.TC_NS3.@[THE_USER]_1.owner |
| 96 | Permissions |
| 97 | com.test.TC_NS3.@[THE_USER]_1.access * * |
| 98 | com.test.TC_NS3.@[THE_USER]_1.access * read |
| 99 | |
| 100 | # TC_NS3.20.42.POS Change Attrib |
| 101 | ns attrib upd com.test.TC_NS3.@[user.name]_1 TC_NS3_swm Version1 |
| 102 | ** Expect 200 ** |
| 103 | Update Attrib TC_NS3_swm=Version1 for com.test.TC_NS3.@[THE_USER]_1 |
| 104 | |
| 105 | # TC_NS3.20.49.POS List NS (shows new Attrib) |
| 106 | ns list name com.test.TC_NS3.@[user.name]_1 |
| 107 | ** Expect 200 ** |
| 108 | |
| 109 | List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1] |
| 110 | -------------------------------------------------------------------------------- |
| 111 | com.test.TC_NS3.@[THE_USER]_1 |
| 112 | Administrators |
| 113 | testid_1@test.com |
| 114 | Responsible Parties |
| 115 | @[THE_USER]@csp.att.com |
| 116 | Namespace Attributes |
| 117 | TC_NS3_swm=Version1 |
| 118 | Roles |
| 119 | com.test.TC_NS3.@[THE_USER]_1.admin |
| 120 | com.test.TC_NS3.@[THE_USER]_1.owner |
| 121 | Permissions |
| 122 | com.test.TC_NS3.@[THE_USER]_1.access * * |
| 123 | com.test.TC_NS3.@[THE_USER]_1.access * read |
| 124 | |
| 125 | # TC_NS3.20.80.POS Remove write Permission |
| 126 | perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin |
| 127 | ** Expect 200 ** |
| 128 | UnGranted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] from Role [com.test.TC_NS3.@[THE_USER]_1.admin] |
| 129 | |
| 130 | # TC_NS3.20.83.POS Remove read Permission |
| 131 | perm ungrant com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin |
| 132 | ** Expect 200 ** |
| 133 | UnGranted Permission [com.att.aaf.attrib|:com.att.*:*|read] from Role [com.test.TC_NS3.@[THE_USER]_1.admin] |
| 134 | |
| 135 | as testid_1@test.com |
| 136 | # TC_NS3.50.2.NEG Too Short after Command |
| 137 | ns attrib del |
| 138 | ** Expect -1 ** |
| 139 | Too few args: attrib <add|upd|del> <ns> <key> [value] |
| 140 | |
| 141 | # TC_NS3.50.3.NEG Too Short after Namespace |
| 142 | ns attrib del com.test.TC_NS3.@[user.name] |
| 143 | ** Expect -1 ** |
| 144 | Too few args: attrib <add|upd|del> <ns> <key> [value] |
| 145 | |
| 146 | # TC_NS3.50.5.NEG No Permission |
| 147 | ns attrib del com.test.TC_NS3.@[user.name]_1 TC_NS3_swm |
| 148 | ** Expect 403 ** |
| 149 | Failed [SVC1403]: Forbidden - testid_1@test.com may not delete NS Attrib [com.test.TC_NS3.@[THE_USER]_1:TC_NS3_swm] |
| 150 | |
| 151 | # TC_NS3.50.6.POS Create Permission |
| 152 | as XX@NS |
| 153 | perm grant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin |
| 154 | ** Expect 201 ** |
| 155 | Granted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] to Role [com.test.TC_NS3.@[THE_USER]_1.admin] |
| 156 | |
| 157 | # TC_NS3.50.7.POS Attribute added |
| 158 | as testid_1@test.com |
| 159 | ns attrib del com.test.TC_NS3.@[user.name]_1 TC_NS3_swm |
| 160 | ** Expect 200 ** |
| 161 | Attrib TC_NS3_swm deleted from com.test.TC_NS3.@[THE_USER]_1 |
| 162 | |
| 163 | # TC_NS3.50.8.POS Remove Permission |
| 164 | as XX@NS |
| 165 | perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin |
| 166 | ** Expect 200 ** |
| 167 | UnGranted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] from Role [com.test.TC_NS3.@[THE_USER]_1.admin] |
| 168 | |
| 169 | as testid_1@test.com |
| 170 | # TC_NS3.99.2.POS Namespace Admin can delete Namespace |
| 171 | force ns delete com.test.TC_NS3.@[user.name]_1 |
| 172 | ** Expect 200,404 ** |
| 173 | Deleted Namespace |
| 174 | |
| 175 | # TC_NS3.99.3.POS Print Namespaces |
| 176 | ns list name com.test.TC_NS3.@[user.name]_1 |
| 177 | ** Expect 200,404 ** |
| 178 | |
| 179 | List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1] |
| 180 | -------------------------------------------------------------------------------- |
| 181 | *** Namespace Not Found *** |
| 182 | |
| 183 | # TC_NS3.99.10.POS Remove Special Permissions |
| 184 | as XX@NS |
| 185 | force perm delete com.att.aaf.attrib :com.att.*:TC_NS3_swm write |
| 186 | ** Expect 200,404 ** |
| 187 | Deleted Permission |
| 188 | |
| 189 | force perm delete com.att.aaf.attrib :com.att.*:* read |
| 190 | ** Expect 200,404 ** |
| 191 | Deleted Permission |
| 192 | |