ElasticsearchPlugin¶
ElasticsearchPlugin
¶
Bases: BasePlugin
Elasticsearch interception plugin.
Patches elasticsearch.Elasticsearch methods at the class level. Uses reference counting so nested sandboxes work correctly.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
mock_operation
¶
Register a mock for a single Elasticsearch operation invocation.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
install_patches
¶
Install Elasticsearch method patches.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
restore_patches
¶
Restore original Elasticsearch methods.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
assert_index
¶
Assert the next index interaction.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
assert_search
¶
Assert the next search interaction.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
assert_get
¶
Assert the next get interaction.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
assert_delete
¶
Assert the next delete interaction.
Source code in src/tripwire/plugins/elasticsearch_plugin.py
assert_bulk
¶
Assert the next bulk interaction.