kolaente
00d5a521c2
Added test environment for mssql ( #4282 )
* 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
6 years ago
B-OnTheGo
e827cc6ca9
Enforce token on api routes [fixed critical security issue #4357 ] ( #4840 )
6 years ago
techknowlogick
a5a30a1cd3
Add ability to delete a token ( #4235 )
Fix #4234
7 years ago
Lauris BH
7e6c1c22ee
Remove hardcoded paths to fix randomly failing tests ( #3347 )
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
7 years ago
Ethan Koenig
c5e12c5b2e
Unit tests for routers/repo/issue_label ( #3198 )
7 years ago
Ethan Koenig
9022d27d39
Log unexpected responses in integration tests ( #3138 )
* Log flash error message in integration tests
* Also log short, non-HTML responses
7 years ago
Ethan Koenig
366284dac1
Fix integration tests ( #3141 )
7 years ago
Ethan Koenig
61265d6037
Use httptest in integration tests ( #3080 )
7 years ago
Lunny Xiao
67366557ab
Add git clone test on integration test ( #1682 )
7 years ago
Ethan Koenig
984f724b0f
Include HTTP method in test error message ( #2815 )
7 years ago
Ethan Koenig
7aee62e1bc
Code/repo search ( #2582 )
Indexed search of repository contents (for default branch only)
7 years ago
Ethan Koenig
c55fd363a9
Make integration tests more user-friendly ( #2536 )
7 years ago
Ethan Koenig
734935d94f
Improve issue search ( #2387 )
* Improve issue indexer
* Fix new issue sqlite bug
* Different test indexer paths for each db
* Add integration indexer paths to make clean
7 years ago
Lunny Xiao
1c80057b53
improve protected branch to add whitelist support ( #2451 )
* 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
7 years ago
Antoine GIRARD
ee3e0725b0
Fix some tests : make coverage -> test ( #2492 )
* Fix test : make coverage -> test
* Refactor integration tests to be able to run them in parallel
* Add custom local repository temp path
7 years ago
Ethan Koenig
648c51aa66
Error message for integration test ( #2410 )
7 years ago
David Schneiderbauer
55a96e05e9
Add integration tests for signin ( #2363 )
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years ago
Ethan Koenig
fa89bacb86
Cache session cookies in tests ( #2128 )
8 years ago
Ethan Koenig
1c10f454eb
Less verbose integration tests ( #2123 )
* Helper functions for intergration test boilerplate
8 years ago
Ethan Koenig
2775b8b420
Improve integration test helper functions ( #2049 )
Set request headers in helper functions, and new helper for requests with string-formatted URLs
8 years ago
Ethan Koenig
e76aa62582
Fix bug in issue labels API ( #2048 )
8 years ago
Ethan Koenig
5518912d1d
Don't show non-comments in comments API ( #2001 )
8 years ago
Bo-Yi Wu
54949c9b66
fix golint error and rename func for suggestion. ( #1997 )
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Antoine GIRARD
f89d617a8f
Use testing benchmark interface ( #1993 )
8 years ago
Ethan Koenig
036475727f
Consolidate boilerplate in integration tests ( #1979 )
8 years ago
Kim "BKC" Carlbäcker
50000208d3
Fix setting.AppPath for integration tests ( #1923 )
Fix setting.AppPath for integration tests
8 years ago
Ethan Koenig
4630efd029
Absolute path for setting.CustomConf
8 years ago
Ethan Koenig
e4e3367ae7
Display URLs in integration test logs ( #1924 )
8 years ago
Ethan Koenig
26cfcbd7cb
Fix setting.AppPath for integration tests
8 years ago
Ethan Koenig
566f8769ac
Don't recreate database in integration tests ( #1697 )
8 years ago
Lunny Xiao
9a854ef7b1
remove sqlite tag when integration test with mysql/postgres AND recreate database when init integration test ( #1693 )
8 years ago
Lunny Xiao
325386b558
fix bug when push a branch name with / & fix an integration test bug ( #1689 )
8 years ago
Lauris BH
f814963397
Do not allow commiting to protected branch from online editor ( #1502 )
* 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
8 years ago
Ethan Koenig
0f7ec16367
MySQL, Postgres integration tests in drone ( #1638 )
* MySQL, Postgres integration tests in drone
* Fix .drone.yml
* sign drone
* resign drone
8 years ago
Lunny Xiao
705c9b21ac
improve integration test to resue models/fixtures and store git repos with 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
8 years ago
Ethan Koenig
b94a7b190c
Integration test framework ( #1290 )
* Integration test framework
* udpate drone sign
* Formatting fixes and move router.go to routers/
* update sign for drone
8 years ago