summaryrefslogtreecommitdiffstats
path: root/integrations/api_repo_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Return 409 when creating repo if it already exists. (#6330)Bogdan Petrea2019-03-151-0/+71
|
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix units permission problems * fix some bugs and merge LoadUnits to repoAssignment * refactor permission struct and add some copyright heads * remove unused codes * fix routes units check * improve permission check * add unit tests for permission * fix typo * fix tests * fix some routes * fix api permission check * improve permission check * fix some permission check * fix tests * fix tests * improve some permission check * fix some permission check * refactor AccessLevel * fix bug * fix tests * fix tests * fix tests * fix AccessLevel * rename CanAccess * fix tests * fix comment * fix bug * add missing unit for test repos * fix bug * rename some functions * fix routes check
* API: '/orgs/:org/repos': return private repos with read access (#5310) ↵Daniel Balko2018-11-231-12/+37
| | | | | (#3829) (#5383) Signed-off-by: Daniel Balko <inxonic+github@gmail.com>
* feat(repo): support search repository by topic name (#4505)Bo-Yi Wu2018-09-131-3/+3
| | | | * feat(repo): support search repository by topic name
* Enforce token on api routes [fixed critical security issue #4357] (#4840)B-OnTheGo2018-09-101-11/+14
|
* Fix redirect with non-ascii branch names (#4764) (#4810)SagePtr2018-09-061-3/+3
| | | | | | | | * Fix redirect with non-ascii branch names (#4764) * Add integration tests for non-ascii branch redirect * Fix mysql test and coverage test
* Allow administrator to create repository for any organization (#4368)Lauris BH2018-07-051-0/+23
|
* Check that repositories can only be migrated to own user or organizations ↵Lauris BH2018-07-051-0/+27
| | | | | | | | | | (#4366) * Repositories can only migrated to own user or organizations * Add check for organization that user does not belong to * Allow admin to migrate repositories for other users
* hide issues from org private repos w/o team assignment (#4034)David Schneiderbauer2018-06-211-3/+3
|
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-271-6/+51
| | | | | | | | | | | | | | | | | | | | | | | | * Add repo type option to /api/repo/search * Add tests and fix result of collaborative filter in specific condition * Fix/optimize search & tests * Improve integration tests * Fix lint errors * Fix unit tests * Change and improve internal implementation of repo search * Use NonexistentID * Make search api more general * Change mirror and fork search behaviour * Fix tests & typo in comment
* Fix repository search function (#2689)Morlinest2017-10-171-5/+10
| | | | | | | | | | | | | | | | * Fix and remove FIXME * Respect membership visibility * Fix/rewrite searchRepositoryByName function * Add unit tests * Add integration tests * Remove Searcher completely * Remove trailing space
* Add repository search unit and integration tests (#2575)Morlinest2017-10-101-1/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add more repo search tests * Fix repo search tests * Always test returned repos length * Add test with lower pagesize limit (test more pages) * Add and fix /api/repo/search integration tests * Simplify unit tests code * Simplify and unify integration tests code * Improve test coverage * Temporary fix tests due to bugs in current repo search implementation * Revert removing not nil Searcher * Add more checks to tests * Simplify privacy checks in /api/repo tests * Temporary remove privacy check from repo search tests
* Fix /api/repo/search integration tests (#2550)Morlinest2017-09-201-9/+5
|
* Check for access in /repositories/:id (#2227)Ethan Koenig2017-07-301-0/+8
| | | | | | * Check for access in /repositories/:id * Integration test
* API: support '/orgs/:org/repos' (#2047)Aaron Walker2017-07-131-0/+21
| | | * API: support '/orgs/:org/repos'
* Fix repo API bug (#2133)Ethan Koenig2017-07-121-0/+12
| | | Don't require token when not necessary
* Fix GET /users/:username/repos endpoint (#2125)Ethan Koenig2017-07-101-4/+33
|
* Less verbose integration tests (#2123)Ethan Koenig2017-07-071-6/+2
| | | * Helper functions for intergration test boilerplate
* Fix improper setup for integration tests (#2050)Ethan Koenig2017-06-251-4/+2
|
* Display URLs in integration test logs (#1924)Ethan Koenig2017-06-091-4/+2
|
* fix #1643 and improve integration test (#1645)Lunny Xiao2017-04-301-0/+9
|
* bug fixed for API to get user's repos (#1622)Lunny Xiao2017-04-291-0/+23
* bug fixed for API to get user's repos * add tests and fix another place * test user2 since user1 has no repos