aboutsummaryrefslogtreecommitdiff
path: root/test/mod_http_api_test.exs
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-04-06 13:51:05 +0200
committerMickael Remond <mremond@process-one.net>2016-04-06 13:51:05 +0200
commit267fdb2e9553d3154f1f86d0db8af05487c2474a (patch)
tree55e503ea57619f372159380904a6d966277076a9 /test/mod_http_api_test.exs
parentMerge branch 'master' of github.com:processone/ejabberd (diff)
Now we need to start stringprep before config
Diffstat (limited to 'test/mod_http_api_test.exs')
-rw-r--r--test/mod_http_api_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mod_http_api_test.exs b/test/mod_http_api_test.exs
index 2ec33bcbb..55faea83d 100644
--- a/test/mod_http_api_test.exs
+++ b/test/mod_http_api_test.exs
@@ -29,6 +29,7 @@ defmodule ModHttpApiTest do
setup_all do
:ok = :mnesia.start
+ :ok = :stringprep.start
:ok = :ejabberd_config.start(["localhost"], [])
:ok = :ejabberd_commands.init
@@ -65,6 +66,10 @@ defmodule ModHttpApiTest do
{401, _, _} = :mod_http_api.process(["restricted_cmd"], request)
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
# We define one for each policy type
defp cmds do