summaryrefslogtreecommitdiffstats
path: root/integrations
Commit message (Collapse)AuthorAgeFilesLines
* Unit tests for routers/repo/issue_label (#3198)Ethan Koenig2017-12-159-17/+24
|
* Make test more robust (#3167)Ethan Koenig2017-12-121-1/+1
|
* Log unexpected responses in integration tests (#3138)Ethan Koenig2017-12-111-2/+28
| | | | | | * Log flash error message in integration tests * Also log short, non-HTML responses
* Fix integration tests (#3141)Ethan Koenig2017-12-111-0/+1
|
* Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)Antoine GIRARD2017-12-0810-23/+148
| | | | | | | | | | | | | | | | | | | | | | | | * Add failing test * Fix urls * Improve url in tests * improve testing * Remove debug code * Add deps * LFS corner-case : Search on lower but store with case * Temporary comment of blocking action * fix hooks * Use temporary repo for git client test * Use userPassword in place of hard-coded password
* Fix legacy URL redirects (#3100)Ethan Koenig2017-12-071-2/+4
|
* Delete a user's public key via admin api (closes #3014) (#3059)Vlad Temian2017-12-061-0/+73
| | | | | | | | | | | | | | | | * Delete a user's public key via admin api * Test admin ssh endpoint for creating a new ssh key * Adapt public ssh key test to also test the delete operation * Test that deleting a missing key will result in a 404 * Test that a normal user can't delete another user's ssh key * Make DeletePublicKey return err * Update swagger doc
* Use httptest in integration tests (#3080)Ethan Koenig2017-12-0412-100/+77
|
* Fix git lfs path (#3016)Antoine GIRARD2017-11-291-13/+10
| | | | | | | | * add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
* Git LFS lock api (#2938)Antoine GIRARD2017-11-284-16/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement routes * move to api/sdk and create model * Implement add + list * List return 200 empty list no 404 * Add verify lfs lock api * Add delete and start implementing auth control * Revert to code.gitea.io/sdk/gitea vendor * Apply needed check for all lfs locks route * Add simple tests * fix lint * Improve tests * Add delete test + fix * Add lfs ascii header * Various fixes from review + remove useless code + add more corner case testing * Remove repo link since only id is needed. Save a little of memory and cpu time. * Improve tests * Use TEXT column format for path + test * fix mispell * Use NewRequestWithJSON for POST tests * Clean path * Improve DB format * Revert uniquess repoid+path * (Re)-setup uniqueness + max path length * Fixed TEXT in place of VARCHAR * Settle back to maximum VARCHAR(3072) * Let place for repoid in key * Let place for repoid in key * Let place for repoid in key * Revert back
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-2817-0/+509
| | | | | | * Update macaron * Various wiki bug fixes
* Fix comment API paths (#2813)Ethan Koenig2017-11-201-4/+4
|
* Add integration test for user deleting account (#2891)Ethan Koenig2017-11-121-2/+45
|
* Add integration test for logging out (#2892)Ethan Koenig2017-11-111-0/+26
|
* Fix API raw file content access for default branch (#2849)Lauris BH2017-11-041-0/+3
|
* Fix API raw requests for commits and tags (#2841)Lauris BH2017-11-041-0/+28
|
* Issue content should not be updated when closing with comment (#2833)Lauris BH2017-11-032-7/+60
|
* Use different directories for session files in integration tests (#2834)Lauris BH2017-11-032-0/+2
|
* Fix redirect url of legacy commits route (#2825)Morlinest2017-11-031-1/+3
|
* Add git clone test on integration test (#1682)Lunny Xiao2017-11-022-2/+65
|
* Include HTTP method in test error message (#2815)Ethan Koenig2017-11-011-1/+1
|
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-304-58/+74
| | | | | | | | | | * Make URL scheme unambiguous Redirect old routes to new routes * Fix redirects to new URL scheme, and update template * Fix branches/_new endpoints, and update integration test
* Code/repo search (#2582)Ethan Koenig2017-10-275-0/+45
| | | Indexed search of repository contents (for default branch only)
* 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
* Add branch overiew page (#2108)Bwko2017-10-261-0/+79
| | | | | | | | * Add branch overiew page * fix changed method name on sub menu * remove unused code
* Move swagger-ui under /api/v1 (#2746)Antoine GIRARD2017-10-211-2/+4
| | | | | | | | | | | | * Move swagger interface under /api/v1 * Update swagger-ui * Add /api/swagger and prepare for multiple api version * Update test links * Fix footer link
* 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
* Merge password and 2fa page on user settings (#2695)Lunny Xiao2017-10-161-2/+2
| | | * merge password and 2fa page on user settings
* Integration test for activity page (#2704)Lauris BH2017-10-164-12/+68
| | | | | | | | * Integration test for activity page * Small code refactoring for acitvity page * Move activity stats calculation logic to model
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-151-0/+132
| | | | | | | | | | * Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-153-10/+31
| | | | | | | | | | (#2699) * Fix so that user can still fork his own repository to his organizations * Fix to only use owned organizations * Add integration test for forking own repository to owned organization
* Update hard-coded version to 1.3.0-dev (#2390)Sandro Santilli2017-10-121-1/+1
| | | | | | * Use -dev (1.3.0-dev is less than 1.3.0, according to semver) * Use fake version for testing purpose
* 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
* Complete push webhooks (#2530)David Schneiderbauer2017-09-211-0/+1
| | | | | | | | | | | | | | | | | * implemented missing 'delete' push webhooks moreover created ActionDeleteBranch and ActionDeleteTag * add CommitRepoAction tests for tag/branch creation/deletion * fixed error where push webhook not called if is new branch or tag removed unnecessary code * moved prepare unit test environment into separate method to be used across unit tests * add missing if clause in pushUpdate Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix /api/repo/search integration tests (#2550)Morlinest2017-09-201-9/+5
|
* Make integration tests more user-friendly (#2536)Ethan Koenig2017-09-181-1/+5
|
* Improve issue search (#2387)Ethan Koenig2017-09-165-6/+55
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-143-8/+21
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Allow changing integration test database connection using env variables (#2484)Lauris BH2017-09-132-8/+8
|
* Add missing fixture to clean gpg_key table (#2494)Lauris BH2017-09-121-0/+4
| | | | | | * Add missing fixture to clean gpg_key table * Fix possible too fast request execution in timetracker start/stop test
* Feature: Timetracking (#2211)Jonas Franz2017-09-122-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix some tests : make coverage -> test (#2492)Antoine GIRARD2017-09-12106-11/+20
| | | | | | | | * Fix test : make coverage -> test * Refactor integration tests to be able to run them in parallel * Add custom local repository temp path
* Hotfix for integration testing (#2473)Thomas Boerger2017-09-103-7/+2
| | | | | | * Hotfix for integration testing * Comment sqlite tests because of database locking issues
* Only check at least one email gpg key (#2266)Antoine GIRARD2017-09-0530-0/+799
| | | | | | | | | | | | | | | | | | | | | | * Only require one email (possibly not yet validated) * Update message error and check validation of commit * Add integrations tests * Complete integration for import * Add pre-check/optimization * Add some test (not finished) * Finish * Fix fixtures * Fix typo * Don't guess key ID
* Error message for integration test (#2410)Ethan Koenig2017-08-281-1/+2
|
* Fix tests code to prevent some runtime errors (#2381)Morlinest2017-08-281-2/+3
| | | | | | * Fix tests code to prevent some runtime errors * Reduce nesting
* Fix integration test after librejs location change (#2374)Sandro Santilli2017-08-241-1/+1
| | | Fixes #2373
* Add more test for login links and fix a bug on action retrieve (#2361)Lunny Xiao2017-08-231-0/+97
| | | | * add more test for login links and fix a bug on action retrieve
* Add integration tests for signin (#2363)David Schneiderbauer2017-08-232-4/+71
| | | Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Add INTERNAL_TOKEN to integration .ini file (#2346)Sandro Santilli2017-08-211-0/+1
| | | | | | | Avoids override of source file upon running `make test-pgsql` Long story: settings.NewContext *adds* an INTERNAL_TOKEN if none is found; the other ini files under integration/ all have an INTERNAL_TOKEN