aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/api_user_orgs_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Decouple unit test, remove intermediate `unittestbridge` package (#17662)wxiaoguang2021-11-161-3/+3
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Move db related basic functions to models/db (#17075)Lunny Xiao2021-09-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * Move db related basic functions to models/db * Fix lint * Fix lint * Fix test * Fix lint * Fix lint * revert unnecessary change * Fix test * Fix wrong replace string * Use *Context * Correct committer spelling and fix wrong replaced words Co-authored-by: zeripath <art27@cantab.net>
* Extend TestUserOrgs to cover permission cases (#14495)65432021-01-281-11/+38
| | | | | * TestMyOrgs: add unauthorized test * Extend TestUserOrgs, to cover permission cases
* Fix "data race" in testlogger (#9159)zeripath2019-11-261-2/+2
| | | | | | * Fix data race in testlogger * Update git_helper_for_declarative_test.go
* Fixes #7023 - API Org Visibility (#7028)Richard Mahn2019-05-301-0/+2
|
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-1/+1
| | | | | | | | | | | | * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Ensure valid git author names passed in signatures (#5774)zeripath2019-01-241-6/+11
| | | | | | | | | | | | | | | | | | | | * Ensure valid git author names passed in signatures Fix #5772 - Git author names are not allowed to include `\n` `<` or `>` and must not be empty. Ensure that the name passed in a signature is valid. * Account for pathologically named external users LDAP and the like usernames are not checked in the same way that users who signup are. Therefore just ensure that user names are also git safe and if totally pathological - Set them to "user-$UID" * Add Tests and adjust test users Make our testcases a little more pathological so that we be sure that integration tests have a chance to spot these cases. Signed-off-by: Andrew Thornton <art27@cantab.net>
* add tests for api user orgs (#5494)Lunny Xiao2018-12-091-0/+63
* add tests for api user orgs * add permission for admin to list user's orgs even he is a private user of org