3 Provides unit tests and examples for the <CPanel> lens.
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.
16 account_login_access=owner_root
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
24 email_send_limits_max_defer_fail_percentage
25 default_archive-logs=1
26 SecurityPolicy::xml-api=1\n"
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." }
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" }