Commit Graph

13 Commits (ae9cc8f972912678e59d840c38d31b2b4663b690)

Author SHA1 Message Date
Ethan Koenig e59adcde65 Use httptest in integration tests ()
Ethan Koenig 513375c429 Make URL scheme unambiguous ()
* 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
Lauris BH c7f4f07765 Integration test for activity page ()
* Integration test for activity page

* Small code refactoring for acitvity page

* Move activity stats calculation logic to model
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
Ethan Koenig f1adaef458 Less verbose integration tests ()
* Helper functions for intergration test boilerplate
Ethan Koenig f64c232953 Improve integration test helper functions ()
Set request headers in helper functions, and new helper for requests with string-formatted URLs
Lauris BH 0a5dc640a1 Make branch deletion URL more like GitHub's, fixes ()
* Make branch deletion URL more like GitHub's, fixes 

* Add PR branch deletion integration test

* Do not allow deleting protected branch

* Change http error code to 403 if user has no write rights to repository

* Add check to not panic if forked repository has alrady been deleted
Bo-Yi Wu 90f9bb12c6 fix golint error and rename func for suggestion. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Ethan Koenig ce9b86082c Consolidate boilerplate in integration tests ()
Mura Li 01322af2e8 Add integration test for pull-request merge ()
Ethan Koenig 61716bd8f7 Display URLs in integration test logs ()
Mura Li 662b8bc2a2 Add integration test for file editing ()
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