25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Now we need to start stringprep before config

This commit is contained in:
Mickael Remond 2016-04-06 13:51:05 +02:00
parent 1b9b5f8e6a
commit 267fdb2e95

View File

@ -29,6 +29,7 @@ defmodule ModHttpApiTest do
setup_all do setup_all do
:ok = :mnesia.start :ok = :mnesia.start
:ok = :stringprep.start
:ok = :ejabberd_config.start(["localhost"], []) :ok = :ejabberd_config.start(["localhost"], [])
:ok = :ejabberd_commands.init :ok = :ejabberd_commands.init
@ -65,6 +66,10 @@ defmodule ModHttpApiTest do
{401, _, _} = :mod_http_api.process(["restricted_cmd"], request) {401, _, _} = :mod_http_api.process(["restricted_cmd"], request)
end end
@tag pending: true
test "If admin_ip_access is enabled, we can call restricted API without authentication from that IP" do
end
# Define a set of test commands that we expose through API # Define a set of test commands that we expose through API
# We define one for each policy type # We define one for each policy type
defp cmds do defp cmds do