matthewdeanmartin / openmock

Python Opensearch Mock for test purposes (fork of elasticmock)
https://pypi.python.org/pypi/openmock
MIT License
14 stars 12 forks source link

Missing opensearchpy.OpenSearch.create() method #8

Closed sdhoyt closed 1 year ago

sdhoyt commented 1 year ago

The OpenSearch client's create() method is currently not being mocked. This method creates a new document if one does not exist or returns a 409 error if the document already exists.

I forked the repository and added the method and tests if contributions are being accepted.

matthewdeanmartin commented 1 year ago

merged. I'll publish a new release shortly.

sdhoyt commented 1 year ago

Thanks!