summaryrefslogtreecommitdiffstats
path: root/integrations/api_team_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix "data race" in testlogger (#9159)zeripath2019-11-261-2/+2
| | | | | | * Fix data race in testlogger * Update git_helper_for_declarative_test.go
* Move code.gitea.io/gitea/routers/api/v1/convert to ↵Lunny Xiao2019-11-101-1/+1
| | | | | | | | code.gitea.io/gitea/modules/convert (#8892) * Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert * fix fmt
* Add team option to grant rights for all organization repositories (#8688)David Svantesson2019-11-061-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add field IsAllRepositories to team * Add AllRepositories to team UI * Manage team with access to all repositories * Add field IsAllRepositories to team API * put backticks around table/column names * rename IsAllRepositories to IncludesAllRepositories * do not reload slice if already loaded * add repo to teams with access to all repositories when changing repo owner * improve tests for teams with access to all repositories * Merge branch 'master' * Change code for adding all repositories Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * fmt after merge * Change code in API EditTeam similar to EditTeamPost web interface Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Clarify that all repositories will be added Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * All repositories option under Permissions headline * New setting group 'Repository access' * Move check IncludeAllRepositories to removeRepository. * Revert "Move check IncludeAllRepositories to removeRepository." and add comment instead. This reverts commit 753b7d205be260b8be465b5291a02975a81f3093. * Clarify help text what options do.
* API endpoint for searching teams. (#8108)David Svantesson2019-10-011-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Api endpoint for searching teams. Signed-off-by: dasv <david.svantesson@qrtech.se> * Move API to /orgs/:org/teams/search Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Regenerate swagger Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix search is Get Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test for search team API. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update routers/api/v1/org/team.go grammar Co-Authored-By: Richard Mahn <richmahn@users.noreply.github.com> * Fix review comments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix some issues in repo collaboration team search, after changes in this PR. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Remove teamUser which is not used and replace with actual user id. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Remove unused search variable UserIsAdmin. * Add paging to team search. * Re-genereate swagger Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix review comments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * fix * Regenerate swagger
* Fixed ineffectual assignments in tests (#7553)Christian Muehlhaeuser2019-07-221-2/+2
| | | | Just makes it a bit more obvious which values we want to test for, and which ones we want to ignore.
* 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
* Fix team edit API panic (#6780)ngourdon2019-04-271-0/+64
|
* Fix team members API (#6714)Lunny Xiao2019-04-241-0/+13
|
* Enforce token on api routes [fixed critical security issue #4357] (#4840)B-OnTheGo2018-09-101-1/+2
|
* Less verbose integration tests (#2123)Ethan Koenig2017-07-071-2/+1
| | | * Helper functions for intergration test boilerplate
* Improve integration test helper functions (#2049)Ethan Koenig2017-06-251-3/+1
| | | Set request headers in helper functions, and new helper for requests with string-formatted URLs
* Don't show non-comments in comments API (#2001)Ethan Koenig2017-06-181-4/+1
|
* Consolidate boilerplate in integration tests (#1979)Ethan Koenig2017-06-171-1/+1
|
* Display URLs in integration test logs (#1924)Ethan Koenig2017-06-091-2/+1
|
* Fix 500 for GET /teams/:id endpoints (#1811)Ethan Koenig2017-05-261-0/+38
* Fix 500 for GET /teams/:id endpoints * Integration test for GET /team/:id * Clean up integration test