Skip to content

Conversation

@labkey-susanh
Copy link
Contributor

Rationale

See related PR

Related Pull Requests

Changes

  • Add FILE_SYSTEM_EVENT and ASSAY_AUDIT_EVENT to AuditEvents enum
  • Add new variant of checkAuditEventValuesForTransactionId for expected rows with different values.

@labkey-susanh labkey-susanh requested a review from cnathe July 25, 2025 19:49
List<String> columnNames = expectedValues.get(0).keySet().stream().map(Object::toString).toList();
List<Map<String, Object>> events = getAuditLogsForTransactionId(containerPath, auditEventName, columnNames, transactionId, ContainerFilter.CurrentAndSubfolders);
assertEquals("Unexpected number of events for transactionId " + transactionId, rowCount, events.size());
for (int i = 0; i < rowCount; i++)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need the rowCount param here? could you just use the expectedValues list size?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For current usages, it's not needed. I was leaving open the possibility that you may not want to verify the data in all the rows, but ended up not using it. Removing rowCount.

@labkey-susanh labkey-susanh merged commit 7fe17f8 into develop Jul 30, 2025
6 checks passed
@labkey-susanh labkey-susanh deleted the fb_fileNameAudit branch July 30, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants