sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame^] | 1 | as testid@aaf.att.com |
| 2 | # TC_Cred1.10.0.POS List NS to prove ok |
| 3 | expect 200 |
| 4 | ns list name com.test.TC_Cred1.@[user.name] |
| 5 | |
| 6 | # TC_Cred1.10.1.POS Create Personalized Namespace to add Credentials |
| 7 | expect 201 |
| 8 | ns create com.test.TC_Cred1.@[user.name] @[user.name] testid@aaf.att.com |
| 9 | |
| 10 | # TC_Cred1.10.10.POS Create role to assign mechid perm to |
| 11 | expect 201 |
| 12 | role create com.test.TC_Cred1.@[user.name].cred_admin testid@aaf.att.com |
| 13 | role create com.test.TC_Cred1.@[user.name].pw_reset |
| 14 | |
| 15 | # TC_Cred1.10.11.POS Assign roles to perms |
| 16 | as XX@NS |
| 17 | expect 201 |
| 18 | perm create com.att.aaf.password com.test reset com.test.TC_Cred1.@[user.name].pw_reset |
| 19 | perm create com.att.aaf.mechid com.test create com.test.TC_Cred1.@[user.name].cred_admin |
| 20 | perm grant com.att.aaf.mechid com.att create com.test.TC_Cred1.@[user.name].cred_admin |
| 21 | |
| 22 | as testid@aaf.att.com |
| 23 | # TC_Cred1.10.30.POS Assign user for creating creds |
| 24 | expect 201 |
| 25 | user cred add m99999@@[user.name].TC_Cred1.test.com password123 |
| 26 | set m99999@@[user.name].TC_Cred1.test.com=password123 |
| 27 | |
| 28 | |
| 29 | # TC_Cred1.10.31.POS Credential used to similate non-admin Tier1 user with reset and create permissions |
| 30 | expect 201 |
| 31 | user role add m99999@@[user.name].TC_Cred1.test.com com.test.TC_Cred1.@[user.name].pw_reset,com.test.TC_Cred1.@[user.name].cred_admin |
| 32 | |
| 33 | # TC_Cred1.10.32.POS Remove create rights for testing |
| 34 | expect 200 |
| 35 | user role del testid@aaf.att.com com.test.TC_Cred1.@[user.name].cred_admin |
| 36 | |