🔥 Removed Profile from Token domain
This commit is contained in:
parent
3034cae45e
commit
7fc522a2b2
|
@ -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",
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue