fix(housekeeping): correct people partial audit evidence
This commit is contained in:
1 parent
91c9efcbb4
commit
fcd1dfd96e
5 files changed
+339
-89
No files matched your search
@@ -952,6 +952,22 @@ describe("dispatchHousekeepingCommand", () => {
|
||||
"invalid failure error",
|
||||
{ ok: false, error: null, correlationId: "forged" },
|
||||
],
|
||||
[
|
||||
"failure completion metadata",
|
||||
{
|
||||
ok: false,
|
||||
error: {
|
||||
code: "DEPENDENCY_UNAVAILABLE",
|
||||
messageKey: "errors.housekeeping.dependencyUnavailable",
|
||||
},
|
||||
correlationId: "forged",
|
||||
completion: {
|
||||
status: "partial",
|
||||
external: "failed",
|
||||
audit: "persisted",
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
"throwing getter",
|
||||
Object.defineProperty({}, "ok", {
|
||||
|
||||
@@ -71,13 +71,6 @@ const housekeepingResultSchema = z.discriminatedUnion("ok", [
|
||||
ok: z.literal(false),
|
||||
error: housekeepingErrorSchema,
|
||||
correlationId: z.string().min(1).max(160),
|
||||
completion: z
|
||||
.strictObject({
|
||||
status: z.literal("partial"),
|
||||
external: z.enum(["not-required", "completed", "failed"]),
|
||||
audit: z.enum(["persisted", "unavailable"]),
|
||||
})
|
||||
.optional(),
|
||||
}),
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user