mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Disable one test for now, we may change how this part is handled
This commit is contained in:
parent
b01fbfadf3
commit
0ae84a646f
@ -47,12 +47,12 @@ defmodule ModHttpApiTest do
|
|||||||
assert Enum.member?(commands, :user_cmd)
|
assert Enum.member?(commands, :user_cmd)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "We can call open commands without authentication" do
|
# test "We can call open commands without authentication" do
|
||||||
setup_mocks()
|
# setup_mocks()
|
||||||
:ejabberd_commands.expose_commands([:open_cmd])
|
# :ejabberd_commands.expose_commands([:open_cmd])
|
||||||
request = request(method: :POST, ip: {{127,0,0,1},50000}, data: "[]")
|
# request = request(method: :POST, ip: {{127,0,0,1},50000}, data: "[]")
|
||||||
{200, _, _} = :mod_http_api.process(["open_cmd"], request)
|
# {200, _, _} = :mod_http_api.process(["open_cmd"], request)
|
||||||
end
|
# end
|
||||||
|
|
||||||
# This related to the commands config file option
|
# This related to the commands config file option
|
||||||
test "Attempting to access a command that is not exposed as HTTP API returns 403" do
|
test "Attempting to access a command that is not exposed as HTTP API returns 403" do
|
||||||
|
Loading…
Reference in New Issue
Block a user