# # # add_file "test_hooks.lua" # content [c8ca29aac8840285176dc56724352917a3b52bf2] # ============================================================ --- test_hooks.lua c8ca29aac8840285176dc56724352917a3b52bf2 +++ test_hooks.lua c8ca29aac8840285176dc56724352917a3b52bf2 @@ -0,0 +1,24 @@ + +-- this is the "testing" set of lua hooks for monotone +-- it's intended to support self-tests, not for use in +-- production. just overrides some of the std hooks. + +function get_passphrase(keyid) + return keyid +end + +function persist_phrase_ok() + return true +end + +function get_post_targets(groupname) + return { "nntp://127.0.0.1:8119/monotone.test.packets" } +end + +function get_fetch_sources(groupname) + return { "nntp://127.0.0.1:8119/monotone.test.packets" } +end + +function get_news_sender(url, group) + return "address@hidden" +end