Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_cpanel.aug
1 (*
2 Module: Test_CPanel
3   Provides unit tests and examples for the <CPanel> lens.
4 *)
5 module Test_CPanel =
6
7 (* Variable: config
8      A sample cpanel.config file *)
9 let config = "#### NOTICE ####
10 # After manually editing any configuration settings in this file,
11 # please run '/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings'
12 # to fully update your server's configuration.
13  
14 skipantirelayd=1
15 ionice_optimizefs=6
16 account_login_access=owner_root
17 enginepl=cpanel.pl
18 stats_log=/usr/local/cpanel/logs/stats_log
19 cpaddons_notify_users=Allow users to choose
20 apache_port=0.0.0.0:80
21 allow_server_info_status_from=
22 system_diskusage_warn_percent=82.5500
23 maxemailsperhour
24 email_send_limits_max_defer_fail_percentage
25 default_archive-logs=1
26 SecurityPolicy::xml-api=1\n"
27
28 (* Test: CPanel.lns
29      Get <config> *)
30 test CPanel.lns get config =
31   { "#comment" = "### NOTICE ####" }
32   { "#comment" = "After manually editing any configuration settings in this file," }
33   { "#comment" = "please run '/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings'" }
34   { "#comment" = "to fully update your server's configuration." }
35   {  }
36   { "skipantirelayd" = "1" }
37   { "ionice_optimizefs" = "6" }
38   { "account_login_access" = "owner_root" }
39   { "enginepl" = "cpanel.pl" }
40   { "stats_log" = "/usr/local/cpanel/logs/stats_log" }
41   { "cpaddons_notify_users" = "Allow users to choose" }
42   { "apache_port" = "0.0.0.0:80" }
43   { "allow_server_info_status_from" = "" }
44   { "system_diskusage_warn_percent" = "82.5500" }
45   { "maxemailsperhour" }
46   { "email_send_limits_max_defer_fail_percentage" }
47   { "default_archive-logs" = "1" }
48   { "SecurityPolicy::xml-api" = "1" }