sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 1 | set testid <pass> |
| 2 | set testid@aaf.att.com <pass> |
| 3 | set XX@NS <pass> |
| 4 | set testunused <pass> |
| 5 | set bogus boguspass |
| 6 | #delay 10 |
| 7 | set NFR 0 |
| 8 | # TC_05 |
| 9 | ns list name com.test.TC_Link_1.@[user.name] |
| 10 | ** Expect 200,404 ** |
| 11 | |
| 12 | List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]] |
| 13 | -------------------------------------------------------------------------------- |
| 14 | *** Namespace Not Found *** |
| 15 | |
| 16 | ns list name com.test.TC_Link_2.@[user.name] |
| 17 | ** Expect 200,404 ** |
| 18 | |
| 19 | List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]] |
| 20 | -------------------------------------------------------------------------------- |
| 21 | *** Namespace Not Found *** |
| 22 | |
| 23 | perm list role com.test.TC_Link_1.@[user.name].myRole |
| 24 | ** Expect 200,404 ** |
| 25 | |
| 26 | List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole] |
| 27 | -------------------------------------------------------------------------------- |
| 28 | PERM Type Instance Action |
| 29 | -------------------------------------------------------------------------------- |
| 30 | |
| 31 | |
| 32 | role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction |
| 33 | ** Expect 200,404 ** |
| 34 | |
| 35 | List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction |
| 36 | -------------------------------------------------------------------------------- |
| 37 | ROLE Name |
| 38 | PERM Type Instance Action |
| 39 | -------------------------------------------------------------------------------- |
| 40 | |
| 41 | # TC_10 |
| 42 | as XX@NS |
| 43 | ns create com.test.TC_Link_1.@[user.name] @[user.name] XX@NS |
| 44 | ** Expect 201 ** |
| 45 | Created Namespace |
| 46 | |
| 47 | ns create com.test.TC_Link_2.@[user.name] @[user.name] XX@NS |
| 48 | ** Expect 201 ** |
| 49 | Created Namespace |
| 50 | |
| 51 | role create com.test.TC_Link_1.@[user.name].myRole |
| 52 | ** Expect 201 ** |
| 53 | Created Role |
| 54 | |
| 55 | perm create com.test.TC_Link_2.@[user.name].myPerm myInstance myAction |
| 56 | ** Expect 201 ** |
| 57 | Created Permission |
| 58 | |
| 59 | perm grant com.test.TC_Link_2.@[user.name].myPerm myInstance myAction com.test.TC_Link_1.@[user.name].myRole |
| 60 | ** Expect 201 ** |
| 61 | Granted Permission [com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction] to Role [com.test.TC_Link_1.@[THE_USER].myRole] |
| 62 | |
| 63 | # 15_print |
| 64 | ns list name com.test.TC_Link_1.@[user.name] |
| 65 | ** Expect 200 ** |
| 66 | |
| 67 | List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]] |
| 68 | -------------------------------------------------------------------------------- |
| 69 | com.test.TC_Link_1.@[THE_USER] |
| 70 | Administrators |
| 71 | XX@NS |
| 72 | Responsible Parties |
| 73 | @[THE_USER]@csp.att.com |
| 74 | Roles |
| 75 | com.test.TC_Link_1.@[THE_USER].admin |
| 76 | com.test.TC_Link_1.@[THE_USER].myRole |
| 77 | com.test.TC_Link_1.@[THE_USER].owner |
| 78 | Permissions |
| 79 | com.test.TC_Link_1.@[THE_USER].access * * |
| 80 | com.test.TC_Link_1.@[THE_USER].access * read |
| 81 | |
| 82 | ns list name com.test.TC_Link_2.@[user.name] |
| 83 | ** Expect 200 ** |
| 84 | |
| 85 | List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]] |
| 86 | -------------------------------------------------------------------------------- |
| 87 | com.test.TC_Link_2.@[THE_USER] |
| 88 | Administrators |
| 89 | XX@NS |
| 90 | Responsible Parties |
| 91 | @[THE_USER]@csp.att.com |
| 92 | Roles |
| 93 | com.test.TC_Link_2.@[THE_USER].admin |
| 94 | com.test.TC_Link_2.@[THE_USER].owner |
| 95 | Permissions |
| 96 | com.test.TC_Link_2.@[THE_USER].access * * |
| 97 | com.test.TC_Link_2.@[THE_USER].access * read |
| 98 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 99 | |
| 100 | perm list role com.test.TC_Link_1.@[user.name].myRole |
| 101 | ** Expect 200 ** |
| 102 | |
| 103 | List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole] |
| 104 | -------------------------------------------------------------------------------- |
| 105 | PERM Type Instance Action |
| 106 | -------------------------------------------------------------------------------- |
| 107 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 108 | |
| 109 | |
| 110 | role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction |
| 111 | ** Expect 200 ** |
| 112 | |
| 113 | List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction |
| 114 | -------------------------------------------------------------------------------- |
| 115 | ROLE Name |
| 116 | PERM Type Instance Action |
| 117 | -------------------------------------------------------------------------------- |
| 118 | com.test.TC_Link_1.@[THE_USER].myRole |
| 119 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 120 | |
| 121 | role delete com.test.TC_Link_1.@[user.name].myRole |
| 122 | ** Expect 200 ** |
| 123 | Deleted Role |
| 124 | |
| 125 | # 15_print |
| 126 | ns list name com.test.TC_Link_1.@[user.name] |
| 127 | ** Expect 200 ** |
| 128 | |
| 129 | List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]] |
| 130 | -------------------------------------------------------------------------------- |
| 131 | com.test.TC_Link_1.@[THE_USER] |
| 132 | Administrators |
| 133 | XX@NS |
| 134 | Responsible Parties |
| 135 | @[THE_USER]@csp.att.com |
| 136 | Roles |
| 137 | com.test.TC_Link_1.@[THE_USER].admin |
| 138 | com.test.TC_Link_1.@[THE_USER].owner |
| 139 | Permissions |
| 140 | com.test.TC_Link_1.@[THE_USER].access * * |
| 141 | com.test.TC_Link_1.@[THE_USER].access * read |
| 142 | |
| 143 | ns list name com.test.TC_Link_2.@[user.name] |
| 144 | ** Expect 200 ** |
| 145 | |
| 146 | List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]] |
| 147 | -------------------------------------------------------------------------------- |
| 148 | com.test.TC_Link_2.@[THE_USER] |
| 149 | Administrators |
| 150 | XX@NS |
| 151 | Responsible Parties |
| 152 | @[THE_USER]@csp.att.com |
| 153 | Roles |
| 154 | com.test.TC_Link_2.@[THE_USER].admin |
| 155 | com.test.TC_Link_2.@[THE_USER].owner |
| 156 | Permissions |
| 157 | com.test.TC_Link_2.@[THE_USER].access * * |
| 158 | com.test.TC_Link_2.@[THE_USER].access * read |
| 159 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 160 | |
| 161 | perm list role com.test.TC_Link_1.@[user.name].myRole |
| 162 | ** Expect 200 ** |
| 163 | |
| 164 | List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole] |
| 165 | -------------------------------------------------------------------------------- |
| 166 | PERM Type Instance Action |
| 167 | -------------------------------------------------------------------------------- |
| 168 | |
| 169 | |
| 170 | role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction |
| 171 | ** Expect 200 ** |
| 172 | |
| 173 | List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction |
| 174 | -------------------------------------------------------------------------------- |
| 175 | ROLE Name |
| 176 | PERM Type Instance Action |
| 177 | -------------------------------------------------------------------------------- |
| 178 | |
| 179 | role create com.test.TC_Link_1.@[user.name].myRole |
| 180 | ** Expect 201 ** |
| 181 | Created Role |
| 182 | |
| 183 | perm grant com.test.TC_Link_2.@[user.name].myPerm myInstance myAction com.test.TC_Link_1.@[user.name].myRole |
| 184 | ** Expect 201 ** |
| 185 | Granted Permission [com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction] to Role [com.test.TC_Link_1.@[THE_USER].myRole] |
| 186 | |
| 187 | # 15_print |
| 188 | ns list name com.test.TC_Link_1.@[user.name] |
| 189 | ** Expect 200 ** |
| 190 | |
| 191 | List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]] |
| 192 | -------------------------------------------------------------------------------- |
| 193 | com.test.TC_Link_1.@[THE_USER] |
| 194 | Administrators |
| 195 | XX@NS |
| 196 | Responsible Parties |
| 197 | @[THE_USER]@csp.att.com |
| 198 | Roles |
| 199 | com.test.TC_Link_1.@[THE_USER].admin |
| 200 | com.test.TC_Link_1.@[THE_USER].myRole |
| 201 | com.test.TC_Link_1.@[THE_USER].owner |
| 202 | Permissions |
| 203 | com.test.TC_Link_1.@[THE_USER].access * * |
| 204 | com.test.TC_Link_1.@[THE_USER].access * read |
| 205 | |
| 206 | ns list name com.test.TC_Link_2.@[user.name] |
| 207 | ** Expect 200 ** |
| 208 | |
| 209 | List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]] |
| 210 | -------------------------------------------------------------------------------- |
| 211 | com.test.TC_Link_2.@[THE_USER] |
| 212 | Administrators |
| 213 | XX@NS |
| 214 | Responsible Parties |
| 215 | @[THE_USER]@csp.att.com |
| 216 | Roles |
| 217 | com.test.TC_Link_2.@[THE_USER].admin |
| 218 | com.test.TC_Link_2.@[THE_USER].owner |
| 219 | Permissions |
| 220 | com.test.TC_Link_2.@[THE_USER].access * * |
| 221 | com.test.TC_Link_2.@[THE_USER].access * read |
| 222 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 223 | |
| 224 | perm list role com.test.TC_Link_1.@[user.name].myRole |
| 225 | ** Expect 200 ** |
| 226 | |
| 227 | List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole] |
| 228 | -------------------------------------------------------------------------------- |
| 229 | PERM Type Instance Action |
| 230 | -------------------------------------------------------------------------------- |
| 231 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 232 | |
| 233 | |
| 234 | role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction |
| 235 | ** Expect 200 ** |
| 236 | |
| 237 | List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction |
| 238 | -------------------------------------------------------------------------------- |
| 239 | ROLE Name |
| 240 | PERM Type Instance Action |
| 241 | -------------------------------------------------------------------------------- |
| 242 | com.test.TC_Link_1.@[THE_USER].myRole |
| 243 | com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction |
| 244 | |
| 245 | as XX@NS |
| 246 | force ns delete com.test.TC_Link_2.@[user.name] |
| 247 | ** Expect 200,404 ** |
| 248 | Deleted Namespace |
| 249 | |
| 250 | force ns delete com.test.TC_Link_1.@[user.name] |
| 251 | ** Expect 200,404 ** |
| 252 | Deleted Namespace |
| 253 | |