plesk_lib 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +20 -0
- data/README.md +89 -0
- data/Rakefile +1 -0
- data/lib/plesk_lib.rb +29 -0
- data/lib/plesk_lib/account.rb +14 -0
- data/lib/plesk_lib/actions/base.rb +61 -0
- data/lib/plesk_lib/actions/change_customer_password.rb +27 -0
- data/lib/plesk_lib/actions/create_account.rb +23 -0
- data/lib/plesk_lib/actions/create_customer.rb +21 -0
- data/lib/plesk_lib/actions/create_reseller.rb +22 -0
- data/lib/plesk_lib/actions/create_service_plan.rb +327 -0
- data/lib/plesk_lib/actions/create_subscription.rb +55 -0
- data/lib/plesk_lib/actions/get_statistics.rb +61 -0
- data/lib/plesk_lib/actions/list_customers.rb +51 -0
- data/lib/plesk_lib/actions/list_service_plans.rb +60 -0
- data/lib/plesk_lib/actions/list_subscriptions.rb +42 -0
- data/lib/plesk_lib/customer.rb +4 -0
- data/lib/plesk_lib/reseller.rb +5 -0
- data/lib/plesk_lib/server.rb +23 -0
- data/lib/plesk_lib/service_plan.rb +17 -0
- data/lib/plesk_lib/subscription.rb +14 -0
- data/lib/plesk_lib/version.rb +3 -0
- data/plesk_lib.gemspec +30 -0
- data/spec/actions/change_customer_password_spec.rb +29 -0
- data/spec/actions/create_customer_spec.rb +50 -0
- data/spec/actions/create_reseller_spec.rb +35 -0
- data/spec/actions/create_service_plan_spec.rb +33 -0
- data/spec/actions/create_subscription_spec.rb +21 -0
- data/spec/actions/get_statistics_spec.rb +15 -0
- data/spec/actions/list_customers_spec.rb +31 -0
- data/spec/actions/list_service_plans_spec.rb +31 -0
- data/spec/actions/list_subscriptions.rb +31 -0
- data/spec/customer_spec.rb +21 -0
- data/spec/reseller_spec.rb +22 -0
- data/spec/server_spec.rb +48 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/vcr/customer/change_password_existing_user.yml +57 -0
- data/spec/vcr/customer/change_password_missing_user.yml +57 -0
- data/spec/vcr/customer/list_customers.yml +57 -0
- data/spec/vcr/customer/list_customers_filtered.yml +57 -0
- data/spec/vcr/customer/minimal.yml +112 -0
- data/spec/vcr/customer/minimal_exists.yml +112 -0
- data/spec/vcr/customer/minimal_with_owner.yml +58 -0
- data/spec/vcr/reseller/minimal.yml +58 -0
- data/spec/vcr/reseller/minimal_exists.yml +58 -0
- data/spec/vcr/server/get_statistics.yml +57 -0
- data/spec/vcr/service_plan/create_minimal.yml +58 -0
- data/spec/vcr/service_plan/create_minimal_with_owner.yml +58 -0
- data/spec/vcr/service_plan/list_admin.yml +57 -0
- data/spec/vcr/service_plan/list_all.yml +57 -0
- data/spec/vcr/subscription/create.yml +57 -0
- data/spec/vcr/subscription/list_subscriptions.yml +57 -0
- data/spec/vcr/subscription/list_subscriptions_filtered.yml +57 -0
- metadata +257 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><customer><get><filter></filter><dataset><gen_info/><stat/></dataset></get></customer></packet>
|
9
|
+
headers:
|
10
|
+
Http-Auth-Login:
|
11
|
+
- admin
|
12
|
+
Http-Auth-Passwd:
|
13
|
+
- ccsnDxnWy2j0
|
14
|
+
Content-Type:
|
15
|
+
- text/xml
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- sw-cp-server
|
29
|
+
Date:
|
30
|
+
- Thu, 13 Mar 2014 11:36:30 GMT
|
31
|
+
Content-Type:
|
32
|
+
- text/xml
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Connection:
|
36
|
+
- keep-alive
|
37
|
+
P3p:
|
38
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
39
|
+
Last-Modified:
|
40
|
+
- Thu, 13 Mar 2014 11:36:30 GMT
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Cache-Control:
|
44
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
45
|
+
Pragma:
|
46
|
+
- no-cache
|
47
|
+
Set-Cookie:
|
48
|
+
- PHPSESSID=e38756d972a2883456b7378928f67f48; path=/; secure; httponly
|
49
|
+
- locale=en-US; expires=Fri, 13-Mar-2015 11:36:30 GMT; path=/
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<packet version="1.6.3.5"><customer><get><result><status>ok</status><filter-id>4</filter-id><id>4</id><data><gen_info><cr_date>2014-03-12</cr_date><cname></cname><pname>Reseller Customer</pname><login>testcust</login><status>0</status><phone></phone><fax></fax><email>test@example.com</email><address></address><city></city><state></state><pcode></pcode><country>US</country><locale>en-US</locale><guid>b6b2e111-fd18-492d-b29a-a0f7a0ab364b</guid><owner-id>3</owner-id><vendor-guid>3f2fb67d-9f62-4ba9-a88d-8f8b6877c95c</vendor-guid><external-id></external-id><password>$5$/icTLVsiBWUpIF5Y$/AWgib3eN3JR5jL.MDATy6/e1i1j0ScOqG70BYSJwy8</password><password_type>crypt</password_type></gen_info><stat><active_domains>5</active_domains><subdomains>1</subdomains><disk_space>142099961</disk_space><postboxs>1</postboxs><redirects>0</redirects><mail_groups>0</mail_groups><mail_resps>0</mail_resps><mail_lists>0</mail_lists><web_users>0</web_users><data_bases>4</data_bases><webapps>0</webapps><traffic>0</traffic><traffic_prevday>0</traffic_prevday></stat></data></result><result><status>ok</status><filter-id>6</filter-id><id>6</id><data><gen_info><cr_date>2014-03-12</cr_date><cname>My Company</cname><pname>Barbaz</pname><login>foobar</login><status>0</status><phone>0000000000</phone><fax></fax><email>noreply@ausupport.com.au</email><address></address><city></city><state></state><pcode></pcode><country>AU</country><locale>en-US</locale><guid>199859fc-a50b-48b0-bc4d-35b8537c110f</guid><owner-login>admin</owner-login><vendor-guid>6567bf8b-dbf2-4ef3-9822-27771518e6ed</vendor-guid><external-id></external-id><password>$5$5ZRFpDSlpqpiRsj2$C5qxslf/9expk4AtB8no8m4133GBj05BUvDCMEs9L76</password><password_type>crypt</password_type></gen_info><stat><active_domains>0</active_domains><subdomains>0</subdomains><disk_space>0</disk_space><postboxs>0</postboxs><redirects>0</redirects><mail_groups>0</mail_groups><mail_resps>0</mail_resps><mail_lists>0</mail_lists><web_users>0</web_users><data_bases>0</data_bases><webapps>0</webapps><traffic>0</traffic><traffic_prevday>0</traffic_prevday></stat></data></result><result><status>ok</status><filter-id>17</filter-id><id>17</id><data><gen_info><cr_date>2014-03-12</cr_date><cname>My Company</cname><pname>FirstName LastName</pname><login>cust91</login><status>0</status><phone>0000000000</phone><fax></fax><email>noreply@ausupport.com.au</email><address></address><city></city><state></state><pcode></pcode><country>AU</country><locale>en-US</locale><guid>cae5b4b7-579d-4a7c-8323-d1e96b47db96</guid><owner-login>admin</owner-login><vendor-guid>6567bf8b-dbf2-4ef3-9822-27771518e6ed</vendor-guid><external-id></external-id><password>$5$IhGm2zZ88v7YjFNy$m9aHtGbUS9VvNilTis15EOPrZd/Wg109/QefqOAWo.C</password><password_type>crypt</password_type></gen_info><stat><active_domains>0</active_domains><subdomains>0</subdomains><disk_space>0</disk_space><postboxs>0</postboxs><redirects>0</redirects><mail_groups>0</mail_groups><mail_resps>0</mail_resps><mail_lists>0</mail_lists><web_users>0</web_users><data_bases>0</data_bases><webapps>0</webapps><traffic>0</traffic><traffic_prevday>0</traffic_prevday></stat></data></result><result><status>ok</status><filter-id>29</filter-id><id>29</id><data><gen_info><cr_date>2014-03-13</cr_date><cname>My Company</cname><pname>FirstName LastName</pname><login>cust8891</login><status>0</status><phone>0000000000</phone><fax></fax><email>noreply@ausupport.com.au</email><address></address><city></city><state></state><pcode></pcode><country>AU</country><locale>en-US</locale><guid>357a34cc-13ab-4a7c-892d-9b4b471b6ad8</guid><owner-id>3</owner-id><vendor-guid>3f2fb67d-9f62-4ba9-a88d-8f8b6877c95c</vendor-guid><external-id></external-id><password>$5$vd5cxHqUIojoaVsc$UY2wweso42Uhqsk2ns9fq19OdsCDGCecdm6CHxBkQe9</password><password_type>crypt</password_type></gen_info><stat><active_domains>0</active_domains><subdomains>0</subdomains><disk_space>0</disk_space><postboxs>0</postboxs><redirects>0</redirects><mail_groups>0</mail_groups><mail_resps>0</mail_resps><mail_lists>0</mail_lists><web_users>0</web_users><data_bases>0</data_bases><webapps>0</webapps><traffic>0</traffic><traffic_prevday>0</traffic_prevday></stat></data></result></get></customer></packet>
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 17 Mar 2014 17:47:12 GMT
|
57
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><customer><get><filter><owner-id>3</owner-id></filter><dataset><gen_info/><stat/></dataset></get></customer></packet>
|
9
|
+
headers:
|
10
|
+
Http-Auth-Login:
|
11
|
+
- admin
|
12
|
+
Http-Auth-Passwd:
|
13
|
+
- ccsnDxnWy2j0
|
14
|
+
Content-Type:
|
15
|
+
- text/xml
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- sw-cp-server
|
29
|
+
Date:
|
30
|
+
- Thu, 13 Mar 2014 11:36:30 GMT
|
31
|
+
Content-Type:
|
32
|
+
- text/xml
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Connection:
|
36
|
+
- keep-alive
|
37
|
+
P3p:
|
38
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
39
|
+
Last-Modified:
|
40
|
+
- Thu, 13 Mar 2014 11:36:30 GMT
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Cache-Control:
|
44
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
45
|
+
Pragma:
|
46
|
+
- no-cache
|
47
|
+
Set-Cookie:
|
48
|
+
- PHPSESSID=6c23b27e419e8f38d5ebf23504a35d9f; path=/; secure; httponly
|
49
|
+
- locale=en-US; expires=Fri, 13-Mar-2015 11:36:30 GMT; path=/
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<packet version="1.6.3.5"><customer><get><result><status>ok</status><filter-id>3</filter-id><id>4</id><data><gen_info><cr_date>2014-03-12</cr_date><cname></cname><pname>Reseller Customer</pname><login>testcust</login><status>0</status><phone></phone><fax></fax><email>test@example.com</email><address></address><city></city><state></state><pcode></pcode><country>US</country><locale>en-US</locale><guid>b6b2e111-fd18-492d-b29a-a0f7a0ab364b</guid><owner-id>3</owner-id><vendor-guid>3f2fb67d-9f62-4ba9-a88d-8f8b6877c95c</vendor-guid><external-id></external-id><password>$5$/icTLVsiBWUpIF5Y$/AWgib3eN3JR5jL.MDATy6/e1i1j0ScOqG70BYSJwy8</password><password_type>crypt</password_type></gen_info><stat><active_domains>5</active_domains><subdomains>1</subdomains><disk_space>142099961</disk_space><postboxs>1</postboxs><redirects>0</redirects><mail_groups>0</mail_groups><mail_resps>0</mail_resps><mail_lists>0</mail_lists><web_users>0</web_users><data_bases>4</data_bases><webapps>0</webapps><traffic>0</traffic><traffic_prevday>0</traffic_prevday></stat></data></result><result><status>ok</status><filter-id>3</filter-id><id>29</id><data><gen_info><cr_date>2014-03-13</cr_date><cname>My Company</cname><pname>FirstName LastName</pname><login>cust8891</login><status>0</status><phone>0000000000</phone><fax></fax><email>noreply@ausupport.com.au</email><address></address><city></city><state></state><pcode></pcode><country>AU</country><locale>en-US</locale><guid>357a34cc-13ab-4a7c-892d-9b4b471b6ad8</guid><owner-id>3</owner-id><vendor-guid>3f2fb67d-9f62-4ba9-a88d-8f8b6877c95c</vendor-guid><external-id></external-id><password>$5$vd5cxHqUIojoaVsc$UY2wweso42Uhqsk2ns9fq19OdsCDGCecdm6CHxBkQe9</password><password_type>crypt</password_type></gen_info><stat><active_domains>0</active_domains><subdomains>0</subdomains><disk_space>0</disk_space><postboxs>0</postboxs><redirects>0</redirects><mail_groups>0</mail_groups><mail_resps>0</mail_resps><mail_lists>0</mail_lists><web_users>0</web_users><data_bases>0</data_bases><webapps>0</webapps><traffic>0</traffic><traffic_prevday>0</traffic_prevday></stat></data></result></get></customer></packet>
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 17 Mar 2014 17:47:12 GMT
|
57
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,112 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><server><get><stat/></get></server></packet>
|
9
|
+
headers:
|
10
|
+
http_auth_login:
|
11
|
+
- admin
|
12
|
+
http_auth_passwd:
|
13
|
+
- ccsnDxnWy2j0
|
14
|
+
content-type:
|
15
|
+
- text/xml
|
16
|
+
accept-encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
accept:
|
19
|
+
- "*/*"
|
20
|
+
user-agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
server:
|
28
|
+
- sw-cp-server
|
29
|
+
date:
|
30
|
+
- Wed, 12 Mar 2014 20:52:14 GMT
|
31
|
+
content-type:
|
32
|
+
- text/xml
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
connection:
|
36
|
+
- close
|
37
|
+
p3p:
|
38
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
39
|
+
last-modified:
|
40
|
+
- Wed, 12 Mar 2014 20:52:13 GMT
|
41
|
+
expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
cache-control:
|
44
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
45
|
+
pragma:
|
46
|
+
- no-cache
|
47
|
+
set-cookie:
|
48
|
+
- PHPSESSID=ce89c5d0d39f093105794b13eb7e1671; path=/; secure; httponly
|
49
|
+
- locale=en-US; expires=Thu, 12-Mar-2015 20:52:14 GMT; path=/
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<packet version="1.6.3.5"><server><get><result><status>ok</status><stat><objects><clients>2</clients><domains>6</domains><active_domains>6</active_domains><mail_boxes>1</mail_boxes><mail_redirects>0</mail_redirects><mail_groups>0</mail_groups><mail_responders>0</mail_responders><web_users>0</web_users><databases>4</databases><database_users>3</database_users><problem_clients>0</problem_clients><problem_domains>0</problem_domains></objects><version><plesk_name>psa</plesk_name><plesk_version>11.5.30</plesk_version><plesk_os>Ubuntu</plesk_os><plesk_os_version>12.04</plesk_os_version><plesk_build>115130819.13</plesk_build><os_release>3.5.0-23-generic</os_release></version><other><cpu>GenuineIntel, Intel(R)Core(TM) i7-2600 CPU @ 3.40GHz</cpu><uptime>180120</uptime><inside_vz>false</inside_vz></other><load_avg><l1>6</l1><l5>4</l5><l15>5</l15></load_avg><mem><total>2096848896</total><used>1669128192</used><free>427720704</free><shared>0</shared><buffer>192671744</buffer><cached>827215872</cached></mem><swap><total>2144333824</total><used>15638528</used><free>2128695296</free></swap><diskspace><device><name>/dev/sda1</name><total>19024048128</total><used>3854483456</used><free>14203199488</free></device></diskspace></stat></result></get></server></packet>
|
55
|
+
http_version: '1.1'
|
56
|
+
recorded_at: Sat, 15 Mar 2014 14:59:04 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><customer><add><gen_info><cname>My
|
63
|
+
Company</cname><pname>FirstName LastName</pname><login>cust91</login><passwd>customer_secret</passwd><phone>0000000000</phone><email>noreply@ausupport.com.au</email><country>AU</country></gen_info></add></customer></packet>
|
64
|
+
headers:
|
65
|
+
http_auth_login:
|
66
|
+
- admin
|
67
|
+
http_auth_passwd:
|
68
|
+
- ccsnDxnWy2j0
|
69
|
+
content-type:
|
70
|
+
- text/xml
|
71
|
+
accept-encoding:
|
72
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
73
|
+
accept:
|
74
|
+
- "*/*"
|
75
|
+
user-agent:
|
76
|
+
- Ruby
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
server:
|
83
|
+
- sw-cp-server
|
84
|
+
date:
|
85
|
+
- Wed, 12 Mar 2014 20:52:14 GMT
|
86
|
+
content-type:
|
87
|
+
- text/xml
|
88
|
+
transfer-encoding:
|
89
|
+
- chunked
|
90
|
+
connection:
|
91
|
+
- close
|
92
|
+
p3p:
|
93
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
94
|
+
last-modified:
|
95
|
+
- Wed, 12 Mar 2014 20:52:14 GMT
|
96
|
+
expires:
|
97
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
98
|
+
cache-control:
|
99
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
100
|
+
pragma:
|
101
|
+
- no-cache
|
102
|
+
set-cookie:
|
103
|
+
- PHPSESSID=64f1673e5c96ac761a763d512a15d836; path=/; secure; httponly
|
104
|
+
- locale=en-US; expires=Thu, 12-Mar-2015 20:52:14 GMT; path=/
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: |
|
108
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
109
|
+
<packet version="1.6.3.5"><customer><add><result><status>ok</status><id>17</id><guid>cae5b4b7-579d-4a7c-8323-d1e96b47db96</guid></result></add></customer></packet>
|
110
|
+
http_version: '1.1'
|
111
|
+
recorded_at: Sat, 15 Mar 2014 14:59:04 GMT
|
112
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,112 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><server><get><stat/></get></server></packet>
|
9
|
+
headers:
|
10
|
+
http_auth_login:
|
11
|
+
- admin
|
12
|
+
http_auth_passwd:
|
13
|
+
- ccsnDxnWy2j0
|
14
|
+
content-type:
|
15
|
+
- text/xml
|
16
|
+
accept-encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
accept:
|
19
|
+
- "*/*"
|
20
|
+
user-agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
server:
|
28
|
+
- sw-cp-server
|
29
|
+
date:
|
30
|
+
- Wed, 12 Mar 2014 20:52:16 GMT
|
31
|
+
content-type:
|
32
|
+
- text/xml
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
connection:
|
36
|
+
- close
|
37
|
+
p3p:
|
38
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
39
|
+
last-modified:
|
40
|
+
- Wed, 12 Mar 2014 20:52:16 GMT
|
41
|
+
expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
cache-control:
|
44
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
45
|
+
pragma:
|
46
|
+
- no-cache
|
47
|
+
set-cookie:
|
48
|
+
- PHPSESSID=ff7a0c36f9793f63684fe5d0e359bc86; path=/; secure; httponly
|
49
|
+
- locale=en-US; expires=Thu, 12-Mar-2015 20:52:16 GMT; path=/
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<packet version="1.6.3.5"><server><get><result><status>ok</status><stat><objects><clients>3</clients><domains>6</domains><active_domains>6</active_domains><mail_boxes>1</mail_boxes><mail_redirects>0</mail_redirects><mail_groups>0</mail_groups><mail_responders>0</mail_responders><web_users>0</web_users><databases>4</databases><database_users>3</database_users><problem_clients>0</problem_clients><problem_domains>0</problem_domains></objects><version><plesk_name>psa</plesk_name><plesk_version>11.5.30</plesk_version><plesk_os>Ubuntu</plesk_os><plesk_os_version>12.04</plesk_os_version><plesk_build>115130819.13</plesk_build><os_release>3.5.0-23-generic</os_release></version><other><cpu>GenuineIntel, Intel(R)Core(TM) i7-2600 CPU @ 3.40GHz</cpu><uptime>180120</uptime><inside_vz>false</inside_vz></other><load_avg><l1>6</l1><l5>4</l5><l15>5</l15></load_avg><mem><total>2096848896</total><used>1669734400</used><free>427114496</free><shared>0</shared><buffer>192737280</buffer><cached>827219968</cached></mem><swap><total>2144333824</total><used>15638528</used><free>2128695296</free></swap><diskspace><device><name>/dev/sda1</name><total>19024048128</total><used>3854483456</used><free>14203199488</free></device></diskspace></stat></result></get></server></packet>
|
55
|
+
http_version: '1.1'
|
56
|
+
recorded_at: Sat, 15 Mar 2014 14:59:06 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><customer><add><gen_info><cname>My
|
63
|
+
Company</cname><pname>FirstName LastName</pname><login>cust91</login><passwd>customer_secret</passwd><phone>0000000000</phone><email>noreply@ausupport.com.au</email><country>AU</country></gen_info></add></customer></packet>
|
64
|
+
headers:
|
65
|
+
http_auth_login:
|
66
|
+
- admin
|
67
|
+
http_auth_passwd:
|
68
|
+
- ccsnDxnWy2j0
|
69
|
+
content-type:
|
70
|
+
- text/xml
|
71
|
+
accept-encoding:
|
72
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
73
|
+
accept:
|
74
|
+
- "*/*"
|
75
|
+
user-agent:
|
76
|
+
- Ruby
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
server:
|
83
|
+
- sw-cp-server
|
84
|
+
date:
|
85
|
+
- Wed, 12 Mar 2014 20:52:16 GMT
|
86
|
+
content-type:
|
87
|
+
- text/xml
|
88
|
+
transfer-encoding:
|
89
|
+
- chunked
|
90
|
+
connection:
|
91
|
+
- close
|
92
|
+
p3p:
|
93
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
94
|
+
last-modified:
|
95
|
+
- Wed, 12 Mar 2014 20:52:16 GMT
|
96
|
+
expires:
|
97
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
98
|
+
cache-control:
|
99
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
100
|
+
pragma:
|
101
|
+
- no-cache
|
102
|
+
set-cookie:
|
103
|
+
- PHPSESSID=7834f6996c8f7a6e24a343d7f7a72318; path=/; secure; httponly
|
104
|
+
- locale=en-US; expires=Thu, 12-Mar-2015 20:52:16 GMT; path=/
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: |
|
108
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
109
|
+
<packet version="1.6.3.5"><customer><add><result><status>error</status><errcode>1007</errcode><errtext>Client with login name 'cust91' already exists.</errtext></result></add></customer></packet>
|
110
|
+
http_version: '1.1'
|
111
|
+
recorded_at: Sat, 15 Mar 2014 14:59:06 GMT
|
112
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><customer><add><gen_info><cname>My
|
9
|
+
Company</cname><pname>FirstName LastName</pname><login>cust8891</login><passwd>customer_secret</passwd><phone>0000000000</phone><email>noreply@ausupport.com.au</email><country>AU</country><owner-id>3</owner-id></gen_info></add></customer></packet>
|
10
|
+
headers:
|
11
|
+
Http-Auth-Login:
|
12
|
+
- admin
|
13
|
+
Http-Auth-Passwd:
|
14
|
+
- ccsnDxnWy2j0
|
15
|
+
Content-Type:
|
16
|
+
- text/xml
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
21
|
+
User-Agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
25
|
+
code: 200
|
26
|
+
message: OK
|
27
|
+
headers:
|
28
|
+
Server:
|
29
|
+
- sw-cp-server
|
30
|
+
Date:
|
31
|
+
- Thu, 13 Mar 2014 07:31:14 GMT
|
32
|
+
Content-Type:
|
33
|
+
- text/xml
|
34
|
+
Transfer-Encoding:
|
35
|
+
- chunked
|
36
|
+
Connection:
|
37
|
+
- keep-alive
|
38
|
+
P3p:
|
39
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
40
|
+
Last-Modified:
|
41
|
+
- Thu, 13 Mar 2014 07:31:14 GMT
|
42
|
+
Expires:
|
43
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
44
|
+
Cache-Control:
|
45
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
46
|
+
Pragma:
|
47
|
+
- no-cache
|
48
|
+
Set-Cookie:
|
49
|
+
- PHPSESSID=a4791e7be8b79aaf7f016b74f1bc4ef8; path=/; secure; httponly
|
50
|
+
- locale=en-US; expires=Fri, 13-Mar-2015 07:31:14 GMT; path=/
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<packet version="1.6.3.5"><customer><add><result><status>ok</status><id>29</id><guid>357a34cc-13ab-4a7c-892d-9b4b471b6ad8</guid></result></add></customer></packet>
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 17 Mar 2014 13:41:56 GMT
|
58
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://10.0.0.158:8443/enterprise/control/agent.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.5"><reseller><add><gen-info><cname>Reseller
|
9
|
+
Company</cname><pname>Reseller Name</pname><login>reseller99</login><passwd>reseller_secret</passwd><phone>0000000000</phone><email>noreply@ausupport.com.au</email><country>AU</country></gen-info><plan-id>2</plan-id></add></reseller></packet>
|
10
|
+
headers:
|
11
|
+
Http-Auth-Login:
|
12
|
+
- admin
|
13
|
+
Http-Auth-Passwd:
|
14
|
+
- ccsnDxnWy2j0
|
15
|
+
Content-Type:
|
16
|
+
- text/xml
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
21
|
+
User-Agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
25
|
+
code: 200
|
26
|
+
message: OK
|
27
|
+
headers:
|
28
|
+
Server:
|
29
|
+
- sw-cp-server
|
30
|
+
Date:
|
31
|
+
- Wed, 12 Mar 2014 21:34:53 GMT
|
32
|
+
Content-Type:
|
33
|
+
- text/xml
|
34
|
+
Transfer-Encoding:
|
35
|
+
- chunked
|
36
|
+
Connection:
|
37
|
+
- keep-alive
|
38
|
+
P3p:
|
39
|
+
- CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
|
40
|
+
Last-Modified:
|
41
|
+
- Wed, 12 Mar 2014 21:34:53 GMT
|
42
|
+
Expires:
|
43
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
44
|
+
Cache-Control:
|
45
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
46
|
+
Pragma:
|
47
|
+
- no-cache
|
48
|
+
Set-Cookie:
|
49
|
+
- PHPSESSID=3dc93bb2697996ae3dd3e073c2d24bdf; path=/; secure; httponly
|
50
|
+
- locale=en-US; expires=Thu, 12-Mar-2015 21:34:53 GMT; path=/
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<packet version="1.6.3.5"><reseller><add><result><status>ok</status><id>28</id><guid>b68dfa87-45a7-41ce-9221-290be38eef43</guid></result></add></reseller></packet>
|
56
|
+
http_version:
|
57
|
+
recorded_at: Sat, 15 Mar 2014 15:41:44 GMT
|
58
|
+
recorded_with: VCR 2.8.0
|