summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2019-05-04 11:45:34 -0400
committerGitHub <noreply@github.com>2019-05-04 11:45:34 -0400
commit46373e765702a203bfcb576c9d3639314ef4965f (patch)
treea44ba4de8593a9ad7898683e0e6df80e0072ef17 /integrations
parent1fa96629461ac4229932b0a4526fc2f60c88ec51 (diff)
downloadgitea-46373e765702a203bfcb576c9d3639314ef4965f.tar.gz
gitea-46373e765702a203bfcb576c9d3639314ef4965f.zip
Hash App token (#6724)
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_token_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/integrations/api_token_test.go b/integrations/api_token_test.go
index 2520f356b7..5768d3b48e 100644
--- a/integrations/api_token_test.go
+++ b/integrations/api_token_test.go
@@ -26,10 +26,10 @@ func TestAPICreateAndDeleteToken(t *testing.T) {
var newAccessToken api.AccessToken
DecodeJSON(t, resp, &newAccessToken)
models.AssertExistsAndLoadBean(t, &models.AccessToken{
- ID: newAccessToken.ID,
- Name: newAccessToken.Name,
- Sha1: newAccessToken.Sha1,
- UID: user.ID,
+ ID: newAccessToken.ID,
+ Name: newAccessToken.Name,
+ Token: newAccessToken.Token,
+ UID: user.ID,
})
req = NewRequestf(t, "DELETE", "/api/v1/users/user1/tokens/%d", newAccessToken.ID)