You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/20 20:47:12 UTC

[GitHub] [couchdb] jaydoane commented on a change in pull request #2475: Add POST /_node//_config/_reload

jaydoane commented on a change in pull request #2475: Add POST /_node/<node>/_config/_reload
URL: https://github.com/apache/couchdb/pull/2475#discussion_r368716366
 
 

 ##########
 File path: test/elixir/test/config_test.exs
 ##########
 @@ -174,4 +174,11 @@ defmodule ConfigTest do
       set_config(context, section, "wohali", "rules", 403)
     end)
   end
+
+  test "Reload config", context do
+    url = "#{context[:config_url]}/_reload"
+    resp = Couch.post(url)
+
+    assert resp.status_code == 200
 
 Review comment:
   It might be nice to actually demo changing a config value in e.g. a .ini file and see it change with the reload, but I'm not sure if there's a simple way to make that filesystem modification via elixir test.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services