lumberg 1.1.1 → 2.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -6
  3. data/README.md +130 -23
  4. data/lib/lumberg.rb +2 -0
  5. data/lib/lumberg/cpanel.rb +29 -0
  6. data/lib/lumberg/cpanel/addon_domain.rb +50 -0
  7. data/lib/lumberg/cpanel/backups.rb +16 -0
  8. data/lib/lumberg/cpanel/base.rb +56 -0
  9. data/lib/lumberg/cpanel/box_trapper.rb +18 -0
  10. data/lib/lumberg/cpanel/branding.rb +89 -0
  11. data/lib/lumberg/cpanel/contact.rb +38 -0
  12. data/lib/lumberg/cpanel/cron.rb +89 -0
  13. data/lib/lumberg/cpanel/dns_lookup.rb +23 -0
  14. data/lib/lumberg/cpanel/domain_keys.rb +37 -0
  15. data/lib/lumberg/cpanel/domain_lookup.rb +71 -0
  16. data/lib/lumberg/cpanel/email.rb +491 -0
  17. data/lib/lumberg/cpanel/file_manager.rb +146 -0
  18. data/lib/lumberg/cpanel/gpg.rb +36 -0
  19. data/lib/lumberg/cpanel/locale.rb +15 -0
  20. data/lib/lumberg/cpanel/mime.rb +34 -0
  21. data/lib/lumberg/cpanel/mysql.rb +66 -0
  22. data/lib/lumberg/cpanel/net.rb +28 -0
  23. data/lib/lumberg/cpanel/park.rb +58 -0
  24. data/lib/lumberg/cpanel/password.rb +52 -0
  25. data/lib/lumberg/cpanel/random_data.rb +25 -0
  26. data/lib/lumberg/cpanel/redirect.rb +44 -0
  27. data/lib/lumberg/cpanel/ssl.rb +198 -0
  28. data/lib/lumberg/cpanel/sub_domain.rb +61 -0
  29. data/lib/lumberg/cpanel/support.rb +29 -0
  30. data/lib/lumberg/cpanel/zone_edit.rb +134 -0
  31. data/lib/lumberg/format_whm.rb +24 -1
  32. data/lib/lumberg/version.rb +1 -1
  33. data/lib/lumberg/whm.rb +2 -1
  34. data/lib/lumberg/whm/account.rb +4 -4
  35. data/lib/lumberg/whm/cert.rb +69 -0
  36. data/lib/lumberg/whm/dns.rb +28 -4
  37. data/lib/lumberg/whm/reseller.rb +4 -4
  38. data/lib/lumberg/whm/server.rb +64 -15
  39. data/lumberg.gemspec +4 -3
  40. data/spec/config_spec.rb +2 -2
  41. data/spec/cpanel/addon_domain_spec.rb +84 -0
  42. data/spec/cpanel/backups_spec.rb +22 -0
  43. data/spec/cpanel/base_spec.rb +128 -0
  44. data/spec/cpanel/box_trapper_spec.rb +22 -0
  45. data/spec/cpanel/branding_spec.rb +46 -0
  46. data/spec/cpanel/contact_spec.rb +50 -0
  47. data/spec/cpanel/cron_spec.rb +161 -0
  48. data/spec/cpanel/dns_lookup_spec.rb +22 -0
  49. data/spec/cpanel/domain_keys_spec.rb +46 -0
  50. data/spec/cpanel/domain_lookup_spec.rb +77 -0
  51. data/spec/cpanel/email_spec.rb +615 -0
  52. data/spec/cpanel/file_manager_spec.rb +73 -0
  53. data/spec/cpanel/gpg_spec.rb +48 -0
  54. data/spec/cpanel/locale_spec.rb +23 -0
  55. data/spec/cpanel/mime_spec.rb +0 -0
  56. data/spec/cpanel/mysql_spec.rb +0 -0
  57. data/spec/cpanel/net_spec.rb +30 -0
  58. data/spec/cpanel/park_spec.rb +94 -0
  59. data/spec/cpanel/password_spec.rb +35 -0
  60. data/spec/cpanel/random_data_spec.rb +24 -0
  61. data/spec/cpanel/redirect_spec.rb +0 -0
  62. data/spec/cpanel/ssl_spec.rb +138 -0
  63. data/spec/cpanel/sub_domain_spec.rb +72 -0
  64. data/spec/cpanel/support_spec.rb +38 -0
  65. data/spec/cpanel/zone_edit_spec.rb +0 -0
  66. data/spec/sample_certs/cpanel.crt +28 -0
  67. data/spec/sample_certs/cpanel.key +28 -0
  68. data/spec/sample_certs/main.crt +27 -0
  69. data/spec/sample_certs/sample.crt +26 -0
  70. data/spec/sample_certs/sample.key +27 -0
  71. data/spec/spec_helper.rb +7 -1
  72. data/spec/support/cpanel_matchers.rb +17 -0
  73. data/spec/vcr_cassettes/cpanel/addon_domain/add.yml +77 -0
  74. data/spec/vcr_cassettes/cpanel/addon_domain/list.yml +77 -0
  75. data/spec/vcr_cassettes/cpanel/addon_domain/remove.yml +77 -0
  76. data/spec/vcr_cassettes/cpanel/backups/list.yml +40 -0
  77. data/spec/vcr_cassettes/cpanel/box_trapper/list.yml +40 -0
  78. data/spec/vcr_cassettes/cpanel/branding/list_icons.yml +40 -0
  79. data/spec/vcr_cassettes/cpanel/branding/list_image_types.yml +40 -0
  80. data/spec/vcr_cassettes/cpanel/branding/list_object_types.yml +40 -0
  81. data/spec/vcr_cassettes/cpanel/branding/list_pkgs.yml +40 -0
  82. data/spec/vcr_cassettes/cpanel/branding/list_sprites.yml +40 -0
  83. data/spec/vcr_cassettes/cpanel/contact/show.yml +40 -0
  84. data/spec/vcr_cassettes/cpanel/contact/update.yml +40 -0
  85. data/spec/vcr_cassettes/cpanel/cron/add.yml +77 -0
  86. data/spec/vcr_cassettes/cpanel/cron/edit.yml +114 -0
  87. data/spec/vcr_cassettes/cpanel/cron/email.yml +77 -0
  88. data/spec/vcr_cassettes/cpanel/cron/list.yml +77 -0
  89. data/spec/vcr_cassettes/cpanel/cron/remove.yml +151 -0
  90. data/spec/vcr_cassettes/cpanel/cron/set_email.yml +77 -0
  91. data/spec/vcr_cassettes/cpanel/dns_lookup/name_to_ip.yml +40 -0
  92. data/spec/vcr_cassettes/cpanel/domain_keys/add.yml +40 -0
  93. data/spec/vcr_cassettes/cpanel/domain_keys/available.yml +40 -0
  94. data/spec/vcr_cassettes/cpanel/domain_keys/installed.yml +40 -0
  95. data/spec/vcr_cassettes/cpanel/domain_keys/remove.yml +40 -0
  96. data/spec/vcr_cassettes/cpanel/domain_lookup/count.yml +40 -0
  97. data/spec/vcr_cassettes/cpanel/domain_lookup/docroot.yml +40 -0
  98. data/spec/vcr_cassettes/cpanel/domain_lookup/docroots.yml +40 -0
  99. data/spec/vcr_cassettes/cpanel/domain_lookup/document_root.yml +40 -0
  100. data/spec/vcr_cassettes/cpanel/domain_lookup/document_roots.yml +40 -0
  101. data/spec/vcr_cassettes/cpanel/domain_lookup/list.yml +40 -0
  102. data/spec/vcr_cassettes/cpanel/email/acceptable_encodings.yml +40 -0
  103. data/spec/vcr_cassettes/cpanel/email/accounts.yml +188 -0
  104. data/spec/vcr_cassettes/cpanel/email/add_account.yml +77 -0
  105. data/spec/vcr_cassettes/cpanel/email/add_filter.yml +77 -0
  106. data/spec/vcr_cassettes/cpanel/email/add_forwarder.yml +77 -0
  107. data/spec/vcr_cassettes/cpanel/email/add_mailing_list.yml +73 -0
  108. data/spec/vcr_cassettes/cpanel/email/add_mx.yml +40 -0
  109. data/spec/vcr_cassettes/cpanel/email/change_mx.yml +40 -0
  110. data/spec/vcr_cassettes/cpanel/email/check_local_delivery_local.yml +77 -0
  111. data/spec/vcr_cassettes/cpanel/email/check_local_delivery_remote.yml +77 -0
  112. data/spec/vcr_cassettes/cpanel/email/default_address.yml +40 -0
  113. data/spec/vcr_cassettes/cpanel/email/delete_mx.yml +40 -0
  114. data/spec/vcr_cassettes/cpanel/email/disk_usage.yml +77 -0
  115. data/spec/vcr_cassettes/cpanel/email/domains.yml +40 -0
  116. data/spec/vcr_cassettes/cpanel/email/domains_with_aliases.yml +77 -0
  117. data/spec/vcr_cassettes/cpanel/email/edit_quota.yml +112 -0
  118. data/spec/vcr_cassettes/cpanel/email/filters.yml +114 -0
  119. data/spec/vcr_cassettes/cpanel/email/forwarders.yml +77 -0
  120. data/spec/vcr_cassettes/cpanel/email/mail_dir.yml +77 -0
  121. data/spec/vcr_cassettes/cpanel/email/mail_dirs.yml +77 -0
  122. data/spec/vcr_cassettes/cpanel/email/mailing_lists.yml +73 -0
  123. data/spec/vcr_cassettes/cpanel/email/main_discard.yml +40 -0
  124. data/spec/vcr_cassettes/cpanel/email/mx.yml +40 -0
  125. data/spec/vcr_cassettes/cpanel/email/remove.yml +77 -0
  126. data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_local.yml +77 -0
  127. data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_remote.yml +77 -0
  128. data/spec/vcr_cassettes/cpanel/email/set_mx_type.yml +40 -0
  129. data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +38 -0
  130. data/spec/vcr_cassettes/cpanel/file_manager/list.yml +38 -0
  131. data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +77 -0
  132. data/spec/vcr_cassettes/cpanel/file_manager/show.yml +40 -0
  133. data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +38 -0
  134. data/spec/vcr_cassettes/cpanel/gpg/count.yml +40 -0
  135. data/spec/vcr_cassettes/cpanel/gpg/count_private.yml +40 -0
  136. data/spec/vcr_cassettes/cpanel/gpg/list.yml +40 -0
  137. data/spec/vcr_cassettes/cpanel/gpg/list_private.yml +40 -0
  138. data/spec/vcr_cassettes/cpanel/locale/show.yml +40 -0
  139. data/spec/vcr_cassettes/cpanel/net/query_hostname.yml +40 -0
  140. data/spec/vcr_cassettes/cpanel/net/traceroute.yml +40 -0
  141. data/spec/vcr_cassettes/cpanel/park/add.yml +77 -0
  142. data/spec/vcr_cassettes/cpanel/park/list.yml +77 -0
  143. data/spec/vcr_cassettes/cpanel/park/list_addon_domains.yml +77 -0
  144. data/spec/vcr_cassettes/cpanel/park/remove.yml +77 -0
  145. data/spec/vcr_cassettes/cpanel/password/digest_authentication.yml +77 -0
  146. data/spec/vcr_cassettes/cpanel/password/modify.yml +77 -0
  147. data/spec/vcr_cassettes/cpanel/random_data/show.yml +40 -0
  148. data/spec/vcr_cassettes/cpanel/ssl/fetchcabundle.yml +40 -0
  149. data/spec/vcr_cassettes/cpanel/ssl/gencrt.yml +40 -0
  150. data/spec/vcr_cassettes/cpanel/ssl/gencsr.yml +40 -0
  151. data/spec/vcr_cassettes/cpanel/ssl/genkey.yml +40 -0
  152. data/spec/vcr_cassettes/cpanel/ssl/installssl.yml +40 -0
  153. data/spec/vcr_cassettes/cpanel/ssl/listcrts.yml +40 -0
  154. data/spec/vcr_cassettes/cpanel/ssl/listcsrs.yml +40 -0
  155. data/spec/vcr_cassettes/cpanel/ssl/listkeys.yml +40 -0
  156. data/spec/vcr_cassettes/cpanel/ssl/listsslitems.yml +40 -0
  157. data/spec/vcr_cassettes/cpanel/ssl/showcrt.yml +38 -0
  158. data/spec/vcr_cassettes/cpanel/ssl/showcsr.yml +38 -0
  159. data/spec/vcr_cassettes/cpanel/ssl/showkey.yml +38 -0
  160. data/spec/vcr_cassettes/cpanel/ssl/uploadcrt.yml +40 -0
  161. data/spec/vcr_cassettes/cpanel/sub_domain/add.yml +77 -0
  162. data/spec/vcr_cassettes/cpanel/sub_domain/list.yml +77 -0
  163. data/spec/vcr_cassettes/cpanel/sub_domain/remove.yml +77 -0
  164. data/spec/vcr_cassettes/cpanel/support/contactable.yml +40 -0
  165. data/spec/vcr_cassettes/whm/cert/fetchsslinfo.yml +38 -0
  166. data/spec/vcr_cassettes/whm/cert/generatessl.yml +38 -0
  167. data/spec/vcr_cassettes/whm/cert/installssl.yml +38 -0
  168. data/spec/vcr_cassettes/whm/cert/listcrts.yml +38 -0
  169. data/spec/vcr_cassettes/whm/server/gettweaksetting.yml +44 -0
  170. data/spec/vcr_cassettes/whm/server/settweaksetting.yml +44 -0
  171. data/spec/vcr_cassettes/whm/server/themes.yml +38 -0
  172. data/spec/whm/cert_spec.rb +62 -0
  173. data/spec/whm/server_spec.rb +79 -3
  174. metadata +376 -34
  175. data/.rvmrc +0 -49
@@ -0,0 +1,40 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=getdocroots&cpanel_jsonapi_module=DomainLookup&cpanel_jsonapi_user=lumberg
7
+ body:
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Accept:
13
+ - "*/*"
14
+ Authorization:
15
+ - WHM root:iscool
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Keep-Alive:
22
+ - timeout=70, max=200
23
+ Content-Type:
24
+ - application/json; charset="utf-8"
25
+ Connection:
26
+ - Keep-Alive
27
+ Content-Length:
28
+ - "273"
29
+ X-Keep-Alive-Count:
30
+ - "1"
31
+ Date:
32
+ - Wed, 15 May 2013 03:23:06 GMT
33
+ Server:
34
+ - cpsrvd/11.36.0.4
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"data":[{"domain":"lumberg-test.com","docroot":"/home/lumberg/public_html"},{"domain":"other-example.lumberg-test.com","docroot":"/home/lumberg/public_html/other-example"}],"event":{"result":1},"module":"DomainLookup","apiversion":2,"func":"getdocroots"}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 15 May 2013 03:18:25 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=getbasedomains&cpanel_jsonapi_module=DomainLookup&cpanel_jsonapi_user=lumberg
7
+ body:
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Accept:
13
+ - "*/*"
14
+ Authorization:
15
+ - WHM root:iscool
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Keep-Alive:
22
+ - timeout=70, max=200
23
+ Content-Type:
24
+ - application/json; charset="utf-8"
25
+ Connection:
26
+ - Keep-Alive
27
+ Content-Length:
28
+ - "142"
29
+ X-Keep-Alive-Count:
30
+ - "1"
31
+ Date:
32
+ - Wed, 15 May 2013 03:23:05 GMT
33
+ Server:
34
+ - cpsrvd/11.36.0.4
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"data":[{"domain":"lumberg-test.com"}],"func":"getbasedomains","module":"DomainLookup","event":{"result":1},"apiversion":2}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 15 May 2013 03:18:24 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=fetchcharmaps&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - Faraday v0.8.7
14
+ Authorization:
15
+ - WHM root:iscool
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 15 May 2013 03:15:38 GMT
23
+ Connection:
24
+ - Keep-Alive
25
+ Content-Length:
26
+ - "4741"
27
+ Server:
28
+ - cpsrvd/11.36.0.4
29
+ Content-Type:
30
+ - application/json; charset="utf-8"
31
+ Keep-Alive:
32
+ - timeout=70, max=200
33
+ X-Keep-Alive-Count:
34
+ - "1"
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"func":"fetchcharmaps","module":"Email","apiversion":2,"data":[{"map":"ansi_x3.110-1983"},{"map":"ansi_x3.4-1968"},{"map":"armscii-8"},{"map":"ascii"},{"map":"asmo_449"},{"map":"big5"},{"map":"big5-eten"},{"map":"big5-hkscs"},{"map":"bs_4730"},{"map":"bs_viewdata"},{"map":"cp10007"},{"map":"cp1125"},{"map":"cp1250"},{"map":"cp1251"},{"map":"cp1252"},{"map":"cp1253"},{"map":"cp1254"},{"map":"cp1255"},{"map":"cp1256"},{"map":"cp1257"},{"map":"cp1258"},{"map":"cp737"},{"map":"cp775"},{"map":"cp936"},{"map":"cp949"},{"map":"csa_z243.4-1985-1"},{"map":"csa_z243.4-1985-2"},{"map":"csa_z243.4-1985-gr"},{"map":"csn_369103"},{"map":"cwi"},{"map":"dec-mcs"},{"map":"din_66003"},{"map":"ds_2089"},{"map":"ebcdic-at-de"},{"map":"ebcdic-at-de-a"},{"map":"ebcdic-ca-fr"},{"map":"ebcdic-dk-no"},{"map":"ebcdic-dk-no-a"},{"map":"ebcdic-es"},{"map":"ebcdic-es-a"},{"map":"ebcdic-es-s"},{"map":"ebcdic-fi-se"},{"map":"ebcdic-fi-se-a"},{"map":"ebcdic-fr"},{"map":"ebcdic-is-friss"},{"map":"ebcdic-it"},{"map":"ebcdic-pt"},{"map":"ebcdic-uk"},{"map":"ebcdic-us"},{"map":"ecma-cyrillic"},{"map":"es"},{"map":"es2"},{"map":"euc-cn"},{"map":"euc-jisx0213"},{"map":"euc-jp"},{"map":"euc-jp-ms"},{"map":"euc-kr"},{"map":"euc-tw"},{"map":"gb18030"},{"map":"gb2312"},{"map":"gb_1988-80"},{"map":"gbk"},{"map":"georgian-academy"},{"map":"georgian-ps"},{"map":"gost_19768-74"},{"map":"greek-ccitt"},{"map":"greek7"},{"map":"greek7-old"},{"map":"gsm03.38"},{"map":"hp-roman8"},{"map":"hz"},{"map":"hz-gb-2312"},{"map":"ibm037"},{"map":"ibm038"},{"map":"ibm1004"},{"map":"ibm1026"},{"map":"ibm1047"},{"map":"ibm1124"},{"map":"ibm1129"},{"map":"ibm1132"},{"map":"ibm1133"},{"map":"ibm1160"},{"map":"ibm1161"},{"map":"ibm1162"},{"map":"ibm1163"},{"map":"ibm1164"},{"map":"ibm256"},{"map":"ibm273"},{"map":"ibm274"},{"map":"ibm275"},{"map":"ibm277"},{"map":"ibm278"},{"map":"ibm280"},{"map":"ibm281"},{"map":"ibm284"},{"map":"ibm285"},{"map":"ibm290"},{"map":"ibm297"},{"map":"ibm420"},{"map":"ibm423"},{"map":"ibm424"},{"map":"ibm437"},{"map":"ibm500"},{"map":"ibm850"},{"map":"ibm851"},{"map":"ibm852"},{"map":"ibm855"},{"map":"ibm856"},{"map":"ibm857"},{"map":"ibm860"},{"map":"ibm861"},{"map":"ibm862"},{"map":"ibm863"},{"map":"ibm864"},{"map":"ibm865"},{"map":"ibm866"},{"map":"ibm866nav"},{"map":"ibm868"},{"map":"ibm869"},{"map":"ibm870"},{"map":"ibm871"},{"map":"ibm874"},{"map":"ibm875"},{"map":"ibm880"},{"map":"ibm891"},{"map":"ibm903"},{"map":"ibm904"},{"map":"ibm905"},{"map":"ibm918"},{"map":"ibm922"},{"map":"iec_p27-1"},{"map":"inis"},{"map":"inis-8"},{"map":"inis-cyrillic"},{"map":"invariant"},{"map":"isiri-3342"},{"map":"iso-8859-1"},{"map":"iso-8859-10"},{"map":"iso-8859-11"},{"map":"iso-8859-13"},{"map":"iso-8859-14"},{"map":"iso-8859-15"},{"map":"iso-8859-16"},{"map":"iso-8859-2"},{"map":"iso-8859-3"},{"map":"iso-8859-4"},{"map":"iso-8859-5"},{"map":"iso-8859-6"},{"map":"iso-8859-7"},{"map":"iso-8859-8"},{"map":"iso-8859-9"},{"map":"iso-ir-197"},{"map":"iso-ir-209"},{"map":"iso-ir-90"},{"map":"iso_10367-box"},{"map":"iso_10646"},{"map":"iso_11548-1"},{"map":"iso_2033-1983"},{"map":"iso_5427"},{"map":"iso_5427-ext"},{"map":"iso_5428"},{"map":"iso_646.basic"},{"map":"iso_646.irv"},{"map":"iso_6937"},{"map":"iso_6937-2-25"},{"map":"iso_6937-2-add"},{"map":"iso_8859-1,gl"},{"map":"iso_8859-supp"},{"map":"it"},{"map":"jis_c6220-1969-jp"},{"map":"jis_c6220-1969-ro"},{"map":"jis_c6229-1984-a"},{"map":"jis_c6229-1984-b"},{"map":"jis_c6229-1984-b-add"},{"map":"jis_c6229-1984-hand"},{"map":"jis_c6229-1984-hand-add"},{"map":"jis_c6229-1984-kana"},{"map":"jis_x0201"},{"map":"johab"},{"map":"jus_i.b1.002"},{"map":"jus_i.b1.003-mac"},{"map":"jus_i.b1.003-serb"},{"map":"koi-8"},{"map":"koi8-r"},{"map":"koi8-t"},{"map":"koi8-u"},{"map":"ks_c_5601"},{"map":"ks_c_5601-1987"},{"map":"ksc5636"},{"map":"latin-greek"},{"map":"latin-greek-1"},{"map":"mac-cyrillic"},{"map":"mac-is"},{"map":"mac-sami"},{"map":"mac-uk"},{"map":"macintosh"},{"map":"mik"},{"map":"msz_7795.3"},{"map":"nats-dano"},{"map":"nats-dano-add"},{"map":"nats-sefi"},{"map":"nats-sefi-add"},{"map":"nc_nc00-10"},{"map":"nextstep"},{"map":"nf_z_62-010"},{"map":"nf_z_62-010_1973"},{"map":"ns_4551-1"},{"map":"ns_4551-2"},{"map":"pt"},{"map":"pt154"},{"map":"pt2"},{"map":"rk1048"},{"map":"sami"},{"map":"sami-ws2"},{"map":"sen_850200_b"},{"map":"sen_850200_c"},{"map":"shift_jis"},{"map":"shift_jisx0213"},{"map":"t.101-g2"},{"map":"t.61-7bit"},{"map":"t.61-8bit"},{"map":"tcvn5712-1"},{"map":"tis-620"},{"map":"tscii"},{"map":"unicode-1-1-utf-7"},{"map":"us-ascii"},{"map":"utf-7"},{"map":"utf-8"},{"map":"utf-8-strict"},{"map":"videotex-suppl"},{"map":"viscii"},{"map":"windows-1251"},{"map":"windows-1252"},{"map":"windows-31j"}],"event":{"result":1}}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 15 May 2013 03:10:57 GMT
@@ -0,0 +1,188 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopswithdisk&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
6
+ body:
7
+ string: ""
8
+ headers:
9
+ User-Agent:
10
+ - Faraday v0.8.7
11
+ Accept:
12
+ - "*/*"
13
+ Authorization:
14
+ - WHM root:iscool
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Content-Type:
21
+ - text/plain; charset="utf-8"
22
+ X-Keep-Alive-Count:
23
+ - "1"
24
+ Keep-Alive:
25
+ - timeout=70, max=200
26
+ Connection:
27
+ - Keep-Alive
28
+ Content-Length:
29
+ - "2214"
30
+ Date:
31
+ - Fri, 03 May 2013 16:47:39 GMT
32
+ Server:
33
+ - cpsrvd/11.32.6.3
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"apiversion":2,"data":[{"domain":"lumberg-test.com","user":"account-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"account-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"account-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"disk-usage-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"disk-usage-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"disk-usage-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"filters-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"filters-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"filters-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"mail-dir-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"mail-dir-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"mail-dir-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"mail-dirs-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"mail-dirs-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"mail-dirs-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"test-account","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"test-account@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"test-account@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"}],"postevent":{"result":1},"func":"listpopswithdisk","module":"Email","preevent":{"result":1},"event":{"result":1}}}
37
+
38
+ http_version:
39
+ recorded_at: Fri, 03 May 2013 16:47:40 GMT
40
+ - request:
41
+ method: get
42
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpops&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
43
+ body:
44
+ string: ""
45
+ headers:
46
+ User-Agent:
47
+ - Faraday v0.8.7
48
+ Accept:
49
+ - "*/*"
50
+ Authorization:
51
+ - WHM root:iscool
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ Content-Type:
58
+ - text/plain; charset="utf-8"
59
+ X-Keep-Alive-Count:
60
+ - "1"
61
+ Keep-Alive:
62
+ - timeout=70, max=200
63
+ Connection:
64
+ - Keep-Alive
65
+ Content-Length:
66
+ - "695"
67
+ Date:
68
+ - Fri, 03 May 2013 16:47:40 GMT
69
+ Server:
70
+ - cpsrvd/11.32.6.3
71
+ body:
72
+ string: |
73
+ {"cpanelresult":{"event":{"result":1},"apiversion":2,"preevent":{"result":1},"data":[{"login":"filters-test@lumberg-test.com","email":"filters-test@lumberg-test.com"},{"login":"disk-usage-test@lumberg-test.com","email":"disk-usage-test@lumberg-test.com"},{"login":"account-test@lumberg-test.com","email":"account-test@lumberg-test.com"},{"login":"test-account@lumberg-test.com","email":"test-account@lumberg-test.com"},{"login":"mail-dir-test@lumberg-test.com","email":"mail-dir-test@lumberg-test.com"},{"login":"mail-dirs-test@lumberg-test.com","email":"mail-dirs-test@lumberg-test.com"},{"login":"Main Account","email":"lumberg"}],"func":"listpops","postevent":{"result":1},"module":"Email"}}
74
+
75
+ http_version:
76
+ recorded_at: Fri, 03 May 2013 16:47:41 GMT
77
+ - request:
78
+ method: get
79
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopswithimage&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
80
+ body:
81
+ string: ""
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.8.7
85
+ Accept:
86
+ - "*/*"
87
+ Authorization:
88
+ - WHM root:iscool
89
+ response:
90
+ status:
91
+ code: 200
92
+ message: OK
93
+ headers:
94
+ Content-Type:
95
+ - text/plain; charset="utf-8"
96
+ X-Keep-Alive-Count:
97
+ - "1"
98
+ Keep-Alive:
99
+ - timeout=70, max=200
100
+ Connection:
101
+ - Keep-Alive
102
+ Content-Length:
103
+ - "739"
104
+ Date:
105
+ - Fri, 03 May 2013 16:47:42 GMT
106
+ Server:
107
+ - cpsrvd/11.32.6.3
108
+ body:
109
+ string: |
110
+ {"cpanelresult":{"event":{"result":1},"module":"Email","data":[{"login":"disk-usage-test@lumberg-test.com","email":"disk-usage-test@lumberg-test.com"},{"login":"account-test@lumberg-test.com","email":"account-test@lumberg-test.com"},{"login":"mail-dirs-test@lumberg-test.com","email":"mail-dirs-test@lumberg-test.com"},{"login":"mail-dir-test@lumberg-test.com","email":"mail-dir-test@lumberg-test.com"},{"login":"filters-test@lumberg-test.com","email":"filters-test@lumberg-test.com"},{"login":"test-account@lumberg-test.com","email":"test-account@lumberg-test.com"},{"login":"<img src=\"/frontend/sa2/images/mainacct.jpg\">","email":"lumberg"}],"preevent":{"result":1},"func":"listpopswithimage","postevent":{"result":1},"apiversion":2}}
111
+
112
+ http_version:
113
+ recorded_at: Fri, 03 May 2013 16:47:42 GMT
114
+ - request:
115
+ method: get
116
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addpop&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=test-account&password=sauce&quota=0
117
+ body:
118
+ string: ""
119
+ headers:
120
+ User-Agent:
121
+ - Faraday v0.8.7
122
+ Accept:
123
+ - "*/*"
124
+ Authorization:
125
+ - WHM root:iscool
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: OK
130
+ headers:
131
+ Content-Type:
132
+ - text/plain; charset="utf-8"
133
+ X-Keep-Alive-Count:
134
+ - "1"
135
+ Keep-Alive:
136
+ - timeout=70, max=200
137
+ Connection:
138
+ - Keep-Alive
139
+ Content-Length:
140
+ - "296"
141
+ Date:
142
+ - Fri, 03 May 2013 16:47:42 GMT
143
+ Server:
144
+ - cpsrvd/11.32.6.3
145
+ body:
146
+ string: |
147
+ {"cpanelresult":{"data":[{"reason":"The account test-account@lumberg-test.com already exists!","result":0}],"func":"addpop","preevent":{"result":1},"event":{"result":1},"error":"The account test-account@lumberg-test.com already exists!","postevent":{"result":1},"module":"Email","apiversion":2}}
148
+
149
+ http_version:
150
+ recorded_at: Fri, 03 May 2013 16:47:43 GMT
151
+ - request:
152
+ method: get
153
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopssingle&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
154
+ body:
155
+ string: ""
156
+ headers:
157
+ User-Agent:
158
+ - Faraday v0.8.7
159
+ Accept:
160
+ - "*/*"
161
+ Authorization:
162
+ - WHM root:iscool
163
+ response:
164
+ status:
165
+ code: 200
166
+ message: OK
167
+ headers:
168
+ Content-Type:
169
+ - text/plain; charset="utf-8"
170
+ X-Keep-Alive-Count:
171
+ - "1"
172
+ Keep-Alive:
173
+ - timeout=70, max=200
174
+ Connection:
175
+ - Keep-Alive
176
+ Content-Length:
177
+ - "658"
178
+ Date:
179
+ - Fri, 03 May 2013 16:47:43 GMT
180
+ Server:
181
+ - cpsrvd/11.32.6.3
182
+ body:
183
+ string: |
184
+ {"cpanelresult":{"preevent":{"result":1},"event":{"result":1},"apiversion":2,"data":[{"login":"mail-dirs-test@lumberg-test.com","email":"mail-dirs-test@lumberg-test.com"},{"login":"account-test@lumberg-test.com","email":"account-test@lumberg-test.com"},{"login":"mail-dir-test@lumberg-test.com","email":"mail-dir-test@lumberg-test.com"},{"login":"filters-test@lumberg-test.com","email":"filters-test@lumberg-test.com"},{"login":"test-account@lumberg-test.com","email":"test-account@lumberg-test.com"},{"login":"disk-usage-test@lumberg-test.com","email":"disk-usage-test@lumberg-test.com"}],"postevent":{"result":1},"module":"Email","func":"listpopssingle"}}
185
+
186
+ http_version:
187
+ recorded_at: Fri, 03 May 2013 16:47:43 GMT
188
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,77 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addpop&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=account-test&password=magicpants&quota=0
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - Faraday v0.8.7
14
+ Authorization:
15
+ - WHM root:iscool
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 15 May 2013 03:15:33 GMT
23
+ Connection:
24
+ - Keep-Alive
25
+ Content-Length:
26
+ - "247"
27
+ Server:
28
+ - cpsrvd/11.36.0.4
29
+ Content-Type:
30
+ - application/json; charset="utf-8"
31
+ Keep-Alive:
32
+ - timeout=70, max=200
33
+ X-Keep-Alive-Count:
34
+ - "1"
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"event":{"result":1},"error":"The account account-test@lumberg-test.com already exists!","apiversion":2,"func":"addpop","data":[{"reason":"The account account-test@lumberg-test.com already exists!","result":0}],"module":"Email"}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 15 May 2013 03:10:52 GMT
41
+ - request:
42
+ method: get
43
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopswithdisk&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
44
+ body:
45
+ string: ""
46
+ headers:
47
+ Accept:
48
+ - "*/*"
49
+ User-Agent:
50
+ - Faraday v0.8.7
51
+ Authorization:
52
+ - WHM root:iscool
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Date:
59
+ - Wed, 15 May 2013 03:15:33 GMT
60
+ Connection:
61
+ - Keep-Alive
62
+ Content-Length:
63
+ - "563"
64
+ Server:
65
+ - cpsrvd/11.36.0.4
66
+ Content-Type:
67
+ - application/json; charset="utf-8"
68
+ Keep-Alive:
69
+ - timeout=70, max=200
70
+ X-Keep-Alive-Count:
71
+ - "1"
72
+ body:
73
+ string: |
74
+ {"cpanelresult":{"event":{"result":1},"apiversion":2,"func":"listpopswithdisk","data":[{"login":"account-test@lumberg-test.com","humandiskused":"None","diskusedpercent":0,"mtime":"1368587691","txtdiskquota":"unlimited","diskused":0,"domain":"lumberg-test.com","_diskused":"0","diskusedpercent20":0,"_diskquota":"0","diskquota":"unlimited","humandiskquota":"None","email":"account-test@lumberg-test.com","user":"account-test"}],"paginate":{"current_page":null,"total_results":null,"total_pages":null,"start_result":null,"results_per_page":null},"module":"Email"}}
75
+
76
+ http_version:
77
+ recorded_at: Wed, 15 May 2013 03:10:53 GMT
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addpop&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=filters-test&password=abcdefg&quota=0
6
+ body:
7
+ string: ""
8
+ headers:
9
+ User-Agent:
10
+ - Faraday v0.8.7
11
+ Accept:
12
+ - "*/*"
13
+ Authorization:
14
+ - WHM root:iscool
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Content-Type:
21
+ - text/plain; charset="utf-8"
22
+ X-Keep-Alive-Count:
23
+ - "1"
24
+ Keep-Alive:
25
+ - timeout=70, max=200
26
+ Connection:
27
+ - Keep-Alive
28
+ Content-Length:
29
+ - "296"
30
+ Date:
31
+ - Fri, 03 May 2013 16:48:00 GMT
32
+ Server:
33
+ - cpsrvd/11.32.6.3
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"apiversion":2,"module":"Email","preevent":{"result":1},"func":"addpop","data":[{"result":0,"reason":"The account filters-test@lumberg-test.com already exists!"}],"error":"The account filters-test@lumberg-test.com already exists!","postevent":{"result":1},"event":{"result":1}}}
37
+
38
+ http_version:
39
+ recorded_at: Fri, 03 May 2013 16:48:01 GMT
40
+ - request:
41
+ method: get
42
+ uri: https://myhost.com:2087/json-api/cpanel?account=filters-test@lumberg-test.com&action1=fail&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=storefilter&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&filtername=fail%20filter&match1=is&opt1=and&part1=$header_from:&val1=hi
43
+ body:
44
+ string: ""
45
+ headers:
46
+ User-Agent:
47
+ - Faraday v0.8.7
48
+ Accept:
49
+ - "*/*"
50
+ Authorization:
51
+ - WHM root:iscool
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ Content-Type:
58
+ - text/plain; charset="utf-8"
59
+ X-Keep-Alive-Count:
60
+ - "1"
61
+ Keep-Alive:
62
+ - timeout=70, max=200
63
+ Connection:
64
+ - Keep-Alive
65
+ Content-Length:
66
+ - "237"
67
+ Date:
68
+ - Fri, 03 May 2013 16:48:01 GMT
69
+ Server:
70
+ - cpsrvd/11.32.6.3
71
+ body:
72
+ string: |
73
+ {"cpanelresult":{"preevent":{"result":1},"event":{"result":1},"func":"storefilter","data":[{"error":0,"ok":1,"result":"Filter Saved.","account":"filters-test@lumberg-test.com"}],"postevent":{"result":1},"module":"Email","apiversion":2}}
74
+
75
+ http_version:
76
+ recorded_at: Fri, 03 May 2013 16:48:01 GMT
77
+ recorded_with: VCR 2.0.1