🔥 Removed Profile from Token domain

This commit is contained in:
Maxim Lebedev 2021-10-01 04:11:32 +05:00
parent 3034cae45e
commit 7fc522a2b2
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 0 additions and 6 deletions

View File

@ -10,7 +10,6 @@ type Token struct {
AccessToken string
ClientID string
Me string
Profile *Profile
Scopes []string
Type string
}
@ -30,7 +29,6 @@ func TestToken(tb testing.TB) *Token {
AccessToken: random.New().String(32),
ClientID: "http://app.example.com/",
Me: "http://user.example.net/",
Profile: TestProfile(tb),
Scopes: []string{"create", "update", "delete"},
Type: "Bearer",
}

View File

@ -51,7 +51,6 @@ func TestGet(t *testing.T) {
t.Parallel()
accessToken := domain.TestToken(t)
accessToken.Profile = nil
t.Cleanup(func() {
_ = db.Update(func(tx *bbolt.Tx) error {
@ -83,7 +82,6 @@ func TestCreate(t *testing.T) {
t.Parallel()
accessToken := domain.TestToken(t)
accessToken.Profile = nil
t.Cleanup(func() {
_ = db.Update(func(tx *bbolt.Tx) error {
@ -138,7 +136,6 @@ func TestUpdate(t *testing.T) {
Me: "https://toby3d.ru/",
Scopes: []string{"read"},
Type: "Bearer",
Profile: nil,
}))
result := domain.NewToken()
@ -153,7 +150,6 @@ func TestUpdate(t *testing.T) {
Me: "https://toby3d.ru/",
Scopes: []string{"read"},
Type: "Bearer",
Profile: nil,
}, result)
}