aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/integration_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Template Repositories (#8768)John Olheiser2019-11-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Improve integration tests (#8276)Lunny Xiao2019-09-251-3/+3
| | | | | | | | * improve integration tests * fix Makefile * improve makefile and integration docs
* Move database settings from models to setting (#7806)Lunny Xiao2019-08-241-13/+13
| | | | | | | | | | | | | | | | | | * move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
* Use gitea forked macaron (#7933)Tamal Saha2019-08-231-2/+2
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* integration tests: Use t.Helper() (#7654)Antoine GIRARD2019-07-291-0/+17
|
* Add golangci (#6418)kolaente2019-06-121-6/+5
|
* Add work path CLI option (#6922)zeripath2019-05-141-1/+1
| | | | | Makes it possible to set the work path as a CLI option instead of relying on environment variables which are somewhat opaque
* Remove local clones & make hooks run on merge/edit/upload (#6672)zeripath2019-05-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add options to git.Clone to make it more capable * Begin the process of removing the local copy and tidy up * Remove Wiki LocalCopy Checkouts * Remove the last LocalRepo helpers * Remove WithTemporaryFile * Enable push-hooks for these routes * Ensure tests cope with hooks Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Repository.LocalCopyPath() * Move temporary repo to use the standard temporary path * Fix the tests Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove LocalWikiPath * Fix missing remove Signed-off-by: Andrew Thornton <art27@cantab.net> * Use AppURL for Oauth user link (#6894) * Use AppURL for Oauth user link Fix #6843 * Update oauth.go * Update oauth.go * internal/ssh: ignore env command totally (#6825) * ssh: ignore env command totally * Remove commented code Needed fix described in issue #6889 * Escape the commit message on issues update and title in telegram hook (#6901) * update sdk to latest (#6903) * improve description of branch protection (fix #6886) (#6906) The branch protection description text were not quite accurate. * Fix logging documentation (#6904) * ENABLE_MACARON_REDIRECT should be REDIRECT_MACARON_LOG * Allow DISABLE_ROUTER_LOG to be set in the [log] section * [skip ci] Updated translations via Crowdin * Move sdk structs to modules/structs (#6905) * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)zeripath2019-04-291-0/+1
|
* Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)Richard Mahn2019-04-171-1/+2
|
* Fix race in integration testlogger (#6556)zeripath2019-04-111-0/+2
| | | | | | * Fix race in logger * At testing end drop the reference to the last test.
* Quieter Integration Tests (#6513)zeripath2019-04-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | * Rename BaseLogger to WriterLogger to help the creation of other providers * Don't export ColorBytes and ResetBytes from ColoredValues * Make integration tests only print logs if they fail * check can color before coloring * I always forget about MSSQL * Oh and use LEVEL in sqlite.ini * Make the test logger log at info - as it means you see the router * Remove empty expected changes * Make the migrations quieter too * Don't display SQL on error - it can be looked at in the file logs if necessary * Fix skip when using onGiteaRun
* Allow markdown files to read from the LFS (#5787)zeripath2019-02-121-0/+45
| | | | | | | This PR makes it possible for the markdown renderer to render images and media straight from the LFS. Fix #5746 Signed-off-by: Andrew Thornton [art27@cantab.net](mailto:art27@cantab.net)
* fix lfs version check warning log when using ssh protocol (#5501)Lunny Xiao2018-12-191-0/+1
|
* Added test environment for mssql (#4282)kolaente2018-12-121-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added test environment for m$sql * Added template for test environment for m$sql * Fix password * Fix password (again) * Fix password (again again) * Fix db * Ci trigger (Looking at you drone....) * Ci trigger (Looking at you drone....) * Ci trigger (Looking at you drone....) * Ci trigger (Looking at you drone....) * Create master database for mssql integration tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Create database only if master do not exist Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix mssql integration tests by using custom database "gitea" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved defer * bump xorm * updated xorm * Fixed build
* Enforce token on api routes [fixed critical security issue #4357] (#4840)B-OnTheGo2018-09-101-0/+16
|
* Add ability to delete a token (#4235)techknowlogick2018-07-061-0/+5
| | | Fix #4234
* Remove hardcoded paths to fix randomly failing tests (#3347)Lauris BH2018-01-111-0/+1
| | | | | | * Remove hardcoded paths to fix randomly failing tests * Use correct function for merge path
* Unit tests for routers/repo/issue_label (#3198)Ethan Koenig2017-12-151-6/+0
|
* 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
|
* Use httptest in integration tests (#3080)Ethan Koenig2017-12-041-44/+13
|
* Add git clone test on integration test (#1682)Lunny Xiao2017-11-021-2/+5
|
* Include HTTP method in test error message (#2815)Ethan Koenig2017-11-011-1/+1
|
* Code/repo search (#2582)Ethan Koenig2017-10-271-0/+4
| | | Indexed search of repository contents (for default branch only)
* Make integration tests more user-friendly (#2536)Ethan Koenig2017-09-181-1/+5
|
* Improve issue search (#2387)Ethan Koenig2017-09-161-1/+8
| | | | | | | | | | * 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-141-1/+1
| | | | | | | | | | | | | | | | | | | | * 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
* Fix some tests : make coverage -> test (#2492)Antoine GIRARD2017-09-121-2/+2
| | | | | | | | * Fix test : make coverage -> test * Refactor integration tests to be able to run them in parallel * Add custom local repository temp path
* Error message for integration test (#2410)Ethan Koenig2017-08-281-1/+2
|
* Add integration tests for signin (#2363)David Schneiderbauer2017-08-231-4/+11
| | | Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Cache session cookies in tests (#2128)Ethan Koenig2017-07-091-1/+8
|
* Less verbose integration tests (#2123)Ethan Koenig2017-07-071-7/+23
| | | * Helper functions for intergration test boilerplate
* Improve integration test helper functions (#2049)Ethan Koenig2017-06-251-2/+7
| | | Set request headers in helper functions, and new helper for requests with string-formatted URLs
* Fix bug in issue labels API (#2048)Ethan Koenig2017-06-251-1/+3
|
* Don't show non-comments in comments API (#2001)Ethan Koenig2017-06-181-0/+5
|
* fix golint error and rename func for suggestion. (#1997)Bo-Yi Wu2017-06-171-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Use testing benchmark interface (#1993)Antoine GIRARD2017-06-171-8/+8
|
* Consolidate boilerplate in integration tests (#1979)Ethan Koenig2017-06-171-16/+33
|
* Fix setting.AppPath for integration tests (#1923)Kim "BKC" Carlbäcker2017-06-131-4/+13
|\ | | | | Fix setting.AppPath for integration tests
| * Absolute path for setting.CustomConfEthan Koenig2017-06-091-5/+11
| |
| * Fix setting.AppPath for integration testsEthan Koenig2017-06-091-1/+4
| |
* | Display URLs in integration test logs (#1924)Ethan Koenig2017-06-091-4/+13
|/
* Don't recreate database in integration tests (#1697)Ethan Koenig2017-05-111-6/+1
|
* remove sqlite tag when integration test with mysql/postgres AND recreate ↵Lunny Xiao2017-05-091-3/+9
| | | | database when init integration test (#1693)
* fix bug when push a branch name with / & fix an integration test bug (#1689)Lunny Xiao2017-05-081-5/+6
|
* Do not allow commiting to protected branch from online editor (#1502)Lauris BH2017-05-021-2/+81
| | | | | | * Do not allow commiting to protected branch from online editor * Add editor integration tests for adding new file and not allowing to add new file to protected branch
* MySQL, Postgres integration tests in drone (#1638)Ethan Koenig2017-04-301-7/+45
| | | | | | | | | | * MySQL, Postgres integration tests in drone * Fix .drone.yml * sign drone * resign drone
* improve integration test to resue models/fixtures and store git repos with ↵Lunny Xiao2017-04-281-1/+9
| | | | | | | | | | tests (#1627) * improve integration test to resue models/fixtures and store git repos with source * use gitea-integration-meta dir instead .tar.gz and cleanup every before every test * fix import package name
* Integration test framework (#1290)Ethan Koenig2017-04-251-0/+92
* Integration test framework * udpate drone sign * Formatting fixes and move router.go to routers/ * update sign for drone