File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,25 @@ func TestUsers(t *testing.T) {
2626 },
2727 Expected : user ,
2828 Action : func (c * Client , t * testing.T ) (any , error ) {
29- r := & resource.UserCreate {
30- GUID : "3ebeaa8b-fd55-4724-a764-9f2231d8f7db" ,
31- }
29+ r := resource .NewUserCreateWithGUID ("3ebeaa8b-fd55-4724-a764-9f2231d8f7db" )
3230 return c .Users .Create (context .Background (), r )
3331 },
3432 },
33+ {
34+ Description : "Create UAA shadow user" ,
35+ Route : testutil.MockRoute {
36+ Method : "POST" ,
37+ Endpoint : "/v3/users" ,
38+ Output : g .Single (user ),
39+ Status : http .StatusCreated ,
40+ PostForm : `{ "username": "sneal", "origin": "ldap" }` ,
41+ },
42+ Expected : user ,
43+ Action : func (c * Client , t * testing.T ) (any , error ) {
44+ r := resource .NewUserCreateWithUsername ("sneal" , "ldap" )
45+ return c .Users .CreateWithUsername (context .Background (), r )
46+ },
47+ },
3548 {
3649 Description : "Delete user" ,
3750 Route : testutil.MockRoute {
You can’t perform that action at this time.
0 commit comments