diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-28 19:58:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 12:58:28 +0100 |
commit | 1fee11d69a437ec7e68b3f6b645827592fe77292 (patch) | |
tree | 1fca452f96746d9f7cc8c31723e3c365155cf96d /integrations/api_keys_test.go | |
parent | 24a8d54bfb908a2371cb808a5243b3290dd0664a (diff) | |
download | gitea-1fee11d69a437ec7e68b3f6b645827592fe77292.tar.gz gitea-1fee11d69a437ec7e68b3f6b645827592fe77292.zip |
Move accessmode into models/perm (#17828)
Diffstat (limited to 'integrations/api_keys_test.go')
-rw-r--r-- | integrations/api_keys_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/integrations/api_keys_test.go b/integrations/api_keys_test.go index 7c82bfbb69..9bcfa70461 100644 --- a/integrations/api_keys_test.go +++ b/integrations/api_keys_test.go @@ -11,6 +11,7 @@ import ( "testing" "code.gitea.io/gitea/models" + "code.gitea.io/gitea/models/perm" "code.gitea.io/gitea/models/unittest" user_model "code.gitea.io/gitea/models/user" api "code.gitea.io/gitea/modules/structs" @@ -67,7 +68,7 @@ func TestCreateReadOnlyDeployKey(t *testing.T) { ID: newDeployKey.ID, Name: rawKeyBody.Title, Content: rawKeyBody.Key, - Mode: models.AccessModeRead, + Mode: perm.AccessModeRead, }) } @@ -92,7 +93,7 @@ func TestCreateReadWriteDeployKey(t *testing.T) { ID: newDeployKey.ID, Name: rawKeyBody.Title, Content: rawKeyBody.Key, - Mode: models.AccessModeWrite, + Mode: perm.AccessModeWrite, }) } @@ -119,7 +120,7 @@ func TestCreateUserKey(t *testing.T) { OwnerID: user.ID, Name: rawKeyBody.Title, Content: rawKeyBody.Key, - Mode: models.AccessModeWrite, + Mode: perm.AccessModeWrite, }) // Search by fingerprint |