2
0
Commit Graph

59 Commits

Author SHA1 Message Date
Ethan Koenig
d79d99f170 More integration tests for comment API (#2156) 2017-07-14 01:33:26 +03:00
Aaron Walker
c523e99712 API: support '/orgs/:org/repos' (#2047)
* API: support '/orgs/:org/repos'
2017-07-13 13:14:15 +02:00
Ethan Koenig
e3cb4e1780 Fix username rendering bug (#2122)
* Fix username rendering bug

* XSS integration test

* Migration to unescape user full names
2017-07-12 17:58:52 +03:00
Ethan Koenig
853f539c16 Fix repo API bug (#2133)
Don't require token when not necessary
2017-07-12 03:23:41 +02:00
Ethan Koenig
14f4e44f32 Fix GET /users/:username/repos endpoint (#2125) 2017-07-10 14:07:39 +03:00
Ethan Koenig
d709c77f08 Cache session cookies in tests (#2128) 2017-07-09 10:07:29 +08:00
Ethan Koenig
ca7d4cd3e7 Remove unused files (#2124) 2017-07-07 21:52:30 +02:00
Ethan Koenig
db04f27c51 Less verbose integration tests (#2123)
* Helper functions for intergration test boilerplate
2017-07-07 21:36:47 +02:00
Ethan Koenig
e3a9a506ff Fix API for branches with slashes (#2096) 2017-07-02 10:03:57 +08:00
Ethan Koenig
2436bebd75 Check for valid renamed usernames (#2077)
* Check for valid renamed usernames

* Integration test

* Test for username with space

* Make name field required
2017-07-01 22:48:29 +03:00
Ethan Koenig
7a7e7eae46 Fix SQL bug in models.PullRequests 2017-07-01 14:08:43 +03:00
Lauris BH
809c42b548 Fix release display and correct paging (#2080) 2017-06-29 23:11:38 +08:00
Ethan Koenig
8db8c54801 Integration tests for issues API (#2059) 2017-06-25 22:51:07 +08:00
Ethan Koenig
2e60082066 Fix improper setup for integration tests (#2050) 2017-06-25 17:34:30 +08:00
Ethan Koenig
1c82492b5e Improve integration test helper functions (#2049)
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
c2012052ab Fix bug in issue labels API (#2048) 2017-06-25 07:52:51 +08:00
Lauris BH
42107d4552 Make branch deletion URL more like GitHub's, fixes #1397 (#1994)
* Make branch deletion URL more like GitHub's, fixes #1397

* 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
2017-06-21 09:00:03 +08:00
Mura Li
abb22f2aba Add integration test for repository migration (#1983) 2017-06-20 19:23:16 +08:00
Mura Li
63b09b91fa Add integration test for issue creating (#2002) 2017-06-18 21:25:58 +08:00
Ethan Koenig
7450686404 Don't show non-comments in comments API (#2001) 2017-06-18 17:06:17 +08:00
Ethan Koenig
4673acc91d Let not-logged-in users view releases (#1999) 2017-06-18 11:38:24 +08:00
Bo-Yi Wu
2741432d5f fix golint error and rename func for suggestion. (#1997)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-17 11:29:59 -05:00
Antoine GIRARD
e7e2dee36f Use testing benchmark interface (#1993) 2017-06-17 23:01:03 +08:00
Ethan Koenig
f8290eafa4 Consolidate boilerplate in integration tests (#1979) 2017-06-17 12:49:45 +08:00
Ethan Koenig
b8aa3b8b98 Set console to debug for integration tests 2017-06-15 08:12:30 -04:00
Mura Li
51946cd41e Add integration test for pull-request merge (#1912) 2017-06-15 19:20:39 +08:00
Shuanglei Tao
3fccd00982 Fix typo (#1974) 2017-06-15 17:38:54 +08:00
Mura Li
0ad224620a Add pull-create integration test (#1972) 2017-06-15 02:01:51 -05:00
Ethan Koenig
95c1d953e4 Fix search by issue type (#1914)
* Fix search by issue type
2017-06-15 05:09:03 +02:00
Lunny Xiao
62df5dae9c fix collborators lack of units on orgnization repositories (#1968)
* fix collborators lack of units on orgnization repositories

* also change log level to debug
2017-06-15 04:50:12 +02:00
Ethan Koenig
2334c6e041 Fix uppercase default branch bug (#1965) 2017-06-14 08:42:36 +08:00
Kim "BKC" Carlbäcker
7205b7fb1e Fix setting.AppPath for integration tests (#1923)
Fix setting.AppPath for integration tests
2017-06-13 04:20:32 +02:00
Ethan Koenig
f94e96f991 Absolute path for setting.CustomConf 2017-06-09 22:27:13 -04:00
Ethan Koenig
07f541fdf1 Display URLs in integration test logs (#1924) 2017-06-09 19:41:36 -05:00
Ethan Koenig
4254ad10cc Fix setting.AppPath for integration tests 2017-06-09 15:42:48 -04:00
Mura Li
515b45b453 Add integration test for file editing (#1907) 2017-06-08 19:15:41 +08:00
Mura Li
aaeb559b53 Add integration test for repository forking 2017-06-07 20:02:37 +08:00
Ethan Koenig
9502c36730 Display draft releases (#1854)
* Display draft releases

* Include ctx.User in user cache

* Integration test
2017-06-03 11:46:56 +08:00
Ethan Koenig
3fdf08ea68 Fix pull request compare link (#1832)
* Fix pull request compare link

* Integration test
2017-05-31 09:47:42 -05:00
Ethan Koenig
42a09a7569 Fix invalid reference in feeds template (#1820)
* Fix invalid reference in feeds template

* Comment for GetActAvatar

* Add integration test
2017-05-27 11:34:11 +08:00
Ethan Koenig
12c9de0f33 Fix 500 for GET /teams/:id endpoints (#1811)
* Fix 500 for GET /teams/:id endpoints

* Integration test for GET /team/:id

* Clean up integration test
2017-05-26 08:15:45 -05:00
Ethan Koenig
4939f10d9f Fix activity feed (#1779)
* Fix activity feed

Preserve actions after user/repo name change

* Add missing comment

* Fix migration, and remove fields completely

* Tests
2017-05-26 09:38:18 +08:00
Ethan Koenig
c641586ea8 Fix and test for delete user (#1713)
* Fix and test for delete user

* Run updates in batches

* Unit test
2017-05-20 16:48:22 +08:00
Ethan Koenig
3b67f4943d Don't recreate database in integration tests (#1697) 2017-05-11 23:32:43 +08:00
Lunny Xiao
a1162dffb6 remove sqlite tag when integration test with mysql/postgres AND recreate database when init integration test (#1693) 2017-05-09 15:42:55 +02:00
Lauris BH
e2dbc76dbf Add configuration option for default permission to create Organizations (#1686) 2017-05-08 21:51:53 +02:00
Lunny Xiao
1c78dd7c28 fix bug when push a branch name with / & fix an integration test bug (#1689) 2017-05-08 10:55:27 +08:00
Lauris BH
e25243acea Show commit status icon in commits table (#1688)
* Show commit status icon in commits table

* Add comments

* Fix icons

* Few more places where commit table is displayed

* Change integration test to use goquery for parsing html

* Add integration tests for commit table and status icons

* Fix status to return lates status correctly on all databases

* Rewrote lates commit status selects
2017-05-07 22:40:31 +08:00
Lauris BH
55b9cb5f62 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
2017-05-02 08:49:55 +08:00
Ethan Koenig
5900ff0830 MySQL, Postgres integration tests in drone (#1638)
* MySQL, Postgres integration tests in drone

* Fix .drone.yml

* sign drone

* resign drone
2017-04-30 14:30:12 +08:00