Add gpg key scope to a user test

This commit is contained in:
harryzcy 2022-10-29 22:29:32 -04:00
parent f839856e3c
commit 0583e79f37
No known key found for this signature in database
GPG key ID: CC2953E050C19686

View file

@ -152,7 +152,7 @@ Note: This user hasn't uploaded any GPG keys.
// Import key
// User1 <user1@example.com>
session := loginUser(t, "user1")
token := getTokenForLoggedInUser(t, session)
token := getTokenForLoggedInUser(t, session, "write_gpg_key")
testCreateGPGKey(t, session.MakeRequest, token, http.StatusCreated, `-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFyy/VUBCADJ7zbM20Z1RWmFoVgp5WkQfI2rU1Vj9cQHes9i42wVLLtcbPeo