BtSync 0.5.3 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.rubocop.yml +3 -0
- data/.travis.yml +2 -2
- data/README.md +1 -0
- data/btsync.gemspec +1 -0
- data/lib/btsync.rb +90 -50
- data/lib/btsync/communicator.rb +36 -15
- data/lib/btsync/directory.rb +106 -51
- data/lib/btsync/version.rb +2 -1
- data/spec/BtSync/bt_sync_spec.rb +85 -59
- data/spec/BtSync/directory_spec.rb +77 -30
- data/spec/fixtures/cassettes/Remove-Default-Host.yml +3 -3
- data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +48 -46
- data/spec/fixtures/cassettes/Setup-BtSync.yml +287 -32
- data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +6 -6
- data/spec/fixtures/cassettes/add-folder-list.yml +33 -30
- data/spec/fixtures/cassettes/add-folder.yml +67 -10
- data/spec/fixtures/cassettes/add-known-host.yml +8 -9
- data/spec/fixtures/cassettes/change_download_limit.yml +9 -9
- data/spec/fixtures/cassettes/change_listening_port.yml +9 -9
- data/spec/fixtures/cassettes/change_name.yml +9 -9
- data/spec/fixtures/cassettes/change_secret_custom.yml +59 -0
- data/spec/fixtures/cassettes/change_secret_empty.yml +59 -0
- data/spec/fixtures/cassettes/change_secret_error.yml +30 -0
- data/spec/fixtures/cassettes/change_upload_limit.yml +9 -9
- data/spec/fixtures/cassettes/check_for_new_version.yml +30 -0
- data/spec/fixtures/cassettes/check_is_writable.yml +32 -0
- data/spec/fixtures/cassettes/check_speeds.yml +33 -0
- data/spec/fixtures/cassettes/delete-directory.yml +379 -0
- data/spec/fixtures/cassettes/get-folders.yml +19 -76
- data/spec/fixtures/cassettes/get-os-type.yml +3 -3
- data/spec/fixtures/cassettes/get-peers.yml +8 -7
- data/spec/fixtures/cassettes/get-preferences.yml +24 -24
- data/spec/fixtures/cassettes/get-settings.yml +3 -3
- data/spec/fixtures/cassettes/get_dir.yml +93 -0
- data/spec/fixtures/cassettes/get_read_only_secret.yml +32 -0
- data/spec/fixtures/cassettes/{get-version.yml → get_version.yml} +4 -4
- data/spec/fixtures/cassettes/remove-folder-list.yml +19 -17
- data/spec/fixtures/cassettes/remove-folder.yml +36 -33
- data/spec/fixtures/cassettes/remove-known-host.yml +35 -8
- data/spec/fixtures/cassettes/reset_device_name.yml +9 -9
- data/spec/fixtures/cassettes/reset_download_limit.yml +9 -9
- data/spec/fixtures/cassettes/reset_listening_port.yml +9 -9
- data/spec/fixtures/cassettes/reset_secret.yml +31 -0
- data/spec/fixtures/cassettes/reset_upload_limit.yml +9 -9
- data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
- data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
- data/spec/fixtures/cassettes/view-folders.yml +3 -3
- data/spec/spec_helper.rb +7 -8
- metadata +39 -4
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=sOLWWUio3fKfRmCLVW4c
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,19 +17,19 @@ http_interactions:
|
|
17
17
|
Connection:
|
18
18
|
- keep-alive
|
19
19
|
Content-Length:
|
20
|
-
- '
|
20
|
+
- '252'
|
21
21
|
Content-Type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
Cache-Control:
|
24
24
|
- no-cache
|
25
25
|
body:
|
26
26
|
encoding: US-ASCII
|
27
|
-
string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers":
|
28
|
-
|
29
|
-
"
|
30
|
-
|
27
|
+
string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
|
28
|
+
[ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
|
29
|
+
"size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
|
30
|
+
}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
35
|
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
@@ -49,23 +49,23 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- text/html
|
51
51
|
Set-Cookie:
|
52
|
-
- GUID=
|
52
|
+
- GUID=H0S5gpTkMp9aypH0ez0H; path=/
|
53
53
|
Cache-Control:
|
54
54
|
- no-cache
|
55
55
|
body:
|
56
56
|
encoding: US-ASCII
|
57
|
-
string: <html><div id='token' style='display:none;'>
|
57
|
+
string: <html><div id='token' style='display:none;'>7jBbmmvQ5cIKsvVmyXBEMx8EQ6ymDv1VNMYV-TF9MRqEBX5p4snR1ieMxFEAAAAA</div></html>
|
58
58
|
http_version:
|
59
|
-
recorded_at:
|
59
|
+
recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
|
60
60
|
- request:
|
61
61
|
method: get
|
62
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
62
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=7jBbmmvQ5cIKsvVmyXBEMx8EQ6ymDv1VNMYV-TF9MRqEBX5p4snR1ieMxFEAAAAA
|
63
63
|
body:
|
64
64
|
encoding: US-ASCII
|
65
65
|
string: ''
|
66
66
|
headers:
|
67
67
|
Cookie:
|
68
|
-
- GUID=
|
68
|
+
- GUID=H0S5gpTkMp9aypH0ez0H
|
69
69
|
response:
|
70
70
|
status:
|
71
71
|
code: 200
|
@@ -74,74 +74,17 @@ http_interactions:
|
|
74
74
|
Connection:
|
75
75
|
- keep-alive
|
76
76
|
Content-Length:
|
77
|
-
- '
|
77
|
+
- '252'
|
78
78
|
Content-Type:
|
79
79
|
- application/json; charset=utf-8
|
80
80
|
Cache-Control:
|
81
81
|
- no-cache
|
82
82
|
body:
|
83
83
|
encoding: US-ASCII
|
84
|
-
string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers":
|
85
|
-
|
86
|
-
"
|
87
|
-
|
84
|
+
string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
|
85
|
+
[ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
|
86
|
+
"size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
|
87
|
+
}'
|
88
88
|
http_version:
|
89
|
-
recorded_at:
|
90
|
-
- request:
|
91
|
-
method: get
|
92
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
93
|
-
body:
|
94
|
-
encoding: US-ASCII
|
95
|
-
string: ''
|
96
|
-
headers: {}
|
97
|
-
response:
|
98
|
-
status:
|
99
|
-
code: 200
|
100
|
-
message: OK
|
101
|
-
headers:
|
102
|
-
Connection:
|
103
|
-
- keep-alive
|
104
|
-
Content-Length:
|
105
|
-
- '121'
|
106
|
-
Content-Type:
|
107
|
-
- text/html
|
108
|
-
Set-Cookie:
|
109
|
-
- GUID=5Dj0twOZkxhIF0RMxcOQ; path=/
|
110
|
-
Cache-Control:
|
111
|
-
- no-cache
|
112
|
-
body:
|
113
|
-
encoding: US-ASCII
|
114
|
-
string: <html><div id='token' style='display:none;'>d0Zero0v6QBesCqPjvMZvUxX3Ua6ENpfSOlM65Ezr4lxGNBixtwuOgPBuFEAAAAA</div></html>
|
115
|
-
http_version:
|
116
|
-
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
117
|
-
- request:
|
118
|
-
method: get
|
119
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=d0Zero0v6QBesCqPjvMZvUxX3Ua6ENpfSOlM65Ezr4lxGNBixtwuOgPBuFEAAAAA
|
120
|
-
body:
|
121
|
-
encoding: US-ASCII
|
122
|
-
string: ''
|
123
|
-
headers:
|
124
|
-
Cookie:
|
125
|
-
- GUID=5Dj0twOZkxhIF0RMxcOQ
|
126
|
-
response:
|
127
|
-
status:
|
128
|
-
code: 200
|
129
|
-
message: OK
|
130
|
-
headers:
|
131
|
-
Connection:
|
132
|
-
- keep-alive
|
133
|
-
Content-Length:
|
134
|
-
- '294'
|
135
|
-
Content-Type:
|
136
|
-
- application/json; charset=utf-8
|
137
|
-
Cache-Control:
|
138
|
-
- no-cache
|
139
|
-
body:
|
140
|
-
encoding: US-ASCII
|
141
|
-
string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
|
142
|
-
"XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" }, { "name":
|
143
|
-
"\/tmp", "peers": [ ], "secret": "P34SXCT2FYOBCEALZJIHEMBUO745JRNT", "size":
|
144
|
-
"114.8 kB in 48 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
145
|
-
http_version:
|
146
|
-
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
89
|
+
recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
|
147
90
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getostype&output=json&token=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getostype&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=sOLWWUio3fKfRmCLVW4c
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -26,5 +26,5 @@ http_interactions:
|
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ "os": "linux" }'
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
|
30
30
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,16 +17,17 @@ http_interactions:
|
|
17
17
|
Connection:
|
18
18
|
- keep-alive
|
19
19
|
Content-Length:
|
20
|
-
- '
|
20
|
+
- '252'
|
21
21
|
Content-Type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
Cache-Control:
|
24
24
|
- no-cache
|
25
25
|
body:
|
26
26
|
encoding: US-ASCII
|
27
|
-
string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers":
|
28
|
-
|
29
|
-
"0.0 kB\/s up, 0.0 kB\/s down"
|
27
|
+
string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
|
28
|
+
[ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
|
29
|
+
"size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
|
30
|
+
}'
|
30
31
|
http_version:
|
31
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
|
32
33
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -25,19 +25,19 @@ http_interactions:
|
|
25
25
|
body:
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
-
"
|
28
|
+
"RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 1, "searchdht": 0, "searchlan":
|
29
29
|
1, "usehosts": 1, "usetracker": 1 } }'
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Fri, 21 Jun 2013 17:23:54 GMT
|
32
32
|
- request:
|
33
33
|
method: get
|
34
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
34
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
35
35
|
body:
|
36
36
|
encoding: US-ASCII
|
37
37
|
string: ''
|
38
38
|
headers:
|
39
39
|
Cookie:
|
40
|
-
- GUID=
|
40
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
41
41
|
response:
|
42
42
|
status:
|
43
43
|
code: 200
|
@@ -54,19 +54,19 @@ http_interactions:
|
|
54
54
|
body:
|
55
55
|
encoding: US-ASCII
|
56
56
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
57
|
-
"
|
57
|
+
"RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 1, "searchdht": 0, "searchlan":
|
58
58
|
1, "usehosts": 1, "usetracker": 1 } }'
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
60
|
+
recorded_at: Fri, 21 Jun 2013 17:23:54 GMT
|
61
61
|
- request:
|
62
62
|
method: get
|
63
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
63
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
64
64
|
body:
|
65
65
|
encoding: US-ASCII
|
66
66
|
string: ''
|
67
67
|
headers:
|
68
68
|
Cookie:
|
69
|
-
- GUID=
|
69
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
70
70
|
response:
|
71
71
|
status:
|
72
72
|
code: 200
|
@@ -83,19 +83,19 @@ http_interactions:
|
|
83
83
|
body:
|
84
84
|
encoding: US-ASCII
|
85
85
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
86
|
-
"
|
86
|
+
"RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 1, "searchdht": 0, "searchlan":
|
87
87
|
1, "usehosts": 1, "usetracker": 1 } }'
|
88
88
|
http_version:
|
89
|
-
recorded_at:
|
89
|
+
recorded_at: Fri, 21 Jun 2013 17:23:54 GMT
|
90
90
|
- request:
|
91
91
|
method: get
|
92
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
92
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
93
93
|
body:
|
94
94
|
encoding: US-ASCII
|
95
95
|
string: ''
|
96
96
|
headers:
|
97
97
|
Cookie:
|
98
|
-
- GUID=
|
98
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
99
99
|
response:
|
100
100
|
status:
|
101
101
|
code: 200
|
@@ -112,19 +112,19 @@ http_interactions:
|
|
112
112
|
body:
|
113
113
|
encoding: US-ASCII
|
114
114
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
115
|
-
"
|
115
|
+
"RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 1, "searchdht": 0, "searchlan":
|
116
116
|
1, "usehosts": 1, "usetracker": 1 } }'
|
117
117
|
http_version:
|
118
|
-
recorded_at:
|
118
|
+
recorded_at: Fri, 21 Jun 2013 17:23:54 GMT
|
119
119
|
- request:
|
120
120
|
method: get
|
121
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
121
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
122
122
|
body:
|
123
123
|
encoding: US-ASCII
|
124
124
|
string: ''
|
125
125
|
headers:
|
126
126
|
Cookie:
|
127
|
-
- GUID=
|
127
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
128
128
|
response:
|
129
129
|
status:
|
130
130
|
code: 200
|
@@ -141,19 +141,19 @@ http_interactions:
|
|
141
141
|
body:
|
142
142
|
encoding: US-ASCII
|
143
143
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
144
|
-
"
|
144
|
+
"RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 1, "searchdht": 0, "searchlan":
|
145
145
|
1, "usehosts": 1, "usetracker": 1 } }'
|
146
146
|
http_version:
|
147
|
-
recorded_at:
|
147
|
+
recorded_at: Fri, 21 Jun 2013 17:23:54 GMT
|
148
148
|
- request:
|
149
149
|
method: get
|
150
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=
|
150
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
|
151
151
|
body:
|
152
152
|
encoding: US-ASCII
|
153
153
|
string: ''
|
154
154
|
headers:
|
155
155
|
Cookie:
|
156
|
-
- GUID=
|
156
|
+
- GUID=rjaBHJHENSXofGDyyThi
|
157
157
|
response:
|
158
158
|
status:
|
159
159
|
code: 200
|
@@ -170,8 +170,8 @@ http_interactions:
|
|
170
170
|
body:
|
171
171
|
encoding: US-ASCII
|
172
172
|
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
173
|
-
"
|
173
|
+
"RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 1, "searchdht": 0, "searchlan":
|
174
174
|
1, "usehosts": 1, "usetracker": 1 } }'
|
175
175
|
http_version:
|
176
|
-
recorded_at:
|
176
|
+
recorded_at: Fri, 21 Jun 2013 17:23:54 GMT
|
177
177
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=sOLWWUio3fKfRmCLVW4c
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -27,5 +27,5 @@ http_interactions:
|
|
27
27
|
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
28
28
|
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
29
29
|
http_version:
|
30
|
-
recorded_at:
|
30
|
+
recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
|
31
31
|
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,93 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getdir&dir=/&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=sOLWWUio3fKfRmCLVW4c
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '270'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folders": [ "\/\/bin", "\/\/boot", "\/\/dev", "\/\/etc", "\/\/home",
|
28
|
+
"\/\/lib", "\/\/lost+found", "\/\/media", "\/\/mnt", "\/\/opt", "\/\/proc",
|
29
|
+
"\/\/root", "\/\/run", "\/\/sbin", "\/\/selinux", "\/\/srv", "\/\/sys", "\/\/tmp",
|
30
|
+
"\/\/usr", "\/\/vagrant", "\/\/var" ] }'
|
31
|
+
http_version:
|
32
|
+
recorded_at: Fri, 21 Jun 2013 17:23:50 GMT
|
33
|
+
- request:
|
34
|
+
method: get
|
35
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getdir&dir=/&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
|
36
|
+
body:
|
37
|
+
encoding: US-ASCII
|
38
|
+
string: ''
|
39
|
+
headers:
|
40
|
+
Cookie:
|
41
|
+
- GUID=sOLWWUio3fKfRmCLVW4c
|
42
|
+
response:
|
43
|
+
status:
|
44
|
+
code: 200
|
45
|
+
message: OK
|
46
|
+
headers:
|
47
|
+
Connection:
|
48
|
+
- keep-alive
|
49
|
+
Content-Length:
|
50
|
+
- '270'
|
51
|
+
Content-Type:
|
52
|
+
- application/json; charset=utf-8
|
53
|
+
Cache-Control:
|
54
|
+
- no-cache
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ! '{ "folders": [ "\/\/bin", "\/\/boot", "\/\/dev", "\/\/etc", "\/\/home",
|
58
|
+
"\/\/lib", "\/\/lost+found", "\/\/media", "\/\/mnt", "\/\/opt", "\/\/proc",
|
59
|
+
"\/\/root", "\/\/run", "\/\/sbin", "\/\/selinux", "\/\/srv", "\/\/sys", "\/\/tmp",
|
60
|
+
"\/\/usr", "\/\/vagrant", "\/\/var" ] }'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Fri, 21 Jun 2013 17:23:50 GMT
|
63
|
+
- request:
|
64
|
+
method: get
|
65
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getdir&dir=/&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
|
66
|
+
body:
|
67
|
+
encoding: US-ASCII
|
68
|
+
string: ''
|
69
|
+
headers:
|
70
|
+
Cookie:
|
71
|
+
- GUID=sOLWWUio3fKfRmCLVW4c
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Connection:
|
78
|
+
- keep-alive
|
79
|
+
Content-Length:
|
80
|
+
- '270'
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Cache-Control:
|
84
|
+
- no-cache
|
85
|
+
body:
|
86
|
+
encoding: US-ASCII
|
87
|
+
string: ! '{ "folders": [ "\/\/bin", "\/\/boot", "\/\/dev", "\/\/etc", "\/\/home",
|
88
|
+
"\/\/lib", "\/\/lost+found", "\/\/media", "\/\/mnt", "\/\/opt", "\/\/proc",
|
89
|
+
"\/\/root", "\/\/run", "\/\/sbin", "\/\/selinux", "\/\/srv", "\/\/sys", "\/\/tmp",
|
90
|
+
"\/\/usr", "\/\/vagrant", "\/\/var" ] }'
|
91
|
+
http_version:
|
92
|
+
recorded_at: Fri, 21 Jun 2013 17:23:50 GMT
|
93
|
+
recorded_with: VCR 2.5.0
|