Skip to content

Commit

Permalink
test: fix state changed
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 5, 2023
1 parent 75387ec commit 4c6de1a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions identity/stub/expand.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"traits": {
"additionalProperties": false,
"properties": {
"email": {
"format": "email",
"ory.sh/kratos": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
},
"title": "Email address",
"type": "string",
"maxLength": 320
},
"name": {
"minLength": 1,
"title": "Name",
"type": "string",
"maxLength": 256
}
},
"required": [
"email",
"name"
],
"type": "object"
}
},
"title": "Person",
"type": "object"
}
2 changes: 1 addition & 1 deletion identity/test/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestPool(ctx context.Context, conf *config.Config, p interface {
runner := func(t *testing.T, expand sqlxx.Expandables, cb func(*testing.T, *identity.Identity)) {
assertion := func(t *testing.T, actual *identity.Identity) {
assertx.EqualAsJSONExcept(t, expected, actual, []string{
"verifiable_addresses", "recovery_addresses", "updated_at", "created_at", "credentials",
"verifiable_addresses", "recovery_addresses", "updated_at", "created_at", "credentials", "state_changed_at",
})
cb(t, actual)
}
Expand Down

0 comments on commit 4c6de1a

Please sign in to comment.