Add async tests for plugins (#425)

* test(plugins): add async tests for plugins

Signed-off-by: florian <[email protected]>

* chore(USER_GUIDE): remove **

Signed-off-by: florian <[email protected]>

* test(async): remove the event loop session scoped fixture

Signed-off-by: florian <[email protected]>

---------

Signed-off-by: florian <[email protected]>
This commit is contained in:
florianvazelle
2023-07-24 09:56:32 -04:00
committed by GitHub
parent 5fa6d994bd
commit 5866880c81
7 changed files with 374 additions and 25 deletions
@@ -23,3 +23,24 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from unittest import IsolatedAsyncioTestCase
from opensearchpy._async.helpers.test import get_test_client
from opensearchpy.connection.async_connections import add_connection
from ...utils import wipe_cluster
class AsyncOpenSearchTestCase(IsolatedAsyncioTestCase):
async def asyncSetUp(self):
self.client = await get_test_client(
verify_certs=False, http_auth=("admin", "admin")
)
await add_connection("default", self.client)
async def asyncTearDown(self):
wipe_cluster(self.client)
if self.client:
await self.client.close()