diff options
author | Tamal Saha <tamal@appscode.com> | 2019-08-23 09:40:30 -0700 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-08-23 12:40:29 -0400 |
commit | 171b3598778a1ecd0a921c71ed6755bfef68f7f0 (patch) | |
tree | 02857629ef9e8e26ee0ee559153f803f77b588b7 /integrations | |
parent | ca6fb004ac50fc924861112403895d637c6a2d1d (diff) | |
download | gitea-171b3598778a1ecd0a921c71ed6755bfef68f7f0.tar.gz gitea-171b3598778a1ecd0a921c71ed6755bfef68f7f0.zip |
Use gitea forked macaron (#7933)
Signed-off-by: Tamal Saha <tamal@appscode.com>
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/api_helper_for_declarative_test.go | 1 | ||||
-rw-r--r-- | integrations/api_keys_test.go | 4 | ||||
-rw-r--r-- | integrations/api_user_heatmap_test.go | 6 | ||||
-rw-r--r-- | integrations/auth_ldap_test.go | 2 | ||||
-rw-r--r-- | integrations/branches_test.go | 2 | ||||
-rw-r--r-- | integrations/create_no_session_test.go | 2 | ||||
-rw-r--r-- | integrations/git_helper_for_declarative_test.go | 3 | ||||
-rw-r--r-- | integrations/integration_test.go | 4 | ||||
-rw-r--r-- | integrations/lfs_getobject_test.go | 2 | ||||
-rw-r--r-- | integrations/pull_merge_test.go | 2 | ||||
-rw-r--r-- | integrations/release_test.go | 2 | ||||
-rw-r--r-- | integrations/repo_branch_test.go | 2 | ||||
-rw-r--r-- | integrations/signin_test.go | 2 | ||||
-rw-r--r-- | integrations/ssh_key_test.go | 1 | ||||
-rw-r--r-- | integrations/user_test.go | 2 |
15 files changed, 21 insertions, 16 deletions
diff --git a/integrations/api_helper_for_declarative_test.go b/integrations/api_helper_for_declarative_test.go index 42c271e3af..805a986ae3 100644 --- a/integrations/api_helper_for_declarative_test.go +++ b/integrations/api_helper_for_declarative_test.go @@ -14,6 +14,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/auth" api "code.gitea.io/gitea/modules/structs" + "github.com/stretchr/testify/assert" ) diff --git a/integrations/api_keys_test.go b/integrations/api_keys_test.go index ca3d4b2d7a..d9686a063c 100644 --- a/integrations/api_keys_test.go +++ b/integrations/api_keys_test.go @@ -10,10 +10,10 @@ import ( "net/url" "testing" - "github.com/stretchr/testify/assert" - "code.gitea.io/gitea/models" api "code.gitea.io/gitea/modules/structs" + + "github.com/stretchr/testify/assert" ) func TestViewDeployKeysNoLogin(t *testing.T) { diff --git a/integrations/api_user_heatmap_test.go b/integrations/api_user_heatmap_test.go index 5c65dc1bca..5245bb0a26 100644 --- a/integrations/api_user_heatmap_test.go +++ b/integrations/api_user_heatmap_test.go @@ -5,11 +5,13 @@ package integrations import ( - "code.gitea.io/gitea/models" "fmt" - "github.com/stretchr/testify/assert" "net/http" "testing" + + "code.gitea.io/gitea/models" + + "github.com/stretchr/testify/assert" ) func TestUserHeatmap(t *testing.T) { diff --git a/integrations/auth_ldap_test.go b/integrations/auth_ldap_test.go index 52fe0fd73f..9ea3184ae7 100644 --- a/integrations/auth_ldap_test.go +++ b/integrations/auth_ldap_test.go @@ -12,8 +12,8 @@ import ( "code.gitea.io/gitea/models" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) type ldapUser struct { diff --git a/integrations/branches_test.go b/integrations/branches_test.go index e74f338aa2..ea38821d21 100644 --- a/integrations/branches_test.go +++ b/integrations/branches_test.go @@ -10,8 +10,8 @@ import ( "testing" "github.com/PuerkitoBio/goquery" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) func TestViewBranches(t *testing.T) { diff --git a/integrations/create_no_session_test.go b/integrations/create_no_session_test.go index 0cdf7e2310..2d21f25005 100644 --- a/integrations/create_no_session_test.go +++ b/integrations/create_no_session_test.go @@ -16,7 +16,7 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/routers/routes" - "github.com/go-macaron/session" + "gitea.com/macaron/session" "github.com/stretchr/testify/assert" ) diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go index 6397a5e570..628611d2d7 100644 --- a/integrations/git_helper_for_declarative_test.go +++ b/integrations/git_helper_for_declarative_test.go @@ -19,8 +19,9 @@ import ( "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/ssh" - "github.com/Unknwon/com" + "github.com/stretchr/testify/assert" + "github.com/unknwon/com" ) func withKeyFile(t *testing.T, keyname string, callback func(string)) { diff --git a/integrations/integration_test.go b/integrations/integration_test.go index 6597586e53..eaec2d509e 100644 --- a/integrations/integration_test.go +++ b/integrations/integration_test.go @@ -27,10 +27,10 @@ import ( "code.gitea.io/gitea/routers" "code.gitea.io/gitea/routers/routes" + "gitea.com/macaron/macaron" "github.com/PuerkitoBio/goquery" - "github.com/Unknwon/com" "github.com/stretchr/testify/assert" - "gopkg.in/macaron.v1" + "github.com/unknwon/com" "gopkg.in/testfixtures.v2" ) diff --git a/integrations/lfs_getobject_test.go b/integrations/lfs_getobject_test.go index 567cf13b45..42b64612fd 100644 --- a/integrations/lfs_getobject_test.go +++ b/integrations/lfs_getobject_test.go @@ -18,9 +18,9 @@ import ( "code.gitea.io/gitea/modules/gzip" "code.gitea.io/gitea/modules/lfs" "code.gitea.io/gitea/modules/setting" - "github.com/stretchr/testify/assert" gzipp "github.com/klauspost/compress/gzip" + "github.com/stretchr/testify/assert" ) func GenerateLFSOid(content io.Reader) (string, error) { diff --git a/integrations/pull_merge_test.go b/integrations/pull_merge_test.go index 2f4e48f293..27f9fc6bb9 100644 --- a/integrations/pull_merge_test.go +++ b/integrations/pull_merge_test.go @@ -15,8 +15,8 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/test" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) func testPullMerge(t *testing.T, session *TestSession, user, repo, pullnum string, mergeStyle models.MergeStyle) *httptest.ResponseRecorder { diff --git a/integrations/release_test.go b/integrations/release_test.go index 492d224a53..135607153e 100644 --- a/integrations/release_test.go +++ b/integrations/release_test.go @@ -11,8 +11,8 @@ import ( "code.gitea.io/gitea/modules/test" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) func createNewRelease(t *testing.T, session *TestSession, repoURL, tag, title string, preRelease, draft bool) { diff --git a/integrations/repo_branch_test.go b/integrations/repo_branch_test.go index a5447cfb66..dbde276993 100644 --- a/integrations/repo_branch_test.go +++ b/integrations/repo_branch_test.go @@ -13,8 +13,8 @@ import ( "code.gitea.io/gitea/modules/test" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) func testCreateBranch(t testing.TB, session *TestSession, user, repo, oldRefSubURL, newBranchName string, expectedStatus int) string { diff --git a/integrations/signin_test.go b/integrations/signin_test.go index 9eab5b5f03..4a2bb8857a 100644 --- a/integrations/signin_test.go +++ b/integrations/signin_test.go @@ -11,8 +11,8 @@ import ( "code.gitea.io/gitea/models" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) func testLoginFailed(t *testing.T, username, password, message string) { diff --git a/integrations/ssh_key_test.go b/integrations/ssh_key_test.go index e8fbf17c55..944d2f6bed 100644 --- a/integrations/ssh_key_test.go +++ b/integrations/ssh_key_test.go @@ -16,6 +16,7 @@ import ( "code.gitea.io/gitea/modules/git" api "code.gitea.io/gitea/modules/structs" + "github.com/stretchr/testify/assert" ) diff --git a/integrations/user_test.go b/integrations/user_test.go index fd25f1c570..6d67927d16 100644 --- a/integrations/user_test.go +++ b/integrations/user_test.go @@ -11,8 +11,8 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/test" - "github.com/Unknwon/i18n" "github.com/stretchr/testify/assert" + "github.com/unknwon/i18n" ) func TestViewUser(t *testing.T) { |