lumberg 1.0.1 → 2.0.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +8 -7
  3. data/LICENSE +1 -1
  4. data/README.md +130 -23
  5. data/Rakefile +3 -1
  6. data/lib/lumberg/config.rb +19 -0
  7. data/lib/lumberg/cpanel/addon_domain.rb +50 -0
  8. data/lib/lumberg/cpanel/backups.rb +16 -0
  9. data/lib/lumberg/cpanel/base.rb +56 -0
  10. data/lib/lumberg/cpanel/box_trapper.rb +18 -0
  11. data/lib/lumberg/cpanel/branding.rb +89 -0
  12. data/lib/lumberg/cpanel/contact.rb +38 -0
  13. data/lib/lumberg/cpanel/cron.rb +89 -0
  14. data/lib/lumberg/cpanel/dns_lookup.rb +23 -0
  15. data/lib/lumberg/cpanel/domain_keys.rb +37 -0
  16. data/lib/lumberg/cpanel/domain_lookup.rb +71 -0
  17. data/lib/lumberg/cpanel/email.rb +491 -0
  18. data/lib/lumberg/cpanel/file_manager.rb +146 -0
  19. data/lib/lumberg/cpanel/gpg.rb +36 -0
  20. data/lib/lumberg/cpanel/locale.rb +15 -0
  21. data/lib/lumberg/cpanel/mime.rb +34 -0
  22. data/lib/lumberg/cpanel/mysql.rb +66 -0
  23. data/lib/lumberg/cpanel/net.rb +28 -0
  24. data/lib/lumberg/cpanel/park.rb +58 -0
  25. data/lib/lumberg/cpanel/password.rb +52 -0
  26. data/lib/lumberg/cpanel/random_data.rb +25 -0
  27. data/lib/lumberg/cpanel/redirect.rb +44 -0
  28. data/lib/lumberg/cpanel/ssl.rb +206 -0
  29. data/lib/lumberg/cpanel/sub_domain.rb +61 -0
  30. data/lib/lumberg/cpanel/support.rb +29 -0
  31. data/lib/lumberg/cpanel/zone_edit.rb +134 -0
  32. data/lib/lumberg/cpanel.rb +29 -0
  33. data/lib/lumberg/format_whm.rb +125 -0
  34. data/lib/lumberg/version.rb +1 -1
  35. data/lib/lumberg/whm/account.rb +28 -105
  36. data/lib/lumberg/whm/base.rb +3 -7
  37. data/lib/lumberg/whm/cert.rb +76 -0
  38. data/lib/lumberg/whm/dns.rb +49 -77
  39. data/lib/lumberg/whm/reseller.rb +24 -117
  40. data/lib/lumberg/whm/server.rb +111 -230
  41. data/lib/lumberg/whm.rb +2 -1
  42. data/lib/lumberg.rb +34 -8
  43. data/lumberg.gemspec +7 -4
  44. data/spec/config_spec.rb +28 -0
  45. data/spec/cpanel/addon_domain_spec.rb +84 -0
  46. data/spec/cpanel/backups_spec.rb +22 -0
  47. data/spec/cpanel/base_spec.rb +128 -0
  48. data/spec/cpanel/box_trapper_spec.rb +22 -0
  49. data/spec/cpanel/branding_spec.rb +46 -0
  50. data/spec/cpanel/contact_spec.rb +50 -0
  51. data/spec/cpanel/cron_spec.rb +161 -0
  52. data/spec/cpanel/dns_lookup_spec.rb +22 -0
  53. data/spec/cpanel/domain_keys_spec.rb +46 -0
  54. data/spec/cpanel/domain_lookup_spec.rb +77 -0
  55. data/spec/cpanel/email_spec.rb +615 -0
  56. data/spec/cpanel/file_manager_spec.rb +73 -0
  57. data/spec/cpanel/gpg_spec.rb +48 -0
  58. data/spec/cpanel/locale_spec.rb +23 -0
  59. data/spec/cpanel/mime_spec.rb +0 -0
  60. data/spec/cpanel/mysql_spec.rb +0 -0
  61. data/spec/cpanel/net_spec.rb +30 -0
  62. data/spec/cpanel/park_spec.rb +94 -0
  63. data/spec/cpanel/password_spec.rb +35 -0
  64. data/spec/cpanel/random_data_spec.rb +24 -0
  65. data/spec/cpanel/redirect_spec.rb +0 -0
  66. data/spec/cpanel/ssl_spec.rb +148 -0
  67. data/spec/cpanel/sub_domain_spec.rb +72 -0
  68. data/spec/cpanel/support_spec.rb +38 -0
  69. data/spec/cpanel/zone_edit_spec.rb +0 -0
  70. data/spec/sample_certs/cpanel.crt +28 -0
  71. data/spec/sample_certs/cpanel.key +28 -0
  72. data/spec/sample_certs/main.crt +27 -0
  73. data/spec/sample_certs/sample.crt +26 -0
  74. data/spec/sample_certs/sample.key +27 -0
  75. data/spec/spec_helper.rb +9 -3
  76. data/spec/support/cpanel_matchers.rb +17 -0
  77. data/spec/vcr_cassettes/cpanel/addon_domain/add.yml +77 -0
  78. data/spec/vcr_cassettes/cpanel/addon_domain/list.yml +77 -0
  79. data/spec/vcr_cassettes/cpanel/addon_domain/remove.yml +77 -0
  80. data/spec/vcr_cassettes/cpanel/backups/list.yml +40 -0
  81. data/spec/vcr_cassettes/cpanel/box_trapper/list.yml +40 -0
  82. data/spec/vcr_cassettes/cpanel/branding/list_icons.yml +40 -0
  83. data/spec/vcr_cassettes/cpanel/branding/list_image_types.yml +40 -0
  84. data/spec/vcr_cassettes/cpanel/branding/list_object_types.yml +40 -0
  85. data/spec/vcr_cassettes/cpanel/branding/list_pkgs.yml +40 -0
  86. data/spec/vcr_cassettes/cpanel/branding/list_sprites.yml +40 -0
  87. data/spec/vcr_cassettes/cpanel/contact/show.yml +40 -0
  88. data/spec/vcr_cassettes/cpanel/contact/update.yml +40 -0
  89. data/spec/vcr_cassettes/cpanel/cron/add.yml +77 -0
  90. data/spec/vcr_cassettes/cpanel/cron/edit.yml +114 -0
  91. data/spec/vcr_cassettes/cpanel/cron/email.yml +77 -0
  92. data/spec/vcr_cassettes/cpanel/cron/list.yml +77 -0
  93. data/spec/vcr_cassettes/cpanel/cron/remove.yml +151 -0
  94. data/spec/vcr_cassettes/cpanel/cron/set_email.yml +77 -0
  95. data/spec/vcr_cassettes/cpanel/dns_lookup/name_to_ip.yml +40 -0
  96. data/spec/vcr_cassettes/cpanel/domain_keys/add.yml +40 -0
  97. data/spec/vcr_cassettes/cpanel/domain_keys/available.yml +40 -0
  98. data/spec/vcr_cassettes/cpanel/domain_keys/installed.yml +40 -0
  99. data/spec/vcr_cassettes/cpanel/domain_keys/remove.yml +40 -0
  100. data/spec/vcr_cassettes/cpanel/domain_lookup/count.yml +40 -0
  101. data/spec/vcr_cassettes/cpanel/domain_lookup/docroot.yml +40 -0
  102. data/spec/vcr_cassettes/cpanel/domain_lookup/docroots.yml +40 -0
  103. data/spec/vcr_cassettes/cpanel/domain_lookup/document_root.yml +40 -0
  104. data/spec/vcr_cassettes/cpanel/domain_lookup/document_roots.yml +40 -0
  105. data/spec/vcr_cassettes/cpanel/domain_lookup/list.yml +40 -0
  106. data/spec/vcr_cassettes/cpanel/email/acceptable_encodings.yml +40 -0
  107. data/spec/vcr_cassettes/cpanel/email/accounts.yml +188 -0
  108. data/spec/vcr_cassettes/cpanel/email/add_account.yml +77 -0
  109. data/spec/vcr_cassettes/cpanel/email/add_filter.yml +77 -0
  110. data/spec/vcr_cassettes/cpanel/email/add_forwarder.yml +77 -0
  111. data/spec/vcr_cassettes/cpanel/email/add_mailing_list.yml +73 -0
  112. data/spec/vcr_cassettes/cpanel/email/add_mx.yml +40 -0
  113. data/spec/vcr_cassettes/cpanel/email/change_mx.yml +40 -0
  114. data/spec/vcr_cassettes/cpanel/email/check_local_delivery_local.yml +77 -0
  115. data/spec/vcr_cassettes/cpanel/email/check_local_delivery_remote.yml +77 -0
  116. data/spec/vcr_cassettes/cpanel/email/default_address.yml +40 -0
  117. data/spec/vcr_cassettes/cpanel/email/delete_mx.yml +40 -0
  118. data/spec/vcr_cassettes/cpanel/email/disk_usage.yml +77 -0
  119. data/spec/vcr_cassettes/cpanel/email/domains.yml +40 -0
  120. data/spec/vcr_cassettes/cpanel/email/domains_with_aliases.yml +77 -0
  121. data/spec/vcr_cassettes/cpanel/email/edit_quota.yml +112 -0
  122. data/spec/vcr_cassettes/cpanel/email/filters.yml +114 -0
  123. data/spec/vcr_cassettes/cpanel/email/forwarders.yml +77 -0
  124. data/spec/vcr_cassettes/cpanel/email/mail_dir.yml +77 -0
  125. data/spec/vcr_cassettes/cpanel/email/mail_dirs.yml +77 -0
  126. data/spec/vcr_cassettes/cpanel/email/mailing_lists.yml +73 -0
  127. data/spec/vcr_cassettes/cpanel/email/main_discard.yml +40 -0
  128. data/spec/vcr_cassettes/cpanel/email/mx.yml +40 -0
  129. data/spec/vcr_cassettes/cpanel/email/remove.yml +77 -0
  130. data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_local.yml +77 -0
  131. data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_remote.yml +77 -0
  132. data/spec/vcr_cassettes/cpanel/email/set_mx_type.yml +40 -0
  133. data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +38 -0
  134. data/spec/vcr_cassettes/cpanel/file_manager/list.yml +38 -0
  135. data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +77 -0
  136. data/spec/vcr_cassettes/cpanel/file_manager/show.yml +40 -0
  137. data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +38 -0
  138. data/spec/vcr_cassettes/cpanel/gpg/count.yml +40 -0
  139. data/spec/vcr_cassettes/cpanel/gpg/count_private.yml +40 -0
  140. data/spec/vcr_cassettes/cpanel/gpg/list.yml +40 -0
  141. data/spec/vcr_cassettes/cpanel/gpg/list_private.yml +40 -0
  142. data/spec/vcr_cassettes/cpanel/locale/show.yml +40 -0
  143. data/spec/vcr_cassettes/cpanel/net/query_hostname.yml +40 -0
  144. data/spec/vcr_cassettes/cpanel/net/traceroute.yml +40 -0
  145. data/spec/vcr_cassettes/cpanel/park/add.yml +77 -0
  146. data/spec/vcr_cassettes/cpanel/park/list.yml +77 -0
  147. data/spec/vcr_cassettes/cpanel/park/list_addon_domains.yml +77 -0
  148. data/spec/vcr_cassettes/cpanel/park/remove.yml +77 -0
  149. data/spec/vcr_cassettes/cpanel/password/digest_authentication.yml +77 -0
  150. data/spec/vcr_cassettes/cpanel/password/modify.yml +77 -0
  151. data/spec/vcr_cassettes/cpanel/random_data/show.yml +40 -0
  152. data/spec/vcr_cassettes/cpanel/ssl/fetchcabundle.yml +40 -0
  153. data/spec/vcr_cassettes/cpanel/ssl/gencrt.yml +43 -0
  154. data/spec/vcr_cassettes/cpanel/ssl/gencsr.yml +43 -0
  155. data/spec/vcr_cassettes/cpanel/ssl/genkey.yml +40 -0
  156. data/spec/vcr_cassettes/cpanel/ssl/installssl.yml +40 -0
  157. data/spec/vcr_cassettes/cpanel/ssl/listcrts.yml +40 -0
  158. data/spec/vcr_cassettes/cpanel/ssl/listcsrs.yml +40 -0
  159. data/spec/vcr_cassettes/cpanel/ssl/listkeys.yml +40 -0
  160. data/spec/vcr_cassettes/cpanel/ssl/listsslitems.yml +40 -0
  161. data/spec/vcr_cassettes/cpanel/ssl/showcrt.yml +38 -0
  162. data/spec/vcr_cassettes/cpanel/ssl/showcsr.yml +38 -0
  163. data/spec/vcr_cassettes/cpanel/ssl/showkey.yml +38 -0
  164. data/spec/vcr_cassettes/cpanel/ssl/uploadcrt.yml +40 -0
  165. data/spec/vcr_cassettes/cpanel/sub_domain/add.yml +77 -0
  166. data/spec/vcr_cassettes/cpanel/sub_domain/list.yml +77 -0
  167. data/spec/vcr_cassettes/cpanel/sub_domain/remove.yml +77 -0
  168. data/spec/vcr_cassettes/cpanel/support/contactable.yml +40 -0
  169. data/spec/vcr_cassettes/whm/account/accountsummary.yml +41 -29
  170. data/spec/vcr_cassettes/whm/account/changepackage.yml +73 -43
  171. data/spec/vcr_cassettes/whm/account/createacct.yml +101 -31
  172. data/spec/vcr_cassettes/whm/account/domainuserdata.yml +43 -29
  173. data/spec/vcr_cassettes/whm/account/editquota.yml +78 -57
  174. data/spec/vcr_cassettes/whm/account/limitbw.yml +79 -57
  175. data/spec/vcr_cassettes/whm/account/listaccts.yml +195 -100
  176. data/spec/vcr_cassettes/whm/account/listsuspended.yml +41 -29
  177. data/spec/vcr_cassettes/whm/account/modifyacct.yml +61 -42
  178. data/spec/vcr_cassettes/whm/account/myprivs.yml +41 -29
  179. data/spec/vcr_cassettes/whm/account/passwd.yml +44 -29
  180. data/spec/vcr_cassettes/whm/account/removeacct.yml +134 -57
  181. data/spec/vcr_cassettes/whm/account/restoreaccount.yml +310 -135
  182. data/spec/vcr_cassettes/whm/account/setsiteip.yml +166 -127
  183. data/spec/vcr_cassettes/whm/account/suspend.yml +75 -43
  184. data/spec/vcr_cassettes/whm/account/unsuspend.yml +46 -29
  185. data/spec/vcr_cassettes/whm/cert/fetchsslinfo.yml +38 -0
  186. data/spec/vcr_cassettes/whm/cert/generatessl.yml +94 -0
  187. data/spec/vcr_cassettes/whm/cert/installssl.yml +38 -0
  188. data/spec/vcr_cassettes/whm/cert/listcrts.yml +38 -0
  189. data/spec/vcr_cassettes/whm/dns/adddns.yml +61 -43
  190. data/spec/vcr_cassettes/whm/dns/addzonerecord.yml +42 -29
  191. data/spec/vcr_cassettes/whm/dns/dumpzone.yml +44 -29
  192. data/spec/vcr_cassettes/whm/dns/editzonerecord.yml +61 -43
  193. data/spec/vcr_cassettes/whm/dns/getzonerecord.yml +60 -43
  194. data/spec/vcr_cassettes/whm/dns/killdns.yml +42 -29
  195. data/spec/vcr_cassettes/whm/dns/listmxs.yml +23 -15
  196. data/spec/vcr_cassettes/whm/dns/listzones.yml +22 -15
  197. data/spec/vcr_cassettes/whm/dns/lookupnsip.yml +40 -29
  198. data/spec/vcr_cassettes/whm/dns/removezonerecord.yml +61 -43
  199. data/spec/vcr_cassettes/whm/dns/resetzone.yml +42 -29
  200. data/spec/vcr_cassettes/whm/dns/resolvedomainname.yml +40 -29
  201. data/spec/vcr_cassettes/whm/dns/savemxs.yml +23 -15
  202. data/spec/vcr_cassettes/whm/reseller/acctcounts.yml +41 -29
  203. data/spec/vcr_cassettes/whm/reseller/listacls.yml +22 -15
  204. data/spec/vcr_cassettes/whm/reseller/listresellers.yml +22 -15
  205. data/spec/vcr_cassettes/whm/reseller/resellerstats.yml +42 -29
  206. data/spec/vcr_cassettes/whm/reseller/saveacllist.yml +76 -57
  207. data/spec/vcr_cassettes/whm/reseller/setacls.yml +40 -29
  208. data/spec/vcr_cassettes/whm/reseller/setresellerips.yml +42 -28
  209. data/spec/vcr_cassettes/whm/reseller/setresellerlimits.yml +41 -29
  210. data/spec/vcr_cassettes/whm/reseller/setresellermainip.yml +59 -43
  211. data/spec/vcr_cassettes/whm/reseller/setresellernameservers.yml +58 -43
  212. data/spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml +61 -43
  213. data/spec/vcr_cassettes/whm/reseller/setupreseller.yml +41 -29
  214. data/spec/vcr_cassettes/whm/reseller/suspendreseller.yml +75 -44
  215. data/spec/vcr_cassettes/whm/reseller/terminatereseller.yml +83 -46
  216. data/spec/vcr_cassettes/whm/reseller/unsetupreseller.yml +41 -29
  217. data/spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml +46 -29
  218. data/spec/vcr_cassettes/whm/server/addip.yml +24 -15
  219. data/spec/vcr_cassettes/whm/server/applist.yml +22 -15
  220. data/spec/vcr_cassettes/whm/server/delip.yml +23 -15
  221. data/spec/vcr_cassettes/whm/server/gethostname.yml +22 -15
  222. data/spec/vcr_cassettes/whm/server/getlanglist.yml +22 -15
  223. data/spec/vcr_cassettes/whm/server/gettweaksetting.yml +44 -0
  224. data/spec/vcr_cassettes/whm/server/listips.yml +22 -15
  225. data/spec/vcr_cassettes/whm/server/loadavg.yml +26 -19
  226. data/spec/vcr_cassettes/whm/server/my_function.yml +59 -43
  227. data/spec/vcr_cassettes/whm/server/nvget.yml +22 -15
  228. data/spec/vcr_cassettes/whm/server/nvset.yml +22 -15
  229. data/spec/vcr_cassettes/whm/server/reboot.yml +22 -15
  230. data/spec/vcr_cassettes/whm/server/sethostname.yml +24 -15
  231. data/spec/vcr_cassettes/whm/server/setresolvers.yml +23 -15
  232. data/spec/vcr_cassettes/whm/server/settweaksetting.yml +44 -0
  233. data/spec/vcr_cassettes/whm/server/showbw.yml +22 -15
  234. data/spec/vcr_cassettes/whm/server/systemloadavg.yml +40 -29
  235. data/spec/vcr_cassettes/whm/server/themes.yml +38 -0
  236. data/spec/vcr_cassettes/whm/server/version.yml +22 -15
  237. data/spec/whm/account_spec.rb +40 -199
  238. data/spec/whm/base_spec.rb +0 -4
  239. data/spec/whm/cert_spec.rb +99 -0
  240. data/spec/whm/dns_spec.rb +5 -123
  241. data/spec/whm/reseller_spec.rb +11 -79
  242. data/spec/whm/server_spec.rb +85 -142
  243. metadata +367 -47
  244. data/.rvmrc +0 -49
  245. data/lib/lumberg/whm/args.rb +0 -113
  246. data/lib/net_http_hacked.rb +0 -42
  247. data/spec/vcr_cassettes/whm/server/response_type.yml +0 -85
  248. data/spec/whm/args_spec.rb +0 -179
@@ -0,0 +1,48 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Gpg do
5
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:gpg) do
8
+ described_class.new(
9
+ :server => server,
10
+ :api_username => api_username
11
+ )
12
+ end
13
+
14
+ describe "#list" do
15
+ use_vcr_cassette "cpanel/gpg/list"
16
+
17
+ subject { gpg.list[:params][:data] }
18
+
19
+ it { should be_an(Array) }
20
+ end
21
+
22
+ describe "#count" do
23
+ use_vcr_cassette "cpanel/gpg/count"
24
+
25
+ subject { gpg.count[:params][:data][0][:count] }
26
+
27
+ it { should be_a(Integer) }
28
+ end
29
+
30
+ describe "#list_private" do
31
+ use_vcr_cassette "cpanel/gpg/list_private"
32
+
33
+ subject { gpg.list_private[:params][:data] }
34
+
35
+ it { should be_an(Array) }
36
+ end
37
+
38
+ describe "#count_private" do
39
+ use_vcr_cassette "cpanel/gpg/count_private"
40
+
41
+ subject { gpg.count_private[:params][:data][0][:count] }
42
+
43
+ it { should be_a(Integer) }
44
+ end
45
+
46
+ end
47
+ end
48
+
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Locale do
5
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:locale) do
8
+ described_class.new(
9
+ :server => server,
10
+ :api_username => api_username
11
+ )
12
+ end
13
+
14
+ describe "#show" do
15
+ use_vcr_cassette "cpanel/locale/show"
16
+
17
+ subject { locale.show[:params][:data][0][:encoding] }
18
+
19
+ it { should be_a(String) }
20
+ end
21
+ end
22
+ end
23
+
File without changes
File without changes
@@ -0,0 +1,30 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Net do
5
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:net) do
8
+ described_class.new(
9
+ :server => server,
10
+ :api_username => api_username
11
+ )
12
+ end
13
+
14
+ describe "#traceroute" do
15
+ use_vcr_cassette "cpanel/net/traceroute"
16
+
17
+ subject { net.traceroute[:params][:data] }
18
+
19
+ it { should be_an(Array) }
20
+ end
21
+
22
+ describe "#query_hostname" do
23
+ use_vcr_cassette "cpanel/net/query_hostname"
24
+
25
+ subject { net.query_hostname({ :host => 'google.com' })[:params][:data] }
26
+
27
+ it { should be_an(Array) }
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,94 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Park do
5
+ before(:each) do
6
+ @login = { :host => @whm_host, :hash => @whm_hash }
7
+ @server = Whm::Server.new(@login.dup)
8
+
9
+ @api_username = "lumberg"
10
+ @park = Cpanel::Park.new(
11
+ :server => @server.dup,
12
+ :api_username => @api_username
13
+ )
14
+ end
15
+
16
+ describe "#add" do
17
+ use_vcr_cassette "cpanel/park/add"
18
+
19
+ it "creates a new parked domain" do
20
+ # Remove first
21
+ @park.remove(:domain => "test-park.com")
22
+
23
+ result = @park.add(:domain => "test-park.com")
24
+ result[:params][:data].first[:result].should == 1
25
+ end
26
+ end
27
+
28
+ describe "#remove" do
29
+ use_vcr_cassette "cpanel/park/remove"
30
+
31
+ it "removes a parked domain" do
32
+ # Add first
33
+ @park.add(:domain => "test-park.com")
34
+
35
+ result = @park.remove(:domain => "test-park.com")
36
+ result[:params][:data].first[:result].should == 1
37
+ end
38
+ end
39
+
40
+ describe "#list" do
41
+ use_vcr_cassette "cpanel/park/list"
42
+
43
+ context "parked domains exist on the account" do
44
+ let(:result) { @park.list }
45
+ subject { result[:params][:data] }
46
+
47
+ it "returns an array with info for each parked domain" do
48
+ subject.should be_an(Array)
49
+ subject.each {|info|
50
+ info.keys.should include(
51
+ :status, :reldir, :dir, :basedir, :domain
52
+ )
53
+ }
54
+ end
55
+ end
56
+
57
+ context "no parked domains exist on the account" do
58
+ before { @park.api_username = "minimal" }
59
+ after { @park.api_username = "lumberg" }
60
+
61
+ it "returns an empty array" do
62
+ @park.list[:params][:data].should be_empty
63
+ end
64
+ end
65
+ end
66
+
67
+ describe "#list_addon_domains" do
68
+ use_vcr_cassette "cpanel/park/list_addon_domains"
69
+
70
+ context "addon domains exist on the account" do
71
+ let(:result) { @park.list_addon_domains }
72
+ subject { result[:params][:data] }
73
+
74
+ it "returns an array with info for each addon domain" do
75
+ subject.should be_an(Array)
76
+ subject.each {|info|
77
+ info.keys.should include(
78
+ :status, :reldir, :dir, :basedir, :domain
79
+ )
80
+ }
81
+ end
82
+ end
83
+
84
+ context "no addon domains exist on the account" do
85
+ before { @park.api_username = "minimal" }
86
+ after { @park.api_username = "lumberg" }
87
+
88
+ it "returns an empty array" do
89
+ @park.list_addon_domains[:params][:data].should be_empty
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,35 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Password do
5
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:password) do
8
+ described_class.new(
9
+ :server => server,
10
+ :api_username => api_username
11
+ )
12
+ end
13
+
14
+ let(:random_password) { "realtopsecretpassword" }
15
+
16
+ describe "#modify" do
17
+ use_vcr_cassette "cpanel/password/modify"
18
+
19
+ it "sets a new password for account" do
20
+ result = password.modify({ :old => '12345', :new => random_password })
21
+ result[:params][:data][0].should be_a(Hash)
22
+ end
23
+ end
24
+
25
+ describe "#digest_authentication" do
26
+ use_vcr_cassette "cpanel/password/digest_authentication"
27
+
28
+ it "enables digest authentication for account" do
29
+ result = password.digest_authentication({ :password => random_password, :enable => true })
30
+ result[:params][:data][0].should be_a(Hash)
31
+ end
32
+ end
33
+ end
34
+ end
35
+
@@ -0,0 +1,24 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::RandomData do
5
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:random_data) do
8
+ described_class.new(
9
+ :server => server,
10
+ :api_username => api_username
11
+ )
12
+ end
13
+
14
+ describe "#show" do
15
+ use_vcr_cassette "cpanel/random_data/show"
16
+
17
+ it "gets a random string" do
18
+ result = random_data.show({ :length => 10 })[:params][:data]
19
+ result[0][:random].size.should === 10
20
+ end
21
+ end
22
+
23
+ end
24
+ end
File without changes
@@ -0,0 +1,148 @@
1
+ require "spec_helper"
2
+
3
+
4
+ module Lumberg
5
+ describe Cpanel::Ssl do
6
+ let(:domain) { "lumberg-test.com" }
7
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
8
+ let(:api_username) { "lumberg" }
9
+
10
+ CP_CERT = File.read('./spec/sample_certs/cpanel.crt')
11
+ CP_KEY = File.read('./spec/sample_certs/cpanel.key')
12
+
13
+ let(:cert_params) do
14
+ {
15
+ :user => :api_username,
16
+ :city => "Chicago",
17
+ :company => "Initech",
18
+ :company_division => "TPS",
19
+ :country => "US",
20
+ :state => "IL",
21
+ :email => "lumberg@initech.com",
22
+ :host => domain,
23
+ :pass => "Tru3St0ry",
24
+ :key => CP_KEY
25
+ }
26
+ end
27
+
28
+ let(:ssl) do
29
+ described_class.new(
30
+ :server => server,
31
+ :api_username => api_username
32
+ )
33
+ end
34
+
35
+ describe "#installssl" do
36
+ use_vcr_cassette("cpanel/ssl/installssl")
37
+
38
+ it "installs a certificate for a cPanel account" do
39
+ ssl.installssl(:user => :api_username, :crt => CP_CERT,
40
+ :domain => domain, :key => CP_KEY)[:params][:data][0][:result].should eq(1)
41
+ end
42
+ end
43
+
44
+ describe "#listcsrs" do
45
+ use_vcr_cassette("cpanel/ssl/listcsrs")
46
+
47
+ it "prints the csrs for a cPanel account" do
48
+ ssl.listcsrs(:user => :api_username
49
+ )[:params][:data][0][:host].should == domain
50
+ end
51
+ end
52
+
53
+ describe "#showcsr" do
54
+ use_vcr_cassette("cpanel/ssl/showcsr")
55
+
56
+ it "prints the current csr for a domain" do
57
+ ssl.showcsr(:user => :api_username, :domain => domain, :textmode => 0
58
+ )[:params].to_s.should =~ /CERTIFICATE REQUEST/
59
+ end
60
+ end
61
+
62
+ describe "#showkey" do
63
+ use_vcr_cassette("cpanel/ssl/showkey")
64
+
65
+ it "prints the current key for a domain" do
66
+ ssl.showkey(:user => :api_username, :domain => domain, :textmode => 0
67
+ )[:params].to_s.should =~ /PRIVATE KEY/
68
+ end
69
+ end
70
+
71
+ describe "#showcrt" do
72
+ use_vcr_cassette("cpanel/ssl/showcrt")
73
+
74
+ it "prints the current cert for a domain" do
75
+ ssl.showcrt(:user => :api_username, :domain => domain, :textmode => 0
76
+ )[:params].to_s.should =~ /BEGIN CERTIFICATE/
77
+ end
78
+ end
79
+
80
+ describe "#listcrts" do
81
+ use_vcr_cassette("cpanel/ssl/listcrts")
82
+
83
+ it "lists the certs installed for an account " do
84
+ ssl.listcrts(:user => :api_username)[:params][:data][0][:ssltxt].to_s.should \
85
+ =~ /Certificate/
86
+ end
87
+ end
88
+
89
+ describe "#listkeys" do
90
+ use_vcr_cassette("cpanel/ssl/listkeys")
91
+
92
+ it "lists the keys installed for an account" do
93
+ ssl.listkeys(:user => :api_username)[:params][:data][0][:host].should == domain
94
+ end
95
+ end
96
+
97
+ describe "#fetchcabundle" do
98
+ use_vcr_cassette("cpanel/ssl/fetchcabundle")
99
+
100
+ it "fetches the CA bundle tied to the cert if any exist" do
101
+ ssl.listsslitems(:crt => CP_CERT)[:params][:event][:result].should eq(1)
102
+ end
103
+ end
104
+
105
+ describe "#listsslitems" do
106
+ use_vcr_cassette("cpanel/ssl/listsslitems")
107
+
108
+ it "lists keys for a domain" do
109
+ ssl.listsslitems(:domains => domain, :items => 'key')[:params][:data][0][:host].should \
110
+ == domain
111
+ end
112
+ end
113
+
114
+ describe "#gencsr" do
115
+ use_vcr_cassette "cpanel/ssl/gencsr"
116
+
117
+ it "generates a certificate signing request" do
118
+ ssl.gencsr(cert_params)[:params][:data][0][:result].should eq(1)
119
+ end
120
+ end
121
+
122
+ describe "#gencrt" do
123
+ use_vcr_cassette "cpanel/ssl/gencrt"
124
+
125
+ it "generates a certificate" do
126
+ ssl.gencrt(cert_params.merge(:key => CP_KEY))[:params][:data][0][:result].should eq(1)
127
+ end
128
+ end
129
+
130
+ describe "#genkey" do
131
+ use_vcr_cassette("cpanel/ssl/genkey")
132
+
133
+ it "generates a key" do
134
+ ssl.genkey(:user => api_username, :host => domain, :keysize => 2048
135
+ )[:params][:data][0][:result].should eq(1)
136
+ end
137
+ end
138
+
139
+ describe "#uploadcrt" do
140
+ use_vcr_cassette("cpanel/ssl/uploadcrt")
141
+
142
+ it "uploads a certificate " do
143
+ ssl.uploadcrt(:user => api_username, :crt => CP_CERT,
144
+ :host => domain)[:params][:data][0][:result].should eq(1)
145
+ end
146
+ end
147
+ end
148
+ end
@@ -0,0 +1,72 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::SubDomain do
5
+ before(:each) do
6
+ @login = { :host => @whm_host, :hash => @whm_hash }
7
+ @server = Whm::Server.new(@login.dup)
8
+
9
+ @api_username = "lumberg"
10
+ @subd = Cpanel::SubDomain.new(
11
+ :server => @server.dup,
12
+ :api_username => @api_username
13
+ )
14
+ end
15
+
16
+ describe "#list" do
17
+ use_vcr_cassette "cpanel/sub_domain/list"
18
+
19
+ context "subdomains exist on the account" do
20
+ let(:result) { @subd.list }
21
+ subject { result[:params][:data] }
22
+
23
+ it "returns an array with info for each subdomain" do
24
+ subject.should be_an(Array)
25
+ subject.each {|info|
26
+ info.keys.should include(
27
+ :domainkey, :status, :reldir, :dir, :subdomain,
28
+ :rootdomain, :domain, :basedir
29
+ )
30
+ }
31
+ end
32
+ end
33
+
34
+ context "subdomains do not exist on the account" do
35
+ before { @subd.api_username = "minimal" }
36
+ after { @subd.api_username = "lumberg" }
37
+
38
+ it "returns an empty array" do
39
+ @subd.list[:params][:data].should be_empty
40
+ end
41
+
42
+ end
43
+ end
44
+
45
+ describe "#remove" do
46
+ use_vcr_cassette "cpanel/sub_domain/remove"
47
+
48
+ it "removes a subdomain" do
49
+ # Add the subdomain first
50
+ @subd.add(:domain => "foo", :rootdomain => "lumberg-test.com")
51
+
52
+ result = @subd.remove(:domain => "foo.lumberg-test.com")
53
+ result[:params][:data][0][:result].should == 1
54
+ end
55
+ end
56
+
57
+ describe "#add" do
58
+ use_vcr_cassette "cpanel/sub_domain/add"
59
+
60
+ it "adds a subdomain" do
61
+ # Delete the subdomain first
62
+ @subd.remove(:domain => "sub.lumberg-test.com")
63
+
64
+ result = @subd.add(
65
+ :domain => "sub",
66
+ :rootdomain => "lumberg-test.com"
67
+ )
68
+ result[:params][:data][0][:result].should == 1
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,38 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Support do
5
+ let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:support) do
8
+ described_class.new(
9
+ :server => server,
10
+ :api_username => api_username
11
+ )
12
+ end
13
+
14
+ subject { support }
15
+
16
+ describe "::api_module" do
17
+ subject { described_class::api_module }
18
+
19
+ it { should == "Contactus" }
20
+ end
21
+
22
+ describe "#open_ticket" do
23
+ context "should open a new support request" do
24
+ pending
25
+ end
26
+ end
27
+
28
+ describe "#contactable" do
29
+ context "support option enabled" do
30
+ use_vcr_cassette("cpanel/support/contactable", :record => :new_episodes)
31
+
32
+ subject { support.contactable[:params][:data][0][:enabled] }
33
+
34
+ it { should == 1 }
35
+ end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