akkoma/test/support/elasticsearch_mock.ex
FloatingGhost 635a3c223a
Some checks failed
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
Add elasticsearch tests
2022-06-30 16:53:21 +01:00

14 lines
279 B
Elixir

defmodule Pleroma.ElasticsearchMock do
@behaviour Elasticsearch.API
@impl true
def request(_config, :get, "/posts/1", _data, _opts) do
{:ok,
%HTTPoison.Response{
status_code: 404,
body: %{
"status" => "not_found"
}
}}
end
end