Commit Graph

15 Commits (d7211c5b5d90a3e6bc9c1550e2c0bf7d0d9ad66f)

Author SHA1 Message Date
techknowlogick d0ec940dd7
switch to use gliderlabs/ssh for builtin server ()
resolves git conflicts from  (credit to @belak, in case github doesn't keep original author during squash)

Co-Authored-By: Matti Ranta <techknowlogick@gitea.io>
zeripath 5422f23ed8 Quieter Integration Tests ()
* 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
zeripath 3d91bb2f2d Make log mailer for testing ()
* Create log mailer for testing email settings

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Switch on the log mailer for the integration tests

This ensures that the sending mail process works

Signed-off-by: Andrew Thornton <art27@cantab.net>

* rename the from user for mysql/mssql

* rename log sender to dummy sender

* update the integration tests
zeripath 7d434376f1 Pooled and buffered gzip implementation ()
* Pooled and buffered gzip implementation

* Add test for gzip

* Add integration test

* Ensure lfs check within transaction

The previous code made it possible for a race condition to occur whereby a LFSMetaObject could be checked into the database twice. We should check if the LFSMetaObject is within the database and insert it if not in one transaction.

* Try to avoid primary key problem in postgres

The integration tests are being affected by
https://github.com/go-testfixtures/testfixtures/issues/39 if we set the
primary key high enough, keep a count of this and remove at the end of
each test we shouldn't be affected by this.
Antoine GIRARD 095fb9f2e3 Add integrations tests from git cli ()
* test: integration add git cli tests

Extracted form for easing review process and debug 

* test: integration add git cli big file commit

* fix:  Don't rewrite key if internal server
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
Antoine GIRARD d99f4ab003 Git LFS lock api ()
* 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
Ethan Koenig 5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
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
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
Thomas Boerger fd85e25f5f Hotfix for integration testing ()
* Hotfix for integration testing

* Comment sqlite tests because of database locking issues
Ethan Koenig d1e4af66c1 Set console to debug for integration tests
Lunny Xiao 31b5e9177f fix collborators lack of units on orgnization repositories ()
* fix collborators lack of units on orgnization repositories

* also change log level to debug
Lauris BH 51d0becb42 Add configuration option for default permission to create Organizations ()
Ethan Koenig c58708d3ee Integration test framework ()
* Integration test framework

* udpate drone sign

* Formatting fixes and move router.go to routers/

* update sign for drone