fix: clean up writemodels user v3

This commit is contained in:
Stefan Benz
2024-09-25 19:58:26 +02:00
parent 7ce0ebd07f
commit 4efe7d1786
14 changed files with 391 additions and 247 deletions

View File

@@ -97,7 +97,7 @@ func TestCommands_CreateSchemaUser(t *testing.T) {
},
res{
err: func(err error) bool {
return errors.Is(err, zerrors.ThrowPreconditionFailed(nil, "COMMAND-VLDTtxT3If", "Errors.UserSchema.NotExists"))
return errors.Is(err, zerrors.ThrowNotFound(nil, "COMMAND-VLDTtxT3If", "Errors.UserSchema.NotExists"))
},
},
},
@@ -1008,7 +1008,7 @@ func TestCommands_ChangeSchemaUser(t *testing.T) {
},
res{
err: func(err error) bool {
return errors.Is(err, zerrors.ThrowPreconditionFailed(nil, "COMMAND-VLDTtxT3If", "Errors.UserSchema.NotExists"))
return errors.Is(err, zerrors.ThrowNotFound(nil, "COMMAND-VLDTtxT3If", "Errors.UserSchema.NotExists"))
},
},
},