Feat: file uploading token sign for remote policy

This commit is contained in:
HFO4
2019-12-28 15:50:56 +08:00
parent 132c7a8fcb
commit cf8b5f4d1e
15 changed files with 377 additions and 5 deletions

View File

@@ -184,3 +184,11 @@ func TestHandler_GetDownloadURL(t *testing.T) {
asserts.Empty(downloadURL)
}
}
func TestHandler_Token(t *testing.T) {
asserts := assert.New(t)
handler := Handler{}
ctx := context.Background()
_, err := handler.Token(ctx, 10, "123")
asserts.NoError(err)
}