diff options
author | Lain Soykaf <lain@lain.com> | 2023-11-12 16:43:50 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-11-12 16:43:50 +0400 |
commit | 59018d73c366d9297efe83d290c717d1a3e4756a (patch) | |
tree | 2d310d26f8763279f7f9fe854dd4c444d1d7f676 /test | |
parent | a1a25029da74949a79c73d400b6f2bc0bf1dc01a (diff) | |
download | pleroma-59018d73c366d9297efe83d290c717d1a3e4756a.tar.gz pleroma-59018d73c366d9297efe83d290c717d1a3e4756a.zip |
B Meilisearch: Update to current API responses.
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/search/meilisearch_test.exs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/test/pleroma/search/meilisearch_test.exs b/test/pleroma/search/meilisearch_test.exs index 3a267385d..39592c5f8 100644 --- a/test/pleroma/search/meilisearch_test.exs +++ b/test/pleroma/search/meilisearch_test.exs @@ -34,7 +34,15 @@ defmodule Pleroma.Search.MeilisearchTest do # To make sure that the worker is called send(self(), "posted_to_meilisearch") - json(%{updateId: 1}) + + %{ + "enqueuedAt" => "2023-11-12T12:36:46.927517Z", + "indexUid" => "objects", + "status" => "enqueued", + "taskUid" => 6, + "type" => "documentAdditionOrUpdate" + } + |> json() end) Config @@ -103,12 +111,19 @@ defmodule Pleroma.Search.MeilisearchTest do Jason.decode!(body) ) - json(%{updateId: 1}) + %{ + "enqueuedAt" => "2023-11-12T12:36:46.927517Z", + "indexUid" => "objects", + "status" => "enqueued", + "taskUid" => 6, + "type" => "documentAdditionOrUpdate" + } + |> json() %{method: :delete, url: "http://127.0.0.1:7700/indexes/objects/documents/" <> id} -> send(self(), "called_delete") assert String.length(id) > 1 - json(%{updateId: 2}) + json(%{}) end) Config |