summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_admin_test.go2
-rw-r--r--integrations/api_branch_test.go2
-rw-r--r--integrations/api_comment_test.go2
-rw-r--r--integrations/api_fork_test.go2
-rw-r--r--integrations/api_gpg_keys_test.go2
-rw-r--r--integrations/api_helper_for_declarative_test.go2
-rw-r--r--integrations/api_issue_label_test.go2
-rw-r--r--integrations/api_issue_test.go2
-rw-r--r--integrations/api_keys_test.go2
-rw-r--r--integrations/api_org_test.go2
-rw-r--r--integrations/api_pull_test.go2
-rw-r--r--integrations/api_releases_test.go2
-rw-r--r--integrations/api_repo_file_content_test.go2
-rw-r--r--integrations/api_repo_file_create_test.go2
-rw-r--r--integrations/api_repo_file_delete_test.go2
-rw-r--r--integrations/api_repo_file_helpers.go2
-rw-r--r--integrations/api_repo_file_update_test.go2
-rw-r--r--integrations/api_repo_git_blobs_test.go2
-rw-r--r--integrations/api_repo_git_hook_test.go2
-rw-r--r--integrations/api_repo_lfs_locks_test.go2
-rw-r--r--integrations/api_repo_tags_test.go2
-rw-r--r--integrations/api_repo_test.go2
-rw-r--r--integrations/api_team_test.go2
-rw-r--r--integrations/api_token_test.go2
-rw-r--r--integrations/api_user_orgs_test.go2
-rw-r--r--integrations/api_user_search_test.go2
-rw-r--r--integrations/benchmarks_test.go2
-rw-r--r--integrations/links_test.go2
-rw-r--r--integrations/pull_status_test.go2
-rw-r--r--integrations/repo_commits_test.go2
-rw-r--r--integrations/ssh_key_test.go2
-rw-r--r--integrations/version_test.go4
32 files changed, 33 insertions, 33 deletions
diff --git a/integrations/api_admin_test.go b/integrations/api_admin_test.go
index 41add45458..825aed9d50 100644
--- a/integrations/api_admin_test.go
+++ b/integrations/api_admin_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_branch_test.go b/integrations/api_branch_test.go
index aff3f223c0..fddbe4e40e 100644
--- a/integrations/api_branch_test.go
+++ b/integrations/api_branch_test.go
@@ -8,7 +8,7 @@ import (
"net/http"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_comment_test.go b/integrations/api_comment_test.go
index 60bb2cfb7b..7bd3644912 100644
--- a/integrations/api_comment_test.go
+++ b/integrations/api_comment_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_fork_test.go b/integrations/api_fork_test.go
index 2c5eb55166..fec288d96f 100644
--- a/integrations/api_fork_test.go
+++ b/integrations/api_fork_test.go
@@ -8,7 +8,7 @@ import (
"net/http"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
func TestCreateForkNoLogin(t *testing.T) {
diff --git a/integrations/api_gpg_keys_test.go b/integrations/api_gpg_keys_test.go
index 0973fd33a3..0384dcb22a 100644
--- a/integrations/api_gpg_keys_test.go
+++ b/integrations/api_gpg_keys_test.go
@@ -10,7 +10,7 @@ import (
"strconv"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_helper_for_declarative_test.go b/integrations/api_helper_for_declarative_test.go
index 32a4ce8047..943981ead2 100644
--- a/integrations/api_helper_for_declarative_test.go
+++ b/integrations/api_helper_for_declarative_test.go
@@ -10,7 +10,7 @@ import (
"net/http"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_issue_label_test.go b/integrations/api_issue_label_test.go
index 57ca07337d..bf50252ed8 100644
--- a/integrations/api_issue_label_test.go
+++ b/integrations/api_issue_label_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_issue_test.go b/integrations/api_issue_test.go
index 0ac2f3b67e..24535057e2 100644
--- a/integrations/api_issue_test.go
+++ b/integrations/api_issue_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ 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 91cbd72f91..ca3d4b2d7a 100644
--- a/integrations/api_keys_test.go
+++ b/integrations/api_keys_test.go
@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
func TestViewDeployKeysNoLogin(t *testing.T) {
diff --git a/integrations/api_org_test.go b/integrations/api_org_test.go
index 3dd4b759b1..b36650f2e8 100644
--- a/integrations/api_org_test.go
+++ b/integrations/api_org_test.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_pull_test.go b/integrations/api_pull_test.go
index c378e563bd..8d24cdc188 100644
--- a/integrations/api_pull_test.go
+++ b/integrations/api_pull_test.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_releases_test.go b/integrations/api_releases_test.go
index 5cc4522f0c..897f863eb3 100644
--- a/integrations/api_releases_test.go
+++ b/integrations/api_releases_test.go
@@ -11,7 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/git"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_file_content_test.go b/integrations/api_repo_file_content_test.go
index cb4666070a..1f535ef3a0 100644
--- a/integrations/api_repo_file_content_test.go
+++ b/integrations/api_repo_file_content_test.go
@@ -13,7 +13,7 @@ import (
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_file_create_test.go b/integrations/api_repo_file_create_test.go
index da35127a51..a43855b06c 100644
--- a/integrations/api_repo_file_create_test.go
+++ b/integrations/api_repo_file_create_test.go
@@ -16,7 +16,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_file_delete_test.go b/integrations/api_repo_file_delete_test.go
index 2c2cd56437..b619f9c43c 100644
--- a/integrations/api_repo_file_delete_test.go
+++ b/integrations/api_repo_file_delete_test.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_file_helpers.go b/integrations/api_repo_file_helpers.go
index d06f484dd6..80fefe8ab3 100644
--- a/integrations/api_repo_file_helpers.go
+++ b/integrations/api_repo_file_helpers.go
@@ -7,7 +7,7 @@ package integrations
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/repofiles"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
func createFileInBranch(user *models.User, repo *models.Repository, treePath, branchName string) (*api.FileResponse, error) {
diff --git a/integrations/api_repo_file_update_test.go b/integrations/api_repo_file_update_test.go
index d62a0e279b..71994564ff 100644
--- a/integrations/api_repo_file_update_test.go
+++ b/integrations/api_repo_file_update_test.go
@@ -16,7 +16,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_git_blobs_test.go b/integrations/api_repo_git_blobs_test.go
index 69bb6cde23..ad81299ba4 100644
--- a/integrations/api_repo_git_blobs_test.go
+++ b/integrations/api_repo_git_blobs_test.go
@@ -9,7 +9,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_git_hook_test.go b/integrations/api_repo_git_hook_test.go
index 11632e6fc9..1c6de78677 100644
--- a/integrations/api_repo_git_hook_test.go
+++ b/integrations/api_repo_git_hook_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_lfs_locks_test.go b/integrations/api_repo_lfs_locks_test.go
index 35b26e45ab..657933dd5c 100644
--- a/integrations/api_repo_lfs_locks_test.go
+++ b/integrations/api_repo_lfs_locks_test.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_tags_test.go b/integrations/api_repo_tags_test.go
index f9026b4d29..13b446fb96 100644
--- a/integrations/api_repo_tags_test.go
+++ b/integrations/api_repo_tags_test.go
@@ -11,7 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go
index d126e149fe..d03ddcb353 100644
--- a/integrations/api_repo_test.go
+++ b/integrations/api_repo_test.go
@@ -13,7 +13,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_team_test.go b/integrations/api_team_test.go
index 7bb0e5b1bc..a884085f5c 100644
--- a/integrations/api_team_test.go
+++ b/integrations/api_team_test.go
@@ -11,8 +11,8 @@ import (
"testing"
"code.gitea.io/gitea/models"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/routers/api/v1/convert"
- api "code.gitea.io/sdk/gitea"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_token_test.go b/integrations/api_token_test.go
index 5768d3b48e..76660d160f 100644
--- a/integrations/api_token_test.go
+++ b/integrations/api_token_test.go
@@ -9,7 +9,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// TestAPICreateAndDeleteToken tests that token that was just created can be deleted
diff --git a/integrations/api_user_orgs_test.go b/integrations/api_user_orgs_test.go
index 9b250c0636..63e67f4356 100644
--- a/integrations/api_user_orgs_test.go
+++ b/integrations/api_user_orgs_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/api_user_search_test.go b/integrations/api_user_search_test.go
index 8e7c429e77..b4c95db2f3 100644
--- a/integrations/api_user_search_test.go
+++ b/integrations/api_user_search_test.go
@@ -8,7 +8,7 @@ import (
"net/http"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/benchmarks_test.go b/integrations/benchmarks_test.go
index 3f009f62ea..4be3008f52 100644
--- a/integrations/benchmarks_test.go
+++ b/integrations/benchmarks_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
func BenchmarkRepo(b *testing.B) {
diff --git a/integrations/links_test.go b/integrations/links_test.go
index 803d992055..84be7e0591 100644
--- a/integrations/links_test.go
+++ b/integrations/links_test.go
@@ -11,8 +11,8 @@ import (
"testing"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/test"
- api "code.gitea.io/sdk/gitea"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/pull_status_test.go b/integrations/pull_status_test.go
index ad8bb236ef..2381444676 100644
--- a/integrations/pull_status_test.go
+++ b/integrations/pull_status_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/repo_commits_test.go b/integrations/repo_commits_test.go
index 48aac1802b..1f70d69251 100644
--- a/integrations/repo_commits_test.go
+++ b/integrations/repo_commits_test.go
@@ -9,7 +9,7 @@ import (
"path"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/ssh_key_test.go b/integrations/ssh_key_test.go
index f6df5ff8f4..e8fbf17c55 100644
--- a/integrations/ssh_key_test.go
+++ b/integrations/ssh_key_test.go
@@ -15,7 +15,7 @@ import (
"time"
"code.gitea.io/gitea/modules/git"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/integrations/version_test.go b/integrations/version_test.go
index 9a30bfb53b..eaba3e0859 100644
--- a/integrations/version_test.go
+++ b/integrations/version_test.go
@@ -9,7 +9,7 @@ import (
"testing"
"code.gitea.io/gitea/modules/setting"
- "code.gitea.io/sdk/gitea"
+ "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
@@ -21,7 +21,7 @@ func TestVersion(t *testing.T) {
req := NewRequest(t, "GET", "/api/v1/version")
resp := MakeRequest(t, req, http.StatusOK)
- var version gitea.ServerVersion
+ var version structs.ServerVersion
DecodeJSON(t, resp, &version)
assert.Equal(t, setting.AppVer, string(version.Version))
}