mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Fix edit settings test
This commit is contained in:
parent
026ad817bc
commit
29704e2f26
@ -23,13 +23,12 @@ Authorization: Bearer {{jwt}}
|
|||||||
}
|
}
|
||||||
HTTP 200
|
HTTP 200
|
||||||
[Asserts]
|
[Asserts]
|
||||||
jsonpath ".claims.preferOriginal" == true
|
jsonpath "$.claims.preferOriginal" == true
|
||||||
jsonpath ".username" == "edit-settings"
|
jsonpath "$.username" == "edit-settings"
|
||||||
|
|
||||||
# Invalid password login
|
GET {{host}}/jwt
|
||||||
POST {{host}}/jwt
|
|
||||||
Authorization: Bearer {{token}}
|
Authorization: Bearer {{token}}
|
||||||
HTTP 403
|
HTTP 200
|
||||||
|
|
||||||
DELETE {{host}}/users/me
|
DELETE {{host}}/users/me
|
||||||
Authorization: Bearer {{jwt}}
|
Authorization: Bearer {{jwt}}
|
||||||
|
@ -53,8 +53,8 @@ type RegisterDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type EditUserDto struct {
|
type EditUserDto struct {
|
||||||
Username *string `json:"username,omitempty" validate:"excludes=@" example:"zoriya"`
|
Username *string `json:"username,omitempty" validate:"omitnil,excludes=@" example:"zoriya"`
|
||||||
Email *string `json:"email,omitempty" validate:"email" example:"kyoo@zoriya.dev"`
|
Email *string `json:"email,omitempty" validate:"omitnil,email" example:"kyoo@zoriya.dev"`
|
||||||
Claims jwt.MapClaims `json:"claims,omitempty" example:"preferOriginal: true"`
|
Claims jwt.MapClaims `json:"claims,omitempty" example:"preferOriginal: true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user