The AuditLogger.await is used in Drive tests, the impl org.nuxeo.ecm.platform.audit.service.AbstractAuditBackend#await rely on the audit bulker, so it does not work with the new default stream audit writer.
This must be fixed in the meantime Drive tests can use the old impl by disabling the stream audit writer, adding nuxeo.stream.audit.enabled = false in the nuxeo.conf.
Also the Elasticsearch.WaitForIndexing operation should be extended to support audit, by adding a waitForAudit boolean parameter the operation should also wait for audit writer using AuditLogger.await and refresh the audit index.
This can replace the Drive operation: NuxeoDrive.WaitForElasticsearchCompletion.
The operation WaitForIndexing should be restricted to Adminsitrator.
- is related to
-
NXP-25463 Server CMIS tests should wait for audit
- Resolved
-
NXDRIVE-1048 Use the generic operation Elasticsearch.WaitForIndexing to wait for audit, following NXP-23725
- Resolved
-
NXP-23762 Make NuxeoDrive.WaitForElasticsearchCompletion rely on Elasticsearch.WaitForIndexing
- Resolved
-
NXDRIVE-1043 Workaround tests failing systematically because of a wrong await on the stream audit
- Resolved
-
NXP-22109 Provides an Audit writer impl with Computation
- Resolved
- is required by
-
NXDRIVE-1044 Remove temporary workaround for stream audit await added by NXDRIVE-1043
- Resolved