lumberg 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. data/.gitignore +9 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +98 -0
  6. data/LICENSE +20 -0
  7. data/README.md +178 -0
  8. data/Rakefile +49 -0
  9. data/lib/cacert.pem +3910 -0
  10. data/lib/lumberg.rb +23 -0
  11. data/lib/lumberg/exceptions.rb +6 -0
  12. data/lib/lumberg/version.rb +3 -0
  13. data/lib/lumberg/whm.rb +70 -0
  14. data/lib/lumberg/whm/account.rb +329 -0
  15. data/lib/lumberg/whm/args.rb +113 -0
  16. data/lib/lumberg/whm/base.rb +28 -0
  17. data/lib/lumberg/whm/dns.rb +205 -0
  18. data/lib/lumberg/whm/reseller.rb +268 -0
  19. data/lib/lumberg/whm/server.rb +290 -0
  20. data/lib/net_http_hacked.rb +42 -0
  21. data/lumberg.gemspec +28 -0
  22. data/spec/lumberg_spec.rb +9 -0
  23. data/spec/spec_helper.rb +33 -0
  24. data/spec/vcr_cassettes/whm/account/accountsummary.yml +43 -0
  25. data/spec/vcr_cassettes/whm/account/changepackage.yml +64 -0
  26. data/spec/vcr_cassettes/whm/account/createacct.yml +43 -0
  27. data/spec/vcr_cassettes/whm/account/domainuserdata.yml +43 -0
  28. data/spec/vcr_cassettes/whm/account/editquota.yml +85 -0
  29. data/spec/vcr_cassettes/whm/account/limitbw.yml +85 -0
  30. data/spec/vcr_cassettes/whm/account/listaccts.yml +147 -0
  31. data/spec/vcr_cassettes/whm/account/listsuspended.yml +43 -0
  32. data/spec/vcr_cassettes/whm/account/modifyacct.yml +63 -0
  33. data/spec/vcr_cassettes/whm/account/myprivs.yml +43 -0
  34. data/spec/vcr_cassettes/whm/account/passwd.yml +43 -0
  35. data/spec/vcr_cassettes/whm/account/removeacct.yml +85 -0
  36. data/spec/vcr_cassettes/whm/account/restoreaccount.yml +198 -0
  37. data/spec/vcr_cassettes/whm/account/setsiteip.yml +190 -0
  38. data/spec/vcr_cassettes/whm/account/suspend.yml +64 -0
  39. data/spec/vcr_cassettes/whm/account/unsuspend.yml +43 -0
  40. data/spec/vcr_cassettes/whm/dns/adddns.yml +64 -0
  41. data/spec/vcr_cassettes/whm/dns/addzonerecord.yml +43 -0
  42. data/spec/vcr_cassettes/whm/dns/dumpzone.yml +43 -0
  43. data/spec/vcr_cassettes/whm/dns/editzonerecord.yml +64 -0
  44. data/spec/vcr_cassettes/whm/dns/getzonerecord.yml +64 -0
  45. data/spec/vcr_cassettes/whm/dns/killdns.yml +43 -0
  46. data/spec/vcr_cassettes/whm/dns/listmxs.yml +22 -0
  47. data/spec/vcr_cassettes/whm/dns/listzones.yml +22 -0
  48. data/spec/vcr_cassettes/whm/dns/lookupnsip.yml +43 -0
  49. data/spec/vcr_cassettes/whm/dns/removezonerecord.yml +64 -0
  50. data/spec/vcr_cassettes/whm/dns/resetzone.yml +43 -0
  51. data/spec/vcr_cassettes/whm/dns/resolvedomainname.yml +43 -0
  52. data/spec/vcr_cassettes/whm/dns/savemxs.yml +22 -0
  53. data/spec/vcr_cassettes/whm/reseller/acctcounts.yml +43 -0
  54. data/spec/vcr_cassettes/whm/reseller/listacls.yml +22 -0
  55. data/spec/vcr_cassettes/whm/reseller/listresellers.yml +22 -0
  56. data/spec/vcr_cassettes/whm/reseller/resellerstats.yml +43 -0
  57. data/spec/vcr_cassettes/whm/reseller/saveacllist.yml +85 -0
  58. data/spec/vcr_cassettes/whm/reseller/setacls.yml +43 -0
  59. data/spec/vcr_cassettes/whm/reseller/setresellerips.yml +42 -0
  60. data/spec/vcr_cassettes/whm/reseller/setresellerlimits.yml +43 -0
  61. data/spec/vcr_cassettes/whm/reseller/setresellermainip.yml +64 -0
  62. data/spec/vcr_cassettes/whm/reseller/setresellernameservers.yml +64 -0
  63. data/spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml +64 -0
  64. data/spec/vcr_cassettes/whm/reseller/setupreseller.yml +43 -0
  65. data/spec/vcr_cassettes/whm/reseller/suspendreseller.yml +64 -0
  66. data/spec/vcr_cassettes/whm/reseller/terminatereseller.yml +64 -0
  67. data/spec/vcr_cassettes/whm/reseller/unsetupreseller.yml +43 -0
  68. data/spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml +43 -0
  69. data/spec/vcr_cassettes/whm/server/applist.yml +22 -0
  70. data/spec/vcr_cassettes/whm/server/gethostname.yml +22 -0
  71. data/spec/vcr_cassettes/whm/server/getlanglist.yml +22 -0
  72. data/spec/vcr_cassettes/whm/server/loadavg.yml +28 -0
  73. data/spec/vcr_cassettes/whm/server/my_function.yml +64 -0
  74. data/spec/vcr_cassettes/whm/server/response_type.yml +85 -0
  75. data/spec/vcr_cassettes/whm/server/systemloadavg.yml +43 -0
  76. data/spec/vcr_cassettes/whm/server/version.yml +22 -0
  77. data/spec/whm/account_spec.rb +577 -0
  78. data/spec/whm/args_spec.rb +179 -0
  79. data/spec/whm/base_spec.rb +28 -0
  80. data/spec/whm/dns_spec.rb +352 -0
  81. data/spec/whm/reseller_spec.rb +359 -0
  82. data/spec/whm/server_spec.rb +288 -0
  83. data/spec/whm/whm_spec.rb +41 -0
  84. metadata +265 -0
@@ -0,0 +1,190 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://myhost.com:2087/json-api/setsiteip?ip=192.1.2.3
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - WHM root:iscool
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ content-type:
16
+ - text/plain
17
+ server:
18
+ - cpsrvd/11.28.64
19
+ transfer-encoding:
20
+ - chunked
21
+ body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Cannot determine username\"}]}"
22
+ http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :get
26
+ uri: https://myhost.com:2087/json-api/setsiteip?ip=192.1.2.3&user=changeme
27
+ body:
28
+ headers:
29
+ authorization:
30
+ - WHM root:iscool
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ content-type:
37
+ - text/plain
38
+ server:
39
+ - cpsrvd/11.28.64
40
+ transfer-encoding:
41
+ - chunked
42
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
43
+ http_version: "1.1"
44
+ - !ruby/struct:VCR::HTTPInteraction
45
+ request: !ruby/struct:VCR::Request
46
+ method: :get
47
+ uri: https://myhost.com:2087/json-api/setsiteip?domain=example.com&ip=192.1.2.3
48
+ body:
49
+ headers:
50
+ authorization:
51
+ - WHM root:iscool
52
+ response: !ruby/struct:VCR::Response
53
+ status: !ruby/struct:VCR::ResponseStatus
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ content-type:
58
+ - text/plain
59
+ server:
60
+ - cpsrvd/11.28.64
61
+ transfer-encoding:
62
+ - chunked
63
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
64
+ http_version: "1.1"
65
+ - !ruby/struct:VCR::HTTPInteraction
66
+ request: !ruby/struct:VCR::Request
67
+ method: :get
68
+ uri: https://myhost.com:2087/json-api/setsiteip?ip=192.1.2.3&user=changeme
69
+ body:
70
+ headers:
71
+ authorization:
72
+ - WHM root:iscool
73
+ response: !ruby/struct:VCR::Response
74
+ status: !ruby/struct:VCR::ResponseStatus
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ server:
79
+ - cpsrvd/11.28.64
80
+ transfer-encoding:
81
+ - chunked
82
+ content-type:
83
+ - text/plain
84
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
85
+ http_version: "1.1"
86
+ - !ruby/struct:VCR::HTTPInteraction
87
+ request: !ruby/struct:VCR::Request
88
+ method: :get
89
+ uri: https://myhost.com:2087/json-api/setsiteip?domain=example.com&ip=192.1.2.3
90
+ body:
91
+ headers:
92
+ authorization:
93
+ - WHM root:iscool
94
+ response: !ruby/struct:VCR::Response
95
+ status: !ruby/struct:VCR::ResponseStatus
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ server:
100
+ - cpsrvd/11.28.64
101
+ transfer-encoding:
102
+ - chunked
103
+ content-type:
104
+ - text/plain
105
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
106
+ http_version: "1.1"
107
+ - !ruby/struct:VCR::HTTPInteraction
108
+ request: !ruby/struct:VCR::Request
109
+ method: :get
110
+ uri: https://myhost.com:2087/json-api/setsiteip?ip=192.1.2.3&user=changeme
111
+ body:
112
+ headers:
113
+ authorization:
114
+ - WHM root:iscool
115
+ response: !ruby/struct:VCR::Response
116
+ status: !ruby/struct:VCR::ResponseStatus
117
+ code: 200
118
+ message: OK
119
+ headers:
120
+ server:
121
+ - cpsrvd/11.28.64
122
+ transfer-encoding:
123
+ - chunked
124
+ content-type:
125
+ - text/plain
126
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
127
+ http_version: "1.1"
128
+ - !ruby/struct:VCR::HTTPInteraction
129
+ request: !ruby/struct:VCR::Request
130
+ method: :get
131
+ uri: https://myhost.com:2087/json-api/setsiteip?domain=example.com&ip=192.1.2.3
132
+ body:
133
+ headers:
134
+ authorization:
135
+ - WHM root:iscool
136
+ response: !ruby/struct:VCR::Response
137
+ status: !ruby/struct:VCR::ResponseStatus
138
+ code: 200
139
+ message: OK
140
+ headers:
141
+ server:
142
+ - cpsrvd/11.28.64
143
+ transfer-encoding:
144
+ - chunked
145
+ content-type:
146
+ - text/plain
147
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
148
+ http_version: "1.1"
149
+ - !ruby/struct:VCR::HTTPInteraction
150
+ request: !ruby/struct:VCR::Request
151
+ method: :get
152
+ uri: https://myhost.com:2087/json-api/setsiteip?ip=192.1.2.3&user=changeme
153
+ body:
154
+ headers:
155
+ authorization:
156
+ - WHM root:iscool
157
+ response: !ruby/struct:VCR::Response
158
+ status: !ruby/struct:VCR::ResponseStatus
159
+ code: 200
160
+ message: OK
161
+ headers:
162
+ server:
163
+ - cpsrvd/11.28.64
164
+ transfer-encoding:
165
+ - chunked
166
+ content-type:
167
+ - text/plain
168
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
169
+ http_version: "1.1"
170
+ - !ruby/struct:VCR::HTTPInteraction
171
+ request: !ruby/struct:VCR::Request
172
+ method: :get
173
+ uri: https://myhost.com:2087/json-api/setsiteip?domain=example.com&ip=192.1.2.3
174
+ body:
175
+ headers:
176
+ authorization:
177
+ - WHM root:iscool
178
+ response: !ruby/struct:VCR::Response
179
+ status: !ruby/struct:VCR::ResponseStatus
180
+ code: 200
181
+ message: OK
182
+ headers:
183
+ server:
184
+ - cpsrvd/11.28.64
185
+ transfer-encoding:
186
+ - chunked
187
+ content-type:
188
+ - text/plain
189
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"OK\"}]}"
190
+ http_version: "1.1"
@@ -0,0 +1,64 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://myhost.com:2087/json-api/suspendacct?user=notexists
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - WHM root:iscool
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ server:
16
+ - cpsrvd/11.28.64
17
+ transfer-encoding:
18
+ - chunked
19
+ content-type:
20
+ - text/plain
21
+ body: "{\"result\":[{\"status\":0,\"statusmsg\":\"_suspendacct called for a user that does not exist. ()\"}]}"
22
+ http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :get
26
+ uri: https://myhost.com:2087/json-api/suspendacct?user=suspendme
27
+ body:
28
+ headers:
29
+ authorization:
30
+ - WHM root:iscool
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ server:
37
+ - cpsrvd/11.28.64
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - text/plain
42
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"<script>if (self['clear_ui_status']) { clear_ui_status(); }</script>\\nChanging Shell to /bin/false...Changing shell for suspendme.\\nWarning: \\\"/bin/false\\\" is not listed in /etc/shells\\nShell changed.\\nDone\\nLocking Password...Locking password for user suspendme.\\npasswd: Success\\nDone\\nSuspending mysql users\\nNotification => notify@example.com via EMAIL [level => 3]\\nUsing Universal Quota Support (quota=0)\\nSuspended document root /home/suspendme/public_html\\nUsing Universal Quota Support (quota=0)\\nSuspending FTP accounts...\\nUpdating ftp passwords for suspendme\\nFtp password files updated.\\nFtp vhost passwords synced\\nsuspendme's account has been suspended\\n\"}]}"
43
+ http_version: "1.1"
44
+ - !ruby/struct:VCR::HTTPInteraction
45
+ request: !ruby/struct:VCR::Request
46
+ method: :get
47
+ uri: https://myhost.com:2087/json-api/suspendacct?reason=abusive+user&user=suspendme
48
+ body:
49
+ headers:
50
+ authorization:
51
+ - WHM root:iscool
52
+ response: !ruby/struct:VCR::Response
53
+ status: !ruby/struct:VCR::ResponseStatus
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ server:
58
+ - cpsrvd/11.28.64
59
+ transfer-encoding:
60
+ - chunked
61
+ content-type:
62
+ - text/plain
63
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"<script>if (self['clear_ui_status']) { clear_ui_status(); }</script>\\nChanging Shell to /bin/false...Changing shell for suspendme.\\nWarning: \\\"/bin/false\\\" is not listed in /etc/shells\\nShell changed.\\nDone\\nLocking Password...Locking password for user suspendme.\\npasswd: Success\\nDone\\nSuspending mysql users\\nNotification => notify@example.com via EMAIL [level => 3]\\nUsing Universal Quota Support (quota=0)\\nSuspended document root /home/suspendme/public_html\\nUsing Universal Quota Support (quota=0)\\nSuspending FTP accounts...\\nUpdating ftp passwords for suspendme\\nFtp password files updated.\\nFtp vhost passwords synced\\nsuspendme's account has been suspended\\n\"}]}"
64
+ http_version: "1.1"
@@ -0,0 +1,43 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://myhost.com:2087/json-api/unsuspendacct?user=notexists
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - WHM root:iscool
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ server:
16
+ - cpsrvd/11.28.64
17
+ transfer-encoding:
18
+ - chunked
19
+ content-type:
20
+ - text/plain
21
+ body: "{\"result\":[{\"status\":0,\"statusmsg\":\"_unsuspendacct called for a user that does not exist. (notexists)\"}]}"
22
+ http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :get
26
+ uri: https://myhost.com:2087/json-api/unsuspendacct?user=asdfasdf
27
+ body:
28
+ headers:
29
+ authorization:
30
+ - WHM root:iscool
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ server:
37
+ - cpsrvd/11.28.64
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - text/plain
42
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"<script>if (self['clear_ui_status']) { clear_ui_status(); }</script>\\nChanging shell for asdfasdf.\\nShell changed.\\nUnlocking password for user asdfasdf.\\npasswd: Success.\\nUnsuspending FTP accounts...\\nUpdating ftp passwords for asdfasdf\\nFtp password files updated.\\nFtp vhost passwords synced\\nasdfasdf's account is now active\\nUnsuspending mysql users\\nNotification => notify@example.com via EMAIL [level => 3]\\n\"}]}"
43
+ http_version: "1.1"
@@ -0,0 +1,64 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://myhost.com:2087/json-api/adddns?domain=example.com&ip=192.1.2.3&trueowner=something
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - WHM root:iscool
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ server:
16
+ - cpsrvd/11.28.64
17
+ transfer-encoding:
18
+ - chunked
19
+ content-type:
20
+ - text/plain
21
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Added example.com ok belonging to user something\"}]}"
22
+ http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :get
26
+ uri: https://myhost.com:2087/json-api/adddns?domain=example.com&ip=192.1.2.3
27
+ body:
28
+ headers:
29
+ authorization:
30
+ - WHM root:iscool
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ server:
37
+ - cpsrvd/11.28.64
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - text/plain
42
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Added example.com ok belonging to user root\"}]}"
43
+ http_version: "1.1"
44
+ - !ruby/struct:VCR::HTTPInteraction
45
+ request: !ruby/struct:VCR::Request
46
+ method: :get
47
+ uri: https://myhost.com:2087/json-api/adddns?domain=example.com&ip=192.1.2.3&trueowner=something
48
+ body:
49
+ headers:
50
+ authorization:
51
+ - WHM root:iscool
52
+ response: !ruby/struct:VCR::Response
53
+ status: !ruby/struct:VCR::ResponseStatus
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ server:
58
+ - cpsrvd/11.28.64
59
+ transfer-encoding:
60
+ - chunked
61
+ content-type:
62
+ - text/plain
63
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Added example.com ok belonging to user something\"}]}"
64
+ http_version: "1.1"
@@ -0,0 +1,43 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://myhost.com:2087/json-api/addzonerecord?address=192.1.2.3&name=example.com.&type=A&zone=example.com
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - WHM root:iscool
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ server:
16
+ - cpsrvd/11.28.64
17
+ transfer-encoding:
18
+ - chunked
19
+ content-type:
20
+ - text/plain
21
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Bind reloading on shared-server using rndc zone: [example.com]\"}]}"
22
+ http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :get
26
+ uri: https://myhost.com:2087/json-api/addzonerecord?name=1&ptdrname=example.com&type=PTR&zone=example.com
27
+ body:
28
+ headers:
29
+ authorization:
30
+ - WHM root:iscool
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ server:
37
+ - cpsrvd/11.28.64
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - text/plain
42
+ body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Bind reloading on myhost using rndc zone: [example.com]\"}]}"
43
+ http_version: "1.1"
@@ -0,0 +1,43 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://myhost.com:2087/json-api/dumpzone?domain=notexists.com
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - WHM root:iscool
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ server:
16
+ - cpsrvd/11.28.64
17
+ transfer-encoding:
18
+ - chunked
19
+ content-type:
20
+ - text/plain
21
+ body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Zone does not exist.\"}]}"
22
+ http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :get
26
+ uri: https://myhost.com:2087/json-api/dumpzone?domain=example.com
27
+ body:
28
+ headers:
29
+ authorization:
30
+ - WHM root:iscool
31
+ response: !ruby/struct:VCR::Response
32
+ status: !ruby/struct:VCR::ResponseStatus
33
+ code: 200
34
+ message: OK
35
+ headers:
36
+ server:
37
+ - cpsrvd/11.28.64
38
+ transfer-encoding:
39
+ - chunked
40
+ content-type:
41
+ - text/plain
42
+ body: "{\"result\":[{\"status\":1,\"record\":[{\"Line\":1,\"raw\":\"; cPanel first:11.25.0-STABLE_44718 latest:11.28.64-STABLE_51024 Cpanel::ZoneFile::VERSION:1.3 mtime:1299509628 hostname:myhost.site5.com\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":2,\"raw\":\"; Zone file for example.com\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":3,\"ttl\":\"14400\",\"type\":\"$TTL\",\"name\":\"\"},{\"serial\":\"2011030706\",\"minimum\":\"86400\",\"rname\":\"notifications.examplesystems.com\",\"refresh\":\"86400\",\"Lines\":7,\"name\":\"example.com.\",\"Line\":4,\"retry\":\"7200\",\"ttl\":\"86400\",\"class\":\"IN\",\"mname\":\"ns1-myhost.site5.com\",\"type\":\"SOA\",\"expire\":\"3600000\"},{\"Line\":11,\"raw\":\"\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":12,\"nsdname\":\"ns1-myhost.site5.com\",\"ttl\":\"86400\",\"class\":\"IN\",\"type\":\"NS\",\"name\":\"example.com.\"},{\"Line\":13,\"nsdname\":\"ns2-myhost.site5.com\",\"ttl\":\"86400\",\"class\":\"IN\",\"type\":\"NS\",\"name\":\"example.com.\"},{\"Line\":14,\"raw\":\"\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":15,\"raw\":\"\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":16,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"example.com.\"},{\"Line\":17,\"raw\":\"\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":18,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"localhost.example.com.\"},{\"Line\":19,\"raw\":\"\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":20,\"ttl\":\"14400\",\"class\":\"IN\",\"preference\":\"0\",\"exchange\":\"example.com\",\"type\":\"MX\",\"name\":\"example.com.\"},{\"Line\":21,\"raw\":\"\",\"ttl\":\"86400\",\"type\":\":RAW\",\"name\":\"\"},{\"Line\":22,\"cname\":\"example.com\",\"ttl\":\"14400\",\"class\":\"IN\",\"type\":\"CNAME\",\"name\":\"mail.example.com.\"},{\"Line\":23,\"cname\":\"example.com\",\"ttl\":\"14400\",\"class\":\"IN\",\"type\":\"CNAME\",\"name\":\"www.example.com.\"},{\"Line\":24,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"ftp.example.com.\"},{\"Line\":25,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"cpanel.example.com.\"},{\"Line\":26,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"whm.example.com.\"},{\"Line\":27,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"webmail.example.com.\"},{\"Line\":28,\"ttl\":\"14400\",\"address\":\"192.1.2.3\",\"class\":\"IN\",\"type\":\"A\",\"name\":\"webdisk.example.com.\"}],\"statusmsg\":\"Zone Serialized\"}]}"
43
+ http_version: "1.1"