lumberg 2.0.0.pre12 → 2.0.0.pre15
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 +4 -4
- data/README.md +1 -0
- data/lib/lumberg/cpanel.rb +1 -0
- data/lib/lumberg/cpanel/mysql_db.rb +190 -0
- data/lib/lumberg/version.rb +1 -1
- data/lib/lumberg/whm/server.rb +21 -1
- data/spec/cpanel/contact_spec.rb +1 -1
- data/spec/cpanel/mysql_db_spec.rb +119 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/vcr_cassettes/cpanel/contact/update.yml +21 -21
- data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +20 -20
- data/spec/vcr_cassettes/cpanel/file_manager/list.yml +21 -21
- data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +40 -40
- data/spec/vcr_cassettes/cpanel/file_manager/show.yml +21 -21
- data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +21 -21
- data/spec/vcr_cassettes/cpanel/mysql_db/add_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_host.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_user.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_user_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/check_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_host.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_user.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_user_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/init_cache.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/number_of_dbs.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/repair_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/update_privs.yml +42 -0
- data/spec/vcr_cassettes/whm/server/edit_hook.yml +44 -0
- data/spec/vcr_cassettes/whm/server/list_hooks.yml +44 -0
- data/spec/whm/server_spec.rb +18 -0
- metadata +246 -213
@@ -1,38 +1,38 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
5
|
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=getdiskinfo&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg
|
6
|
-
body:
|
6
|
+
body:
|
7
7
|
string: ""
|
8
|
-
headers:
|
9
|
-
Accept:
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
10
|
- "*/*"
|
11
|
-
Authorization:
|
11
|
+
Authorization:
|
12
12
|
- WHM root:iscool
|
13
|
-
User-Agent:
|
13
|
+
User-Agent:
|
14
14
|
- Faraday v0.8.7
|
15
|
-
response:
|
16
|
-
status:
|
15
|
+
response:
|
16
|
+
status:
|
17
17
|
code: 200
|
18
18
|
message: OK
|
19
|
-
headers:
|
20
|
-
Date:
|
19
|
+
headers:
|
20
|
+
Date:
|
21
21
|
- Wed, 15 May 2013 04:22:41 GMT
|
22
|
-
X-Keep-Alive-Count:
|
22
|
+
X-Keep-Alive-Count:
|
23
23
|
- "1"
|
24
|
-
Server:
|
24
|
+
Server:
|
25
25
|
- cpsrvd/11.36.0.4
|
26
|
-
Content-Type:
|
26
|
+
Content-Type:
|
27
27
|
- application/json; charset="utf-8"
|
28
|
-
Content-Length:
|
28
|
+
Content-Length:
|
29
29
|
- "650"
|
30
|
-
Keep-Alive:
|
30
|
+
Keep-Alive:
|
31
31
|
- timeout=70, max=200
|
32
|
-
Connection:
|
32
|
+
Connection:
|
33
33
|
- Keep-Alive
|
34
|
-
body:
|
34
|
+
body:
|
35
35
|
string: "{\"cpanelresult\":{\"apiversion\":2,\"func\":\"getdiskinfo\",\"module\":\"Fileman\",\"data\":[{\"file_upload_max_bytes_humansize\":\"90.95\xC2\xA0TB\",\"file_upload_remain_humansize\":\"\xE2\x88\x9E\",\"spacelimit\":\"\xE2\x88\x9E\",\"spaceremain\":\"\xE2\x88\x9E\",\"spaceremain_humansize\":\"\xE2\x88\x9E\",\"file_upload_must_leave_bytes_humansize\":\"5\xC2\xA0MB\",\"filesused\":\"82\",\"file_upload_remain\":\"\xE2\x88\x9E\",\"spaceused\":\"339968\",\"fileslimit_humansize\":\"0\xC2\xA0bytes\",\"filesremain\":\"\xE2\x88\x9E\",\"filesremain_humansize\":\"\xE2\x88\x9E\",\"fileslimit\":\"0\",\"file_upload_max_bytes\":\"99999999999999\",\"spaceused_humansize\":\"332\xC2\xA0KB\",\"spacelimit_humansize\":\"\xE2\x88\x9E\",\"file_upload_must_leave_bytes\":\"5242880\",\"filesused_humansize\":\"82\xC2\xA0bytes\"}],\"event\":{\"result\":1}}}\n"
|
36
|
-
http_version:
|
36
|
+
http_version:
|
37
37
|
recorded_at: Wed, 15 May 2013 04:18:01 GMT
|
38
38
|
recorded_with: VCR 2.0.1
|
@@ -1,38 +1,38 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://myhost.com:2087/json-api/cpanel?checkleaf
|
6
|
-
body:
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?checkleaf=&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listfiles&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&dir=&filelist=&filepath=&needmime=&showdotfiles=
|
6
|
+
body:
|
7
7
|
string: ""
|
8
|
-
headers:
|
9
|
-
Accept:
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
10
|
- "*/*"
|
11
|
-
Authorization:
|
11
|
+
Authorization:
|
12
12
|
- WHM root:iscool
|
13
|
-
User-Agent:
|
13
|
+
User-Agent:
|
14
14
|
- Faraday v0.8.7
|
15
|
-
response:
|
16
|
-
status:
|
15
|
+
response:
|
16
|
+
status:
|
17
17
|
code: 200
|
18
18
|
message: OK
|
19
|
-
headers:
|
20
|
-
Date:
|
19
|
+
headers:
|
20
|
+
Date:
|
21
21
|
- Wed, 15 May 2013 04:22:40 GMT
|
22
|
-
X-Keep-Alive-Count:
|
22
|
+
X-Keep-Alive-Count:
|
23
23
|
- "1"
|
24
|
-
Server:
|
24
|
+
Server:
|
25
25
|
- cpsrvd/11.36.0.4
|
26
|
-
Content-Type:
|
26
|
+
Content-Type:
|
27
27
|
- application/json; charset="utf-8"
|
28
|
-
Content-Length:
|
28
|
+
Content-Length:
|
29
29
|
- "1784"
|
30
|
-
Keep-Alive:
|
30
|
+
Keep-Alive:
|
31
31
|
- timeout=70, max=200
|
32
|
-
Connection:
|
32
|
+
Connection:
|
33
33
|
- Keep-Alive
|
34
|
-
body:
|
34
|
+
body:
|
35
35
|
string: "{\"cpanelresult\":{\"module\":\"Fileman\",\"event\":{\"result\":1},\"apiversion\":2,\"data\":[{\"mode\":16872,\"uid\":\"\",\"fullpath\":\"/home/lumberg/access-logs\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1368589502\",\"gid\":520,\"file\":\"access-logs\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1367898732\",\"nicemode\":\"0750\",\"size\":\"4096\"},{\"mode\":16872,\"uid\":522,\"fullpath\":\"/home/lumberg/etc\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1368078989\",\"gid\":12,\"file\":\"etc\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1368078989\",\"nicemode\":\"0750\",\"size\":\"4096\"},{\"mode\":16873,\"uid\":522,\"fullpath\":\"/home/lumberg/mail\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1368587735\",\"gid\":520,\"file\":\"mail\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1368587735\",\"nicemode\":\"0751\",\"size\":\"4096\"},{\"mode\":16877,\"uid\":522,\"fullpath\":\"/home/lumberg/public_ftp\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1367898145\",\"gid\":520,\"file\":\"public_ftp\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1367898145\",\"nicemode\":\"0755\",\"size\":\"4096\"},{\"mode\":16872,\"uid\":522,\"fullpath\":\"/home/lumberg/public_html\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1368077995\",\"gid\":99,\"file\":\"public_html\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1368077995\",\"nicemode\":\"0750\",\"size\":\"4096\"},{\"mode\":16877,\"uid\":522,\"fullpath\":\"/home/lumberg/tmp\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1368587735\",\"gid\":520,\"file\":\"tmp\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1368587735\",\"nicemode\":\"0755\",\"size\":\"4096\"},{\"mode\":16872,\"uid\":522,\"fullpath\":\"/home/lumberg/www\",\"path\":\"/home/lumberg\",\"absdir\":\"/home/lumberg\",\"ctime\":\"1368077995\",\"gid\":99,\"file\":\"www\",\"type\":\"dir\",\"humansize\":\"4\xC2\xA0KB\",\"mtime\":\"1368077995\",\"nicemode\":\"0750\",\"size\":\"4096\"}],\"func\":\"listfiles\"}}\n"
|
36
|
-
http_version:
|
36
|
+
http_version:
|
37
37
|
recorded_at: Wed, 15 May 2013 04:17:59 GMT
|
38
38
|
recorded_with: VCR 2.0.1
|
@@ -1,77 +1,77 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
recorded_with: VCR 2.0.1
|
3
|
-
http_interactions:
|
4
|
-
- request:
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
5
|
method: get
|
6
|
-
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=fileop&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&destfiles=.someotherfile&doubledecode
|
7
|
-
body:
|
6
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=fileop&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&destfiles=.someotherfile&doubledecode=&op=copy&sourcefiles=.shouldneverexist
|
7
|
+
body:
|
8
8
|
string: ""
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
11
|
- Faraday v0.8.7
|
12
|
-
Authorization:
|
12
|
+
Authorization:
|
13
13
|
- WHM root:iscool
|
14
|
-
Accept:
|
14
|
+
Accept:
|
15
15
|
- "*/*"
|
16
|
-
response:
|
17
|
-
status:
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Keep-Alive:
|
20
|
+
headers:
|
21
|
+
Keep-Alive:
|
22
22
|
- timeout=70, max=200
|
23
|
-
Date:
|
23
|
+
Date:
|
24
24
|
- Wed, 12 Jun 2013 13:17:38 GMT
|
25
|
-
Content-Length:
|
25
|
+
Content-Length:
|
26
26
|
- "260"
|
27
|
-
Content-Type:
|
27
|
+
Content-Type:
|
28
28
|
- application/json; charset="utf-8"
|
29
|
-
Server:
|
29
|
+
Server:
|
30
30
|
- cpsrvd/11.36.0.4
|
31
|
-
X-Keep-Alive-Count:
|
31
|
+
X-Keep-Alive-Count:
|
32
32
|
- "1"
|
33
|
-
Connection:
|
33
|
+
Connection:
|
34
34
|
- Keep-Alive
|
35
|
-
body:
|
35
|
+
body:
|
36
36
|
string: |
|
37
37
|
{"cpanelresult":{"data":[{"result":0,"dest":"/home/lumberg/.someotherfile","src":"/home/lumberg/.shouldneverexist","err":"No such file or directory"}],"func":"fileop","module":"Fileman","event":{"result":1},"apiversion":2,"error":"No such file or directory"}}
|
38
38
|
|
39
|
-
http_version:
|
39
|
+
http_version:
|
40
40
|
recorded_at: Wed, 12 Jun 2013 13:16:39 GMT
|
41
|
-
- request:
|
41
|
+
- request:
|
42
42
|
method: get
|
43
|
-
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=fileop&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&destfiles=sample-last-login.txt&doubledecode
|
44
|
-
body:
|
43
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=fileop&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&destfiles=sample-last-login.txt&doubledecode=&op=copy&sourcefiles=.lastlogin
|
44
|
+
body:
|
45
45
|
string: ""
|
46
|
-
headers:
|
47
|
-
User-Agent:
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
48
|
- Faraday v0.8.7
|
49
|
-
Authorization:
|
49
|
+
Authorization:
|
50
50
|
- WHM root:iscool
|
51
|
-
Accept:
|
51
|
+
Accept:
|
52
52
|
- "*/*"
|
53
|
-
response:
|
54
|
-
status:
|
53
|
+
response:
|
54
|
+
status:
|
55
55
|
code: 200
|
56
56
|
message: OK
|
57
|
-
headers:
|
58
|
-
Keep-Alive:
|
57
|
+
headers:
|
58
|
+
Keep-Alive:
|
59
59
|
- timeout=70, max=200
|
60
|
-
Date:
|
60
|
+
Date:
|
61
61
|
- Wed, 12 Jun 2013 13:17:38 GMT
|
62
|
-
Content-Length:
|
62
|
+
Content-Length:
|
63
63
|
- "190"
|
64
|
-
Content-Type:
|
64
|
+
Content-Type:
|
65
65
|
- application/json; charset="utf-8"
|
66
|
-
Server:
|
66
|
+
Server:
|
67
67
|
- cpsrvd/11.36.0.4
|
68
|
-
X-Keep-Alive-Count:
|
68
|
+
X-Keep-Alive-Count:
|
69
69
|
- "1"
|
70
|
-
Connection:
|
70
|
+
Connection:
|
71
71
|
- Keep-Alive
|
72
|
-
body:
|
72
|
+
body:
|
73
73
|
string: |
|
74
74
|
{"cpanelresult":{"event":{"result":1},"module":"Fileman","apiversion":2,"func":"fileop","data":[{"dest":"/home/lumberg/sample-last-login.txt","src":"/home/lumberg/.lastlogin","result":1}]}}
|
75
75
|
|
76
|
-
http_version:
|
76
|
+
http_version:
|
77
77
|
recorded_at: Wed, 12 Jun 2013 13:16:40 GMT
|
@@ -1,40 +1,40 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=viewfile&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&dir
|
6
|
-
body:
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=viewfile&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&dir=&file=.lastlogin
|
6
|
+
body:
|
7
7
|
string: ""
|
8
|
-
headers:
|
9
|
-
Accept:
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
10
|
- "*/*"
|
11
|
-
Authorization:
|
11
|
+
Authorization:
|
12
12
|
- WHM root:iscool
|
13
|
-
User-Agent:
|
13
|
+
User-Agent:
|
14
14
|
- Faraday v0.8.7
|
15
|
-
response:
|
16
|
-
status:
|
15
|
+
response:
|
16
|
+
status:
|
17
17
|
code: 200
|
18
18
|
message: OK
|
19
|
-
headers:
|
20
|
-
Date:
|
19
|
+
headers:
|
20
|
+
Date:
|
21
21
|
- Wed, 15 May 2013 04:22:40 GMT
|
22
|
-
X-Keep-Alive-Count:
|
22
|
+
X-Keep-Alive-Count:
|
23
23
|
- "1"
|
24
|
-
Server:
|
24
|
+
Server:
|
25
25
|
- cpsrvd/11.36.0.4
|
26
|
-
Content-Type:
|
26
|
+
Content-Type:
|
27
27
|
- application/json; charset="utf-8"
|
28
|
-
Content-Length:
|
28
|
+
Content-Length:
|
29
29
|
- "437"
|
30
|
-
Keep-Alive:
|
30
|
+
Keep-Alive:
|
31
31
|
- timeout=70, max=200
|
32
|
-
Connection:
|
32
|
+
Connection:
|
33
33
|
- Keep-Alive
|
34
|
-
body:
|
34
|
+
body:
|
35
35
|
string: |
|
36
36
|
{"cpanelresult":{"func":"viewfile","apiversion":2,"data":[{"formatting_after":"</pre></div>","file":".lastlogin","dir":"/home/lumberg","mimename":"text-x-generic","contents":"192.168.25.11","formatting_before":"<div id=\"file_viewer\" style=\"border: 2px solid #ccc; background: #fff;\"><pre>","fileinfo":" ASCII text, with no line terminators\n","mimetype":"text/x-generic","filetype":"file"}],"module":"Fileman","event":{"result":1}}}
|
37
37
|
|
38
|
-
http_version:
|
38
|
+
http_version:
|
39
39
|
recorded_at: Wed, 15 May 2013 04:17:59 GMT
|
40
40
|
recorded_with: VCR 2.0.1
|
@@ -1,38 +1,38 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=statfiles&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&dir
|
6
|
-
body:
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=statfiles&cpanel_jsonapi_module=Fileman&cpanel_jsonapi_user=lumberg&dir=&file=.lastlogin
|
6
|
+
body:
|
7
7
|
string: ""
|
8
|
-
headers:
|
9
|
-
Accept:
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
10
|
- "*/*"
|
11
|
-
Authorization:
|
11
|
+
Authorization:
|
12
12
|
- WHM root:iscool
|
13
|
-
User-Agent:
|
13
|
+
User-Agent:
|
14
14
|
- Faraday v0.8.7
|
15
|
-
response:
|
16
|
-
status:
|
15
|
+
response:
|
16
|
+
status:
|
17
17
|
code: 200
|
18
18
|
message: OK
|
19
|
-
headers:
|
20
|
-
Date:
|
19
|
+
headers:
|
20
|
+
Date:
|
21
21
|
- Wed, 15 May 2013 04:22:41 GMT
|
22
|
-
X-Keep-Alive-Count:
|
22
|
+
X-Keep-Alive-Count:
|
23
23
|
- "1"
|
24
|
-
Server:
|
24
|
+
Server:
|
25
25
|
- cpsrvd/11.36.0.4
|
26
|
-
Content-Type:
|
26
|
+
Content-Type:
|
27
27
|
- application/json; charset="utf-8"
|
28
|
-
Content-Length:
|
28
|
+
Content-Length:
|
29
29
|
- "330"
|
30
|
-
Keep-Alive:
|
30
|
+
Keep-Alive:
|
31
31
|
- timeout=70, max=200
|
32
|
-
Connection:
|
32
|
+
Connection:
|
33
33
|
- Keep-Alive
|
34
|
-
body:
|
34
|
+
body:
|
35
35
|
string: "{\"cpanelresult\":{\"func\":\"statfiles\",\"module\":\"Fileman\",\"apiversion\":2,\"data\":[{\"user\":\"lumberg\",\"group\":\"lumberg\",\"mimeinfo\":\"homeb\",\"type\":\"dir\",\"ctime\":\"1368587735\",\"size\":4096,\"path\":\"/home\",\"gid\":520,\"file\":\"lumberg\",\"nicemode\":\"0711\",\"mtime\":\"1368587735\",\"mode\":16841,\"humansize\":\"4\xC2\xA0KB\",\"uid\":\"522\"}],\"event\":{\"result\":1}}}\n"
|
36
|
-
http_version:
|
36
|
+
http_version:
|
37
37
|
recorded_at: Wed, 15 May 2013 04:18:00 GMT
|
38
38
|
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=cpanel&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=adddb&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:05 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '110'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"adddb\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:07 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=cpanel_test.com&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=addhost&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:18 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '112'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"addhost\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:21 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|