Skip to content

Commit

Permalink
modeled snapshot creation test of dump creation test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbelokon committed Nov 23, 2023
1 parent 6d4575a commit ae2b052
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/client/test_clinet_snapshots.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# pylint: disable=invalid-name


def test_snapshot_creation(client, index_with_documents):
"""Tests the creation of a Meilisearch snapshot."""
index_with_documents("indexUID-snapshot-creation")
snapshot= client.create_snapshot()
client.wait_for_task(snapshot.task_uid)
snapshot_status = client.get_task(snapshot.task_uid)
assert snapshot_status.status == "succeeded"
assert snapshot_status.type == "snapshotCreation"

0 comments on commit ae2b052

Please sign in to comment.