fix(device-plane): correct gateway receipt immutable trigger
This commit is contained in:
+1
-1
@@ -61,6 +61,6 @@ create trigger device_gateway_message_receipts_immutable_guard
|
||||
before update or delete or truncate
|
||||
on device_gateway_message_receipts
|
||||
for each statement
|
||||
execute function reject_device_immutable_record_mutation();
|
||||
execute function device_reject_immutable_mutation();
|
||||
|
||||
commit;
|
||||
|
||||
@@ -19,6 +19,8 @@ test("gateway receipts persist only typed bounded Core acceptance evidence", asy
|
||||
assert.match(sql, /payload_schema_ref text not null/);
|
||||
assert.match(sql, /payload jsonb not null/);
|
||||
assert.match(sql, /device_gateway_message_receipts_immutable_guard/);
|
||||
assert.match(sql, /execute function device_reject_immutable_mutation\(\)/);
|
||||
assert.doesNotMatch(sql, /execute function reject_device_immutable_record_mutation\(\)/);
|
||||
assert.doesNotMatch(sql, /raw_packet|raw_identifier|password|token|secret/i);
|
||||
assert.doesNotMatch(sql, /insert\s+into|arusnavi|gelios|\bb2\b|imei/i);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user