Commit graph

88 commits

Author SHA1 Message Date
zeripath
2a03e96bce
Allow markdown files to read from the LFS ()
This PR makes it possible for the markdown renderer to render images and media straight from the LFS.

Fix 

Signed-off-by: Andrew Thornton [art27@cantab.net](mailto:art27@cantab.net)
2019-02-12 15:09:43 +00:00
Lunny Xiao
7fd34c0517
fix lfs version check warning log when using ssh protocol () 2018-12-19 09:17:43 +08:00
kolaente
6db7dbd333 Added test environment for mssql ()
* 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
2018-12-12 09:01:41 +08:00
B-OnTheGo
e47df0b301 Enforce token on api routes [fixed critical security issue ] () 2018-09-10 12:15:52 -04:00
techknowlogick
ab55ca7ebd
Add ability to delete a token ()
Fix 
2018-07-06 21:54:30 -04:00
Lauris BH
be1330ec89 Remove hardcoded paths to fix randomly failing tests ()
* Remove hardcoded paths to fix randomly failing tests

* Use correct function for merge path
2018-01-11 00:46:59 +01:00
Ethan Koenig
befa7445d2 Unit tests for routers/repo/issue_label () 2017-12-15 23:11:02 +02:00
Ethan Koenig
682ac11958 Log unexpected responses in integration tests ()
* Log flash error message in integration tests

* Also log short, non-HTML responses
2017-12-11 10:15:27 +08:00
Ethan Koenig
d1efe2078a Fix integration tests () 2017-12-11 08:52:05 +08:00
Ethan Koenig
e59adcde65 Use httptest in integration tests () 2017-12-04 00:46:01 +02:00
Lunny Xiao
f70758dec9 Add git clone test on integration test () 2017-11-02 18:51:03 +01:00
Ethan Koenig
1b6a962e70 Include HTTP method in test error message () 2017-11-01 00:54:24 -05:00
Ethan Koenig
5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
2017-10-27 09:10:54 +03:00
Ethan Koenig
6c6533fb31 Make integration tests more user-friendly () 2017-09-18 16:35:42 +08:00
Ethan Koenig
b0f7457d9e Improve issue search ()
* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean
2017-09-16 23:16:21 +03:00
Lunny Xiao
1739e84ac0 improve protected branch to add whitelist support ()
* 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
2017-09-14 16:16:22 +08:00
Antoine GIRARD
69dfe43ffc Fix some tests : make coverage -> test ()
* Fix test : make coverage -> test

* Refactor integration tests to be able to run them in parallel

* Add custom local repository temp path
2017-09-12 13:51:12 +08:00
Ethan Koenig
d23b36c598 Error message for integration test () 2017-08-28 21:36:02 +08:00
David Schneiderbauer
8aadf79f80 Add integration tests for signin ()
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-08-23 10:30:33 +03:00
Ethan Koenig
89cd4dd424 Cache session cookies in tests () 2017-07-09 10:07:29 +08:00
Ethan Koenig
f1adaef458 Less verbose integration tests ()
* Helper functions for intergration test boilerplate
2017-07-07 21:36:47 +02:00
Ethan Koenig
f64c232953 Improve integration test helper functions ()
Set request headers in helper functions, and new helper for requests with string-formatted URLs
2017-06-25 08:15:42 +08:00
Ethan Koenig
3ffedeab03 Fix bug in issue labels API () 2017-06-25 07:52:51 +08:00
Ethan Koenig
255adc40ae Don't show non-comments in comments API () 2017-06-18 17:06:17 +08:00
Bo-Yi Wu
90f9bb12c6 fix golint error and rename func for suggestion. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-17 11:29:59 -05:00
Antoine GIRARD
6233e88f7f Use testing benchmark interface () 2017-06-17 23:01:03 +08:00
Ethan Koenig
ce9b86082c Consolidate boilerplate in integration tests () 2017-06-17 12:49:45 +08:00
Kim "BKC" Carlbäcker
889409ba31 Fix setting.AppPath for integration tests ()
Fix setting.AppPath for integration tests
2017-06-13 04:20:32 +02:00
Ethan Koenig
23d0735f90 Absolute path for setting.CustomConf 2017-06-09 22:27:13 -04:00
Ethan Koenig
61716bd8f7 Display URLs in integration test logs () 2017-06-09 19:41:36 -05:00
Ethan Koenig
e9b1b908ee Fix setting.AppPath for integration tests 2017-06-09 15:42:48 -04:00
Ethan Koenig
251fb935ff Don't recreate database in integration tests () 2017-05-11 23:32:43 +08:00
Lunny Xiao
d98a86d2a2 remove sqlite tag when integration test with mysql/postgres AND recreate database when init integration test () 2017-05-09 15:42:55 +02:00
Lunny Xiao
2bb8b3a562 fix bug when push a branch name with / & fix an integration test bug () 2017-05-08 10:55:27 +08:00
Lauris BH
0144817971 Do not allow commiting to protected branch from online editor ()
* 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
2017-05-02 08:49:55 +08:00
Ethan Koenig
66c803fae2 MySQL, Postgres integration tests in drone ()
* MySQL, Postgres integration tests in drone

* Fix .drone.yml

* sign drone

* resign drone
2017-04-30 14:30:12 +08:00
Lunny Xiao
fca7ddc6ea improve integration test to resue models/fixtures and store git repos with tests ()
* 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
2017-04-28 21:23:28 +08:00
Ethan Koenig
c58708d3ee Integration test framework ()
* Integration test framework

* udpate drone sign

* Formatting fixes and move router.go to routers/

* update sign for drone
2017-04-25 15:24:51 +08:00