mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
This commit makes a few modifications to the IndexAuditTrail class: * Use `InternalAuditUser#is` to determine if the principal is the auditor when we have a user and simply compare `InternalAuditUser#NAME` when only a string principal is available * Remove the `Thread#setDaemon` call in the QueueConsumer as this thread should be terminated as part of the shutdown of the node In terms of tests, there are some issues and changes to how we test certain aspects. The muted tests were not accurate since the tests immediately checked for the existence of an index and did not poll or wait and this operation is asynchronous so the index could be created after the exists request was executed. These tests were removed and a new class was added to test the muted behavior. In these tests we override the audit trails implementation of a queue, which will set a flag to indicate a message has been added to the queue. This is a synchronous operation so it can be checked immediately. The other tests in the IndexAuditTrail tests remain but a few changes have been made to the execution. * ensureYellow is called for the index we expect to be created before searching for documents * the remote cluster is only setup at the beginning of the suite rather than before every test to ensure quicker execution * the maximum number of shards has been reduced to three since we do not really need up to 10 shards for a single document Original commit: elastic/x-pack-elasticsearch@501b6ce9da
= Elasticsearch X Plugins A set of Elastic's commercial plugins: - License - Shield - Watcher - Marvel = Setup You must checkout x-plugins and elasticsearch in the same directory as siblings. This elasticsearch checkout will be used when building x-plugins.
Description
Languages
Java
99.5%
Groovy
0.4%