]> granicus.if.org Git - ejabberd/commitdiff
Now we need to start stringprep before config
authorMickael Remond <mremond@process-one.net>
Wed, 6 Apr 2016 11:51:05 +0000 (13:51 +0200)
committerMickael Remond <mremond@process-one.net>
Wed, 6 Apr 2016 11:51:05 +0000 (13:51 +0200)
test/mod_http_api_test.exs

index 2ec33bcbb4ea08df7deb443a512c8e68fe3afc33..55faea83d9e9d8b4e86ddd46ec35b6c840344aad 100644 (file)
@@ -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