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.
- checksums.yaml +7 -0
- data/.travis.yml +8 -7
- data/LICENSE +1 -1
- data/README.md +130 -23
- data/Rakefile +3 -1
- data/lib/lumberg/config.rb +19 -0
- data/lib/lumberg/cpanel/addon_domain.rb +50 -0
- data/lib/lumberg/cpanel/backups.rb +16 -0
- data/lib/lumberg/cpanel/base.rb +56 -0
- data/lib/lumberg/cpanel/box_trapper.rb +18 -0
- data/lib/lumberg/cpanel/branding.rb +89 -0
- data/lib/lumberg/cpanel/contact.rb +38 -0
- data/lib/lumberg/cpanel/cron.rb +89 -0
- data/lib/lumberg/cpanel/dns_lookup.rb +23 -0
- data/lib/lumberg/cpanel/domain_keys.rb +37 -0
- data/lib/lumberg/cpanel/domain_lookup.rb +71 -0
- data/lib/lumberg/cpanel/email.rb +491 -0
- data/lib/lumberg/cpanel/file_manager.rb +146 -0
- data/lib/lumberg/cpanel/gpg.rb +36 -0
- data/lib/lumberg/cpanel/locale.rb +15 -0
- data/lib/lumberg/cpanel/mime.rb +34 -0
- data/lib/lumberg/cpanel/mysql.rb +66 -0
- data/lib/lumberg/cpanel/net.rb +28 -0
- data/lib/lumberg/cpanel/park.rb +58 -0
- data/lib/lumberg/cpanel/password.rb +52 -0
- data/lib/lumberg/cpanel/random_data.rb +25 -0
- data/lib/lumberg/cpanel/redirect.rb +44 -0
- data/lib/lumberg/cpanel/ssl.rb +206 -0
- data/lib/lumberg/cpanel/sub_domain.rb +61 -0
- data/lib/lumberg/cpanel/support.rb +29 -0
- data/lib/lumberg/cpanel/zone_edit.rb +134 -0
- data/lib/lumberg/cpanel.rb +29 -0
- data/lib/lumberg/format_whm.rb +125 -0
- data/lib/lumberg/version.rb +1 -1
- data/lib/lumberg/whm/account.rb +28 -105
- data/lib/lumberg/whm/base.rb +3 -7
- data/lib/lumberg/whm/cert.rb +76 -0
- data/lib/lumberg/whm/dns.rb +49 -77
- data/lib/lumberg/whm/reseller.rb +24 -117
- data/lib/lumberg/whm/server.rb +111 -230
- data/lib/lumberg/whm.rb +2 -1
- data/lib/lumberg.rb +34 -8
- data/lumberg.gemspec +7 -4
- data/spec/config_spec.rb +28 -0
- data/spec/cpanel/addon_domain_spec.rb +84 -0
- data/spec/cpanel/backups_spec.rb +22 -0
- data/spec/cpanel/base_spec.rb +128 -0
- data/spec/cpanel/box_trapper_spec.rb +22 -0
- data/spec/cpanel/branding_spec.rb +46 -0
- data/spec/cpanel/contact_spec.rb +50 -0
- data/spec/cpanel/cron_spec.rb +161 -0
- data/spec/cpanel/dns_lookup_spec.rb +22 -0
- data/spec/cpanel/domain_keys_spec.rb +46 -0
- data/spec/cpanel/domain_lookup_spec.rb +77 -0
- data/spec/cpanel/email_spec.rb +615 -0
- data/spec/cpanel/file_manager_spec.rb +73 -0
- data/spec/cpanel/gpg_spec.rb +48 -0
- data/spec/cpanel/locale_spec.rb +23 -0
- data/spec/cpanel/mime_spec.rb +0 -0
- data/spec/cpanel/mysql_spec.rb +0 -0
- data/spec/cpanel/net_spec.rb +30 -0
- data/spec/cpanel/park_spec.rb +94 -0
- data/spec/cpanel/password_spec.rb +35 -0
- data/spec/cpanel/random_data_spec.rb +24 -0
- data/spec/cpanel/redirect_spec.rb +0 -0
- data/spec/cpanel/ssl_spec.rb +148 -0
- data/spec/cpanel/sub_domain_spec.rb +72 -0
- data/spec/cpanel/support_spec.rb +38 -0
- data/spec/cpanel/zone_edit_spec.rb +0 -0
- data/spec/sample_certs/cpanel.crt +28 -0
- data/spec/sample_certs/cpanel.key +28 -0
- data/spec/sample_certs/main.crt +27 -0
- data/spec/sample_certs/sample.crt +26 -0
- data/spec/sample_certs/sample.key +27 -0
- data/spec/spec_helper.rb +9 -3
- data/spec/support/cpanel_matchers.rb +17 -0
- data/spec/vcr_cassettes/cpanel/addon_domain/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/addon_domain/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/addon_domain/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/backups/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/box_trapper/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_icons.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_image_types.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_object_types.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_pkgs.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_sprites.yml +40 -0
- data/spec/vcr_cassettes/cpanel/contact/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/contact/update.yml +40 -0
- data/spec/vcr_cassettes/cpanel/cron/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/cron/edit.yml +114 -0
- data/spec/vcr_cassettes/cpanel/cron/email.yml +77 -0
- data/spec/vcr_cassettes/cpanel/cron/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/cron/remove.yml +151 -0
- data/spec/vcr_cassettes/cpanel/cron/set_email.yml +77 -0
- data/spec/vcr_cassettes/cpanel/dns_lookup/name_to_ip.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/add.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/available.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/installed.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/remove.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/count.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/docroot.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/docroots.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/document_root.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/document_roots.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/acceptable_encodings.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/accounts.yml +188 -0
- data/spec/vcr_cassettes/cpanel/email/add_account.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/add_filter.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/add_forwarder.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/add_mailing_list.yml +73 -0
- data/spec/vcr_cassettes/cpanel/email/add_mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/change_mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/check_local_delivery_local.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/check_local_delivery_remote.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/default_address.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/delete_mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/disk_usage.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/domains.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/domains_with_aliases.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/edit_quota.yml +112 -0
- data/spec/vcr_cassettes/cpanel/email/filters.yml +114 -0
- data/spec/vcr_cassettes/cpanel/email/forwarders.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/mail_dir.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/mail_dirs.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/mailing_lists.yml +73 -0
- data/spec/vcr_cassettes/cpanel/email/main_discard.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_local.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_remote.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/set_mx_type.yml +40 -0
- data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +38 -0
- data/spec/vcr_cassettes/cpanel/file_manager/list.yml +38 -0
- data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +77 -0
- data/spec/vcr_cassettes/cpanel/file_manager/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +38 -0
- data/spec/vcr_cassettes/cpanel/gpg/count.yml +40 -0
- data/spec/vcr_cassettes/cpanel/gpg/count_private.yml +40 -0
- data/spec/vcr_cassettes/cpanel/gpg/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/gpg/list_private.yml +40 -0
- data/spec/vcr_cassettes/cpanel/locale/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/net/query_hostname.yml +40 -0
- data/spec/vcr_cassettes/cpanel/net/traceroute.yml +40 -0
- data/spec/vcr_cassettes/cpanel/park/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/park/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/park/list_addon_domains.yml +77 -0
- data/spec/vcr_cassettes/cpanel/park/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/password/digest_authentication.yml +77 -0
- data/spec/vcr_cassettes/cpanel/password/modify.yml +77 -0
- data/spec/vcr_cassettes/cpanel/random_data/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/fetchcabundle.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/gencrt.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ssl/gencsr.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ssl/genkey.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/installssl.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listcrts.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listcsrs.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listkeys.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listsslitems.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/showcrt.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ssl/showcsr.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ssl/showkey.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ssl/uploadcrt.yml +40 -0
- data/spec/vcr_cassettes/cpanel/sub_domain/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/sub_domain/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/sub_domain/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/support/contactable.yml +40 -0
- data/spec/vcr_cassettes/whm/account/accountsummary.yml +41 -29
- data/spec/vcr_cassettes/whm/account/changepackage.yml +73 -43
- data/spec/vcr_cassettes/whm/account/createacct.yml +101 -31
- data/spec/vcr_cassettes/whm/account/domainuserdata.yml +43 -29
- data/spec/vcr_cassettes/whm/account/editquota.yml +78 -57
- data/spec/vcr_cassettes/whm/account/limitbw.yml +79 -57
- data/spec/vcr_cassettes/whm/account/listaccts.yml +195 -100
- data/spec/vcr_cassettes/whm/account/listsuspended.yml +41 -29
- data/spec/vcr_cassettes/whm/account/modifyacct.yml +61 -42
- data/spec/vcr_cassettes/whm/account/myprivs.yml +41 -29
- data/spec/vcr_cassettes/whm/account/passwd.yml +44 -29
- data/spec/vcr_cassettes/whm/account/removeacct.yml +134 -57
- data/spec/vcr_cassettes/whm/account/restoreaccount.yml +310 -135
- data/spec/vcr_cassettes/whm/account/setsiteip.yml +166 -127
- data/spec/vcr_cassettes/whm/account/suspend.yml +75 -43
- data/spec/vcr_cassettes/whm/account/unsuspend.yml +46 -29
- data/spec/vcr_cassettes/whm/cert/fetchsslinfo.yml +38 -0
- data/spec/vcr_cassettes/whm/cert/generatessl.yml +94 -0
- data/spec/vcr_cassettes/whm/cert/installssl.yml +38 -0
- data/spec/vcr_cassettes/whm/cert/listcrts.yml +38 -0
- data/spec/vcr_cassettes/whm/dns/adddns.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/addzonerecord.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/dumpzone.yml +44 -29
- data/spec/vcr_cassettes/whm/dns/editzonerecord.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/getzonerecord.yml +60 -43
- data/spec/vcr_cassettes/whm/dns/killdns.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/listmxs.yml +23 -15
- data/spec/vcr_cassettes/whm/dns/listzones.yml +22 -15
- data/spec/vcr_cassettes/whm/dns/lookupnsip.yml +40 -29
- data/spec/vcr_cassettes/whm/dns/removezonerecord.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/resetzone.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/resolvedomainname.yml +40 -29
- data/spec/vcr_cassettes/whm/dns/savemxs.yml +23 -15
- data/spec/vcr_cassettes/whm/reseller/acctcounts.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/listacls.yml +22 -15
- data/spec/vcr_cassettes/whm/reseller/listresellers.yml +22 -15
- data/spec/vcr_cassettes/whm/reseller/resellerstats.yml +42 -29
- data/spec/vcr_cassettes/whm/reseller/saveacllist.yml +76 -57
- data/spec/vcr_cassettes/whm/reseller/setacls.yml +40 -29
- data/spec/vcr_cassettes/whm/reseller/setresellerips.yml +42 -28
- data/spec/vcr_cassettes/whm/reseller/setresellerlimits.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/setresellermainip.yml +59 -43
- data/spec/vcr_cassettes/whm/reseller/setresellernameservers.yml +58 -43
- data/spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml +61 -43
- data/spec/vcr_cassettes/whm/reseller/setupreseller.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/suspendreseller.yml +75 -44
- data/spec/vcr_cassettes/whm/reseller/terminatereseller.yml +83 -46
- data/spec/vcr_cassettes/whm/reseller/unsetupreseller.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml +46 -29
- data/spec/vcr_cassettes/whm/server/addip.yml +24 -15
- data/spec/vcr_cassettes/whm/server/applist.yml +22 -15
- data/spec/vcr_cassettes/whm/server/delip.yml +23 -15
- data/spec/vcr_cassettes/whm/server/gethostname.yml +22 -15
- data/spec/vcr_cassettes/whm/server/getlanglist.yml +22 -15
- data/spec/vcr_cassettes/whm/server/gettweaksetting.yml +44 -0
- data/spec/vcr_cassettes/whm/server/listips.yml +22 -15
- data/spec/vcr_cassettes/whm/server/loadavg.yml +26 -19
- data/spec/vcr_cassettes/whm/server/my_function.yml +59 -43
- data/spec/vcr_cassettes/whm/server/nvget.yml +22 -15
- data/spec/vcr_cassettes/whm/server/nvset.yml +22 -15
- data/spec/vcr_cassettes/whm/server/reboot.yml +22 -15
- data/spec/vcr_cassettes/whm/server/sethostname.yml +24 -15
- data/spec/vcr_cassettes/whm/server/setresolvers.yml +23 -15
- data/spec/vcr_cassettes/whm/server/settweaksetting.yml +44 -0
- data/spec/vcr_cassettes/whm/server/showbw.yml +22 -15
- data/spec/vcr_cassettes/whm/server/systemloadavg.yml +40 -29
- data/spec/vcr_cassettes/whm/server/themes.yml +38 -0
- data/spec/vcr_cassettes/whm/server/version.yml +22 -15
- data/spec/whm/account_spec.rb +40 -199
- data/spec/whm/base_spec.rb +0 -4
- data/spec/whm/cert_spec.rb +99 -0
- data/spec/whm/dns_spec.rb +5 -123
- data/spec/whm/reseller_spec.rb +11 -79
- data/spec/whm/server_spec.rb +85 -142
- metadata +367 -47
- data/.rvmrc +0 -49
- data/lib/lumberg/whm/args.rb +0 -113
- data/lib/net_http_hacked.rb +0 -42
- data/spec/vcr_cassettes/whm/server/response_type.yml +0 -85
- data/spec/whm/args_spec.rb +0 -179
@@ -0,0 +1,94 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/generatessl?city=houston&co=Company&cod=Dept&country=US&email=test@myhost.com&host=myhost.com&noemail=1&pass=abc123&state=TX&xemail=
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.8
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- cpsrvd/11.36.0.4
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Date:
|
34
|
+
- Mon, 30 Sep 2013 17:23:25 GMT
|
35
|
+
Content-Type:
|
36
|
+
- application/json
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"results":{"keyfile":"/etc/ssl/private/myhost.com.key","key":"-----BEGIN
|
40
|
+
RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAry12Tc5QYp+Po8GqJGElloBHHyisMbbvpgJIfdekCkhiPlwU\n8Fe+VTE6vfZnVeQcojSuoK1tLJ4mErjs3j+TxCIYpIGB4A2BC8ifCgUuG+cLWqCz\nZ2Gh0YdZebrP1cgJAwE4VSz0w5xpLrxxoh26mHH15yXPlHtERcH4mwaEth4O9sAi\nCpOmt/Xbhmfv46sqyc7GdRHduQFc7J3P0SsEcpuliSkGIWeBpfEd8HX4/dr2rPTr\n5mrialS9J1iXBUl4Hdr//hMU8nHGdcyqDfvcUoL4SpprS6p8bag7Fziv6+Qf536C\nSRBuBabqCEKkVzCbjQfFiCFSOoeQaVBput8FfQIDAQABAoIBABGOVNTnYFcB9rtK\npWqP8dxrbrVItjklRE82210BR4dgSbhGMjMEGCchj+mJ0EFjYxs+fGHN/6sBDn/B\n2LtNU9nMMPwLnqB9ufkcWhP/AOf698BVaqVpu3XsQqNYfYvHSF/st2CR6NXRzxjH\n+fttT04H3cUUnQEceXMkRW4D8TjvD8dlVO8ST9AumzGTYe1cJtNqPAksUF0OpHlD\n2wAsUSTTCECAEiQGiUtioKor/ZhszHf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AlVTMQswCQYDVQQIEwJUWDEQMA4GA1UEBxMHaG91c3RvbjEQMA4GA1UEChMH\nQ29tcGFueTENMAsGA1UECxMERGVwdDETMBEGA1UEAxMKbXlob3N0LmNvbTEeMBwG\nCSqGSIb3DQEJARYPdGVzdEBteWhvc3QuY29tggkA7zRCmZ3R3XwwDAYDVR0TBAUw\nAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAcxEf/OwotN/yJPduIW/SVemOJAHkACKd\nqswP6cefiiHwAuPWB2ZTS4qncqgodgSAt22TKKNtX60RDZ2qhE0YdtTb0OIyn1kP\nK0zp/YgjU+ifucXhTtmGXim0Gy2BKeWijsthe+d4OJz0z9fWzwu6jbz7+xQqAkHj\n2W3zMjsq8ZqGk0FUJeF3DIIfd+w/U+bUDG8zQ3Iranx3Co923s49jihCyUMyH45w\nyiQz0oaDTUmi+2soJXgw+jqPubMuKAtxcXK6A+6ybkaub5LxTtKSFHzuKg2TtiXn\n4asc4y276ANpgprjZu7BIR/HILkvlKlIvm/DHgIaQkirlldvMOfHig==\n-----END
|
45
|
+
CERTIFICATE-----\n","statusmsg":"Key, Certificate, and CSR generated OK","message":"Key,
|
46
|
+
Certificate, and CSR generated OK","csrfile":"/etc/ssl/certs/myhost.com.csr"}}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 30 Sep 2013 17:21:28 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: https://myhost.com:2087/json-api/generatessl?city=houston&co=Foo%20%26%20Bar&cod=Dept&country=US&email=test@myhost.com&host=myhost.com&noemail=1&pass=abc123&state=TX&xemail=
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
Authorization:
|
57
|
+
- WHM root:iscool
|
58
|
+
User-Agent:
|
59
|
+
- Faraday v0.8.8
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- '*/*'
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Server:
|
70
|
+
- cpsrvd/11.36.0.4
|
71
|
+
X-Keep-Alive-Count:
|
72
|
+
- '1'
|
73
|
+
Connection:
|
74
|
+
- Keep-Alive
|
75
|
+
Keep-Alive:
|
76
|
+
- timeout=70, max=200
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Date:
|
80
|
+
- Mon, 30 Sep 2013 17:23:28 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
85
|
+
string: '{"results":{"sender":"admin","statusmsg":"Key, Certificate, and CSR
|
86
|
+
generated OK","message":"Key, Certificate, and CSR generated OK","keyfile":"/etc/ssl/private/myhost.com.key","certfile":"/etc/ssl/certs/myhost.com.crt","csr":"-----BEGIN
|
87
|
+
CERTIFICATE REQUEST-----\nMIIC4TCCAckCAQAwgYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJUWDEQMA4GA1UE\nBxMHaG91c3RvbjESMBAGA1UECgwJRm9vICYgQmFyMQ0wCwYDVQQLEwREZXB0MRMw\nEQYDVQQDEwpteWhvc3QuY29tMR4wHAYJKoZIhvcNAQkBFg90ZXN0QG15aG9zdC5j\nb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDlcwhgn+PSKCVCzRXA\nQc3wIB6HVIfhnVfzjZZS3hR2opIGS0RRxVc5ON7v8Do32uUC9g+lgTR6svlVw514\nhZZtjLIvHR2Pks0mgAHOyveSfOl8J085ycD78oea10bbuKVTwluH4tF8M1LAJ5sh\nv8SvELjWY9z7UWNsxNhTVyy7uZg+ClbMRIWAlPYe8CNe2uOcgM4GqiylIP7jLtX3\nNjeG9UjnV3xUJJfAEKR4os6KXJ21VqGasHYoJU6wobhhA5VdM+nqIbsUFBejRbls\nAPAHOvN3C9TZWmw44RuZ/67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M6hLW17tvbMiB65wTEA==\n-----END
|
89
|
+
RSA PRIVATE KEY-----\n","status":1,"csrfile":"/etc/ssl/certs/myhost.com.csr","cert":"-----BEGIN
|
90
|
+
CERTIFICATE-----\nMIIEejCCA2KgAwIBAgIJAP0YwbK5bPtCMA0GCSqGSIb3DQEBBQUAMIGEMQswCQYD\nVQQGEwJVUzELMAkGA1UECBMCVFgxEDAOBgNVBAcTB2hvdXN0b24xEjAQBgNVBAoM\nCUZvbyAmIEJhcjENMAsGA1UECxMERGVwdDETMBEGA1UEAxMKbXlob3N0LmNvbTEe\nMBwGCSqGSIb3DQEJARYPdGVzdEBteWhvc3QuY29tMB4XDTEzMDkzMDE3MjMyOVoX\nDTE0MDkzMDE3MjMyOVowgYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJUWDEQMA4G\nA1UEBxMHaG91c3RvbjESMBAGA1UECgwJRm9vICYgQmFyMQ0wCwYDVQQLEwREZXB0\nMRMwEQYDVQQDEwpteWhvc3QuY29tMR4wHAYJKoZIhvcNAQkBFg90ZXN0QG15aG9z\ndC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDlcwhgn+PSKCVC\nzRXAQc3wIB6HVIfhnVfzjZZS3hR2opIGS0RRxVc5ON7v8Do32uUC9g+lgTR6svlV\nw514hZZtjLIvHR2Pks0mgAHOyveSfOl8J085ycD78oea10bbuKVTwluH4tF8M1LA\nJ5shv8SvELjWY9z7UWNsxNhTVyy7uZg+ClbMRIWAlPYe8CNe2uOcgM4GqiylIP7j\nLtX3NjeG9UjnV3xUJJfAEKR4os6KXJ21VqGasHYoJU6wobhhA5VdM+nqIbsUFBej\nRblsAPAHOvN3C9TZWmw44RuZ/67GDVnYylG4+ftR8iFlFhTtqXS0ZGVvMn3qszn3\nV4ekmCFzAgMBAAGjgewwgekwHQYDVR0OBBYEFCimE8iyCFFU0pb5zK/eS6BfGgJo\nMIG5BgNVHSMEgbEwga6AFCimE8iyCFFU0pb5zK/eS6BfGgJooYGKpIGHMIGEMQsw\nCQYDVQQGEwJVUzELMAkGA1UECBMCVFgxEDAOBgNVBAcTB2hvdXN0b24xEjAQBgNV\nBAoMCUZvbyAmIEJhcjENMAsGA1UECxMERGVwdDETMBEGA1UEAxMKbXlob3N0LmNv\nbTEeMBwGCSqGSIb3DQEJARYPdGVzdEBteWhvc3QuY29tggkA/RjBsrls+0IwDAYD\nVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAZ5nK5xXj9uDlj8VjhU1Mo7BI\n8oP2hR7TDumLPL3CWrYEHqgnHiwft/7RXpnH5zM9wXXb0ZjIzB2pRW2UUq4I0iF3\ns07k9+UZPvI7EcAQF1zjUNKr0KuKsKxmiJjn35oKfBny/Iftysm2XV1neye240QA\n+c5SsdN9lv8rU0LhSviR7pFYoscKV39uAHdb0qN7lJLtnfujYOG+Xe79NC846XXc\n9R+0RjmBqDB3KDbK4nqP68SHz61TGB3PDD66Xh1fzzddB5N5votS4vxujolb9OPy\n0BqoHXM6FAXHwbK03x1QDw1/Atq0S8y/FhrdadkDo8fpo8FikBKfyKdFA3m57A==\n-----END
|
91
|
+
CERTIFICATE-----\n","sender_host":"opsbox.local.net"}}'
|
92
|
+
http_version:
|
93
|
+
recorded_at: Mon, 30 Sep 2013 17:21:30 GMT
|
94
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.0.1
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://myhost.com:2087/json-api/installssl?cert=-----BEGIN%20CERTIFICATE-----%0AMIIEcTCCA1mgAwIBAgIJAN9pFkWkTwcYMA0GCSqGSIb3DQEBBQUAMIGBMQswCQYD%0AVQQGEwJVUzELMAkGA1UECBMCVFgxEDAOBgNVBAcTB0hvdXN0b24xDjAMBgNVBAoT%0ABVNpdGU1MQwwCgYDVQQLEwNFbmcxFDASBgNVBAMTC2Fub3R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==%0A-----END%20RSA%20PRIVATE%20KEY-----%0A&user=nobody
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Content-Type:
|
24
|
+
- text/plain
|
25
|
+
Date:
|
26
|
+
- Mon, 29 Apr 2013 17:25:59 GMT
|
27
|
+
Server:
|
28
|
+
- cpsrvd/11.32.6.4
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
X-Keep-Alive-Count:
|
32
|
+
- "1"
|
33
|
+
Connection:
|
34
|
+
- Keep-Alive
|
35
|
+
body:
|
36
|
+
string: "{\"status\":1,\"statusmsg\":\"Certificate successfully installed.\\nFinished SSL Install Process for check.com (www.check.com).\\nApache successfully restarted.\\n\",\"rawout\":\"Certificate verification passed<br />\\n\\n<br />\\nThe Certificate for the domain check.com was installed on the IP 192.1.2.3.\\n<br><b>Finished SSL Install Process for check.com (www.check.com).</b><br>\\n<pre>Apache successfully restarted.\\n</pre>\"}"
|
37
|
+
http_version:
|
38
|
+
recorded_at: Mon, 29 Apr 2013 17:26:07 GMT
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.0.1
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://myhost.com:2087/json-api/listcrts
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Content-Type:
|
24
|
+
- text/plain
|
25
|
+
Date:
|
26
|
+
- Mon, 29 Apr 2013 17:24:15 GMT
|
27
|
+
Server:
|
28
|
+
- cpsrvd/11.32.6.4
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
X-Keep-Alive-Count:
|
32
|
+
- "1"
|
33
|
+
Connection:
|
34
|
+
- Keep-Alive
|
35
|
+
body:
|
36
|
+
string: "{\"crt\":[{\"domain\":\"reseller-template.webserversystems.com\"},{\"domain\":\"reseller.templateupdate.com\"},{\"domain\":\"another.com\"},{\"domain\":\"vpsportal.accountservergroup.com\"},{\"domain\":\"cheque.com\"},{\"domain\":\"vps-template-dev.accountservergroup.com\"},{\"domain\":\"myhost.com\"},{\"domain\":\"myhost.com\"}]}"
|
37
|
+
http_version:
|
38
|
+
recorded_at: Mon, 29 Apr 2013 17:24:15 GMT
|
@@ -1,64 +1,82 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
5
|
uri: https://myhost.com:2087/json-api/adddns?domain=example.com&ip=192.1.2.3&trueowner=something
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- WHM root:iscool
|
10
|
-
response:
|
11
|
-
status:
|
12
|
+
response:
|
13
|
+
status:
|
12
14
|
code: 200
|
13
15
|
message: OK
|
14
|
-
headers:
|
15
|
-
|
16
|
+
headers:
|
17
|
+
Server:
|
16
18
|
- cpsrvd/11.28.64
|
17
|
-
|
19
|
+
Transfer-Encoding:
|
18
20
|
- chunked
|
19
|
-
|
21
|
+
Content-Type:
|
20
22
|
- text/plain
|
21
|
-
body:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: ! '{"result":[{"status":1,"statusmsg":"Added example.com ok belonging
|
26
|
+
to user something"}]}'
|
27
|
+
http_version: '1.1'
|
28
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
29
|
+
- request:
|
30
|
+
method: get
|
26
31
|
uri: https://myhost.com:2087/json-api/adddns?domain=example.com&ip=192.1.2.3
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
32
|
+
body:
|
33
|
+
encoding: US-ASCII
|
34
|
+
string: ''
|
35
|
+
headers:
|
36
|
+
Authorization:
|
30
37
|
- WHM root:iscool
|
31
|
-
response:
|
32
|
-
status:
|
38
|
+
response:
|
39
|
+
status:
|
33
40
|
code: 200
|
34
41
|
message: OK
|
35
|
-
headers:
|
36
|
-
|
42
|
+
headers:
|
43
|
+
Server:
|
37
44
|
- cpsrvd/11.28.64
|
38
|
-
|
45
|
+
Transfer-Encoding:
|
39
46
|
- chunked
|
40
|
-
|
47
|
+
Content-Type:
|
41
48
|
- text/plain
|
42
|
-
body:
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: ! '{"result":[{"status":1,"statusmsg":"Added example.com ok belonging
|
52
|
+
to user root"}]}'
|
53
|
+
http_version: '1.1'
|
54
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
47
57
|
uri: https://myhost.com:2087/json-api/adddns?domain=example.com&ip=192.1.2.3&trueowner=something
|
48
|
-
body:
|
49
|
-
|
50
|
-
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Authorization:
|
51
63
|
- WHM root:iscool
|
52
|
-
response:
|
53
|
-
status:
|
64
|
+
response:
|
65
|
+
status:
|
54
66
|
code: 200
|
55
67
|
message: OK
|
56
|
-
headers:
|
57
|
-
|
68
|
+
headers:
|
69
|
+
Server:
|
58
70
|
- cpsrvd/11.28.64
|
59
|
-
|
71
|
+
Transfer-Encoding:
|
60
72
|
- chunked
|
61
|
-
|
73
|
+
Content-Type:
|
62
74
|
- text/plain
|
63
|
-
body:
|
64
|
-
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: ! '{"result":[{"status":1,"statusmsg":"Added example.com ok belonging
|
78
|
+
to user something"}]}'
|
79
|
+
http_version: '1.1'
|
80
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
81
|
+
recorded_with: VCR 2.0.0
|
82
|
+
...
|
@@ -1,43 +1,56 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
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
|
-
|
8
|
-
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- WHM root:iscool
|
10
|
-
response:
|
11
|
-
status:
|
12
|
+
response:
|
13
|
+
status:
|
12
14
|
code: 200
|
13
15
|
message: OK
|
14
|
-
headers:
|
15
|
-
|
16
|
+
headers:
|
17
|
+
Server:
|
16
18
|
- cpsrvd/11.28.64
|
17
|
-
|
19
|
+
Transfer-Encoding:
|
18
20
|
- chunked
|
19
|
-
|
21
|
+
Content-Type:
|
20
22
|
- text/plain
|
21
|
-
body:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: ! '{"result":[{"status":1,"statusmsg":"Bind reloading on shared-server
|
26
|
+
using rndc zone: [example.com]"}]}'
|
27
|
+
http_version: '1.1'
|
28
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
29
|
+
- request:
|
30
|
+
method: get
|
26
31
|
uri: https://myhost.com:2087/json-api/addzonerecord?name=1&ptdrname=example.com&type=PTR&zone=example.com
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
32
|
+
body:
|
33
|
+
encoding: US-ASCII
|
34
|
+
string: ''
|
35
|
+
headers:
|
36
|
+
Authorization:
|
30
37
|
- WHM root:iscool
|
31
|
-
response:
|
32
|
-
status:
|
38
|
+
response:
|
39
|
+
status:
|
33
40
|
code: 200
|
34
41
|
message: OK
|
35
|
-
headers:
|
36
|
-
|
42
|
+
headers:
|
43
|
+
Server:
|
37
44
|
- cpsrvd/11.28.64
|
38
|
-
|
45
|
+
Transfer-Encoding:
|
39
46
|
- chunked
|
40
|
-
|
47
|
+
Content-Type:
|
41
48
|
- text/plain
|
42
|
-
body:
|
43
|
-
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: ! '{"result":[{"status":1,"statusmsg":"Bind reloading on myhost using
|
52
|
+
rndc zone: [example.com]"}]}'
|
53
|
+
http_version: '1.1'
|
54
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
55
|
+
recorded_with: VCR 2.0.0
|
56
|
+
...
|
@@ -1,43 +1,58 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
5
|
uri: https://myhost.com:2087/json-api/dumpzone?domain=notexists.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- WHM root:iscool
|
10
|
-
response:
|
11
|
-
status:
|
12
|
+
response:
|
13
|
+
status:
|
12
14
|
code: 200
|
13
15
|
message: OK
|
14
|
-
headers:
|
15
|
-
|
16
|
+
headers:
|
17
|
+
Server:
|
16
18
|
- cpsrvd/11.28.64
|
17
|
-
|
19
|
+
Transfer-Encoding:
|
18
20
|
- chunked
|
19
|
-
|
21
|
+
Content-Type:
|
20
22
|
- text/plain
|
21
|
-
body:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: ! '{"result":[{"status":0,"statusmsg":"Zone does not exist."}]}'
|
26
|
+
http_version: '1.1'
|
27
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
28
|
+
- request:
|
29
|
+
method: get
|
26
30
|
uri: https://myhost.com:2087/json-api/dumpzone?domain=example.com
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ''
|
34
|
+
headers:
|
35
|
+
Authorization:
|
30
36
|
- WHM root:iscool
|
31
|
-
response:
|
32
|
-
status:
|
37
|
+
response:
|
38
|
+
status:
|
33
39
|
code: 200
|
34
40
|
message: OK
|
35
|
-
headers:
|
36
|
-
|
41
|
+
headers:
|
42
|
+
Server:
|
37
43
|
- cpsrvd/11.28.64
|
38
|
-
|
44
|
+
Transfer-Encoding:
|
39
45
|
- chunked
|
40
|
-
|
46
|
+
Content-Type:
|
41
47
|
- text/plain
|
42
|
-
body:
|
43
|
-
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: ! '{"result":[{"status":1,"record":[{"Line":1,"raw":"; cPanel first:11.25.0-STABLE_44718
|
51
|
+
latest:11.28.64-STABLE_51024 Cpanel::ZoneFile::VERSION:1.3 mtime:1299509628
|
52
|
+
hostname:myhost.site5.com","ttl":"86400","type":":RAW","name":""},{"Line":2,"raw":";
|
53
|
+
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
|
54
|
+
Serialized"}]}'
|
55
|
+
http_version: '1.1'
|
56
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
57
|
+
recorded_with: VCR 2.0.0
|
58
|
+
...
|
@@ -1,64 +1,82 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
5
|
uri: https://myhost.com:2087/json-api/editzonerecord?Line=1&domain=example.com&ttl=86400
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- WHM root:iscool
|
10
|
-
response:
|
11
|
-
status:
|
12
|
+
response:
|
13
|
+
status:
|
12
14
|
code: 200
|
13
15
|
message: OK
|
14
|
-
headers:
|
15
|
-
|
16
|
+
headers:
|
17
|
+
Server:
|
16
18
|
- cpsrvd/11.28.64
|
17
|
-
|
19
|
+
Transfer-Encoding:
|
18
20
|
- chunked
|
19
|
-
|
21
|
+
Content-Type:
|
20
22
|
- text/plain
|
21
|
-
body:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: ! '{"result":[{"status":1,"statusmsg":"Bind reloading on myhost using
|
26
|
+
rndc zone: [example.com]"}]}'
|
27
|
+
http_version: '1.1'
|
28
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
29
|
+
- request:
|
30
|
+
method: get
|
26
31
|
uri: https://myhost.com:2087/json-api/editzonerecord?Line=1&domain=notexists.com&ttl=86400
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
32
|
+
body:
|
33
|
+
encoding: US-ASCII
|
34
|
+
string: ''
|
35
|
+
headers:
|
36
|
+
Authorization:
|
30
37
|
- WHM root:iscool
|
31
|
-
response:
|
32
|
-
status:
|
38
|
+
response:
|
39
|
+
status:
|
33
40
|
code: 200
|
34
41
|
message: OK
|
35
|
-
headers:
|
36
|
-
|
42
|
+
headers:
|
43
|
+
Server:
|
37
44
|
- cpsrvd/11.28.64
|
38
|
-
|
45
|
+
Transfer-Encoding:
|
39
46
|
- chunked
|
40
|
-
|
47
|
+
Content-Type:
|
41
48
|
- text/plain
|
42
|
-
body:
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: ! '{"result":[{"status":0,"statusmsg":"Failed to serialize record: unknown
|
52
|
+
error"}]}'
|
53
|
+
http_version: '1.1'
|
54
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
47
57
|
uri: https://myhost.com:2087/json-api/editzonerecord?Line=200&domain=example.com&ttl=86400
|
48
|
-
body:
|
49
|
-
|
50
|
-
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Authorization:
|
51
63
|
- WHM root:iscool
|
52
|
-
response:
|
53
|
-
status:
|
64
|
+
response:
|
65
|
+
status:
|
54
66
|
code: 200
|
55
67
|
message: OK
|
56
|
-
headers:
|
57
|
-
|
68
|
+
headers:
|
69
|
+
Server:
|
58
70
|
- cpsrvd/11.28.64
|
59
|
-
|
71
|
+
Transfer-Encoding:
|
60
72
|
- chunked
|
61
|
-
|
73
|
+
Content-Type:
|
62
74
|
- text/plain
|
63
|
-
body:
|
64
|
-
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: ! '{"result":[{"status":0,"statusmsg":"Failed to serialize record: unknown
|
78
|
+
error"}]}'
|
79
|
+
http_version: '1.1'
|
80
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
81
|
+
recorded_with: VCR 2.0.0
|
82
|
+
...
|