aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/api_packages_vagrant_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/api_packages_vagrant_test.go')
-rw-r--r--tests/integration/api_packages_vagrant_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/api_packages_vagrant_test.go b/tests/integration/api_packages_vagrant_test.go
index b4f04b0c89..b28bfca6f0 100644
--- a/tests/integration/api_packages_vagrant_test.go
+++ b/tests/integration/api_packages_vagrant_test.go
@@ -12,6 +12,7 @@ import (
"strings"
"testing"
+ auth_model "code.gitea.io/gitea/models/auth"
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/packages"
"code.gitea.io/gitea/models/unittest"
@@ -27,7 +28,7 @@ func TestPackageVagrant(t *testing.T) {
defer tests.PrepareTestEnv(t)()
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
- token := "Bearer " + getUserToken(t, user.Name)
+ token := "Bearer " + getUserToken(t, user.Name, auth_model.AccessTokenScopePackage)
packageName := "test_package"
packageVersion := "1.0.1"