mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
Audit cleanups (process names for automations; no audit if no fields changed;
This commit is contained in:
@ -173,6 +173,17 @@ class DMLAuditActionTest extends BaseTest
|
||||
assertTrue(auditDetailList.stream().noneMatch(r -> r.getValueString("message").contains("Favorite Shape")));
|
||||
MemoryRecordStore.getInstance().reset();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// confirm if nothing changed on an edit, that no audit. //
|
||||
///////////////////////////////////////////////////////////
|
||||
{
|
||||
qInstance.getTable(TestUtils.TABLE_NAME_PERSON_MEMORY).setAuditRules(new QAuditRules().withAuditLevel(AuditLevel.FIELD));
|
||||
new DMLAuditAction().execute(new DMLAuditInput().withTableActionInput(updateInput).withRecordList(recordList).withOldRecordList(recordList));
|
||||
List<QRecord> auditList = TestUtils.queryTable("audit");
|
||||
assertEquals(0, auditList.size());
|
||||
MemoryRecordStore.getInstance().reset();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user