BtSync 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/.travis.yml +1 -0
- data/Vagrantfile +31 -0
- data/cookbooks/apt/.gitignore +14 -0
- data/cookbooks/apt/.kitchen.yml +38 -0
- data/cookbooks/apt/Berksfile +8 -0
- data/cookbooks/apt/CHANGELOG.md +97 -0
- data/cookbooks/apt/CONTRIBUTING +29 -0
- data/cookbooks/apt/LICENSE +201 -0
- data/cookbooks/apt/README.md +243 -0
- data/cookbooks/apt/TESTING.md +25 -0
- data/cookbooks/apt/attributes/default.rb +4 -0
- data/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
- data/cookbooks/apt/metadata.json +1 -0
- data/cookbooks/apt/metadata.rb +30 -0
- data/cookbooks/apt/providers/preference.rb +61 -0
- data/cookbooks/apt/providers/repository.rb +132 -0
- data/cookbooks/apt/recipes/cacher-client.rb +59 -0
- data/cookbooks/apt/recipes/cacher-ng.rb +40 -0
- data/cookbooks/apt/recipes/default.rb +68 -0
- data/cookbooks/apt/resources/preference.rb +30 -0
- data/cookbooks/apt/resources/repository.rb +40 -0
- data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +174 -0
- data/cookbooks/apt/templates/default/01proxy.erb +2 -0
- data/cookbooks/apt/templates/default/acng.conf.erb +276 -0
- data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +270 -0
- data/cookbooks/btsync/README.md +2 -0
- data/cookbooks/btsync/metadata.rb +14 -0
- data/cookbooks/btsync/recipes/default.rb +13 -0
- data/cookbooks/build-essential/.gitignore +4 -0
- data/cookbooks/build-essential/.kitchen.yml +42 -0
- data/cookbooks/build-essential/Berksfile +3 -0
- data/cookbooks/build-essential/CHANGELOG.md +42 -0
- data/cookbooks/build-essential/CONTRIBUTING +29 -0
- data/cookbooks/build-essential/LICENSE +201 -0
- data/cookbooks/build-essential/README.md +139 -0
- data/cookbooks/build-essential/TESTING.md +25 -0
- data/cookbooks/build-essential/attributes/default.rb +33 -0
- data/cookbooks/build-essential/metadata.json +44 -0
- data/cookbooks/build-essential/metadata.rb +16 -0
- data/cookbooks/build-essential/recipes/debian.rb +45 -0
- data/cookbooks/build-essential/recipes/default.rb +24 -0
- data/cookbooks/build-essential/recipes/fedora.rb +36 -0
- data/cookbooks/build-essential/recipes/mac_os_x.rb +40 -0
- data/cookbooks/build-essential/recipes/rhel.rb +43 -0
- data/cookbooks/build-essential/recipes/smartos.rb +36 -0
- data/cookbooks/build-essential/recipes/solaris2.rb +42 -0
- data/cookbooks/build-essential/recipes/suse.rb +36 -0
- data/lib/btsync.rb +13 -13
- data/lib/btsync/communicator.rb +14 -4
- data/lib/btsync/directory.rb +12 -12
- data/lib/btsync/version.rb +1 -1
- data/spec/BtSync/bt_sync_spec.rb +13 -9
- data/spec/BtSync/directory_spec.rb +13 -20
- data/spec/fixtures/cassettes/{get-known-hosts.yml → Remove-Default-Host.yml} +5 -5
- data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +289 -12
- data/spec/fixtures/cassettes/Setup-BtSync.yml +252 -0
- data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +8 -38
- data/spec/fixtures/cassettes/add-folder-list.yml +32 -35
- data/spec/fixtures/cassettes/add-folder.yml +10 -94
- data/spec/fixtures/cassettes/add-known-host.yml +6 -6
- data/spec/fixtures/cassettes/change_download_limit.yml +15 -42
- data/spec/fixtures/cassettes/change_listening_port.yml +15 -42
- data/spec/fixtures/cassettes/change_name.yml +13 -40
- data/spec/fixtures/cassettes/change_upload_limit.yml +15 -42
- data/spec/fixtures/cassettes/get-folders.yml +54 -24
- data/spec/fixtures/cassettes/get-os-type.yml +3 -30
- data/spec/fixtures/cassettes/get-peers.yml +7 -8
- data/spec/fixtures/cassettes/get-preferences.yml +24 -24
- data/spec/fixtures/cassettes/get-settings.yml +6 -33
- data/spec/fixtures/cassettes/get-version.yml +3 -30
- data/spec/fixtures/cassettes/remove-folder-list.yml +18 -20
- data/spec/fixtures/cassettes/remove-folder.yml +35 -38
- data/spec/fixtures/cassettes/remove-known-host.yml +6 -6
- data/spec/fixtures/cassettes/reset_device_name.yml +13 -13
- data/spec/fixtures/cassettes/reset_download_limit.yml +15 -15
- data/spec/fixtures/cassettes/reset_listening_port.yml +15 -15
- data/spec/fixtures/cassettes/reset_upload_limit.yml +15 -15
- 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 +5 -5
- metadata +52 -4
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui/?action=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=removeknownhosts&index=0&name=/home/vagrant&output=json&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=TotE2NElyDGhazP4Fk3b
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,14 +17,14 @@ http_interactions:
|
|
17
17
|
Connection:
|
18
18
|
- keep-alive
|
19
19
|
Content-Length:
|
20
|
-
- '
|
20
|
+
- '4'
|
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: ! '{
|
27
|
+
string: ! '{ }'
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
30
30
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui/token.html?output=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,23 +19,23 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- text/html
|
21
21
|
Set-Cookie:
|
22
|
-
- GUID=
|
22
|
+
- GUID=oSOYFPariyKyDcK5cH6T; path=/
|
23
23
|
Cache-Control:
|
24
24
|
- no-cache
|
25
25
|
body:
|
26
26
|
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>
|
27
|
+
string: <html><div id='token' style='display:none;'>FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA</div></html>
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
30
30
|
- request:
|
31
31
|
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=
|
32
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
39
39
|
response:
|
40
40
|
status:
|
41
41
|
code: 200
|
@@ -44,17 +44,294 @@ http_interactions:
|
|
44
44
|
Connection:
|
45
45
|
- keep-alive
|
46
46
|
Content-Length:
|
47
|
-
- '
|
47
|
+
- '97'
|
48
48
|
Content-Type:
|
49
49
|
- application/json; charset=utf-8
|
50
50
|
Cache-Control:
|
51
51
|
- no-cache
|
52
52
|
body:
|
53
53
|
encoding: US-ASCII
|
54
|
-
string: ! '{ "
|
55
|
-
|
56
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
57
|
-
} ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
54
|
+
string: ! '{ "rosecret": "RMXU6JFFMDZCWJM5U6SH6HN5X4C3BQOLG", "secret": "KSOH3TGB6AUFPDABYZYN3AUI7HBOHOWR"
|
55
|
+
}'
|
58
56
|
http_version:
|
59
|
-
recorded_at:
|
57
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
58
|
+
- request:
|
59
|
+
method: get
|
60
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/home/vagrant&output=json&secret=KSOH3TGB6AUFPDABYZYN3AUI7HBOHOWR&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ''
|
64
|
+
headers:
|
65
|
+
Cookie:
|
66
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 200
|
70
|
+
message: OK
|
71
|
+
headers:
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Content-Length:
|
75
|
+
- '153'
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
Cache-Control:
|
79
|
+
- no-cache
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{ "error": 200, "message": "Selected folder is already added to BitTorrent
|
83
|
+
Sync.", "n": "\/home\/vagrant", "secret": "KSOH3TGB6AUFPDABYZYN3AUI7HBOHOWR"
|
84
|
+
}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ''
|
93
|
+
headers:
|
94
|
+
Cookie:
|
95
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
96
|
+
response:
|
97
|
+
status:
|
98
|
+
code: 200
|
99
|
+
message: OK
|
100
|
+
headers:
|
101
|
+
Connection:
|
102
|
+
- keep-alive
|
103
|
+
Content-Length:
|
104
|
+
- '132'
|
105
|
+
Content-Type:
|
106
|
+
- application/json; charset=utf-8
|
107
|
+
Cache-Control:
|
108
|
+
- no-cache
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
112
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
113
|
+
http_version:
|
114
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA&ulrate=0
|
118
|
+
body:
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ''
|
121
|
+
headers:
|
122
|
+
Cookie:
|
123
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Connection:
|
130
|
+
- keep-alive
|
131
|
+
Content-Length:
|
132
|
+
- '4'
|
133
|
+
Content-Type:
|
134
|
+
- application/json; charset=utf-8
|
135
|
+
Cache-Control:
|
136
|
+
- no-cache
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ! '{ }'
|
140
|
+
http_version:
|
141
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
142
|
+
- request:
|
143
|
+
method: get
|
144
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
Cookie:
|
150
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Connection:
|
157
|
+
- keep-alive
|
158
|
+
Content-Length:
|
159
|
+
- '132'
|
160
|
+
Content-Type:
|
161
|
+
- application/json; charset=utf-8
|
162
|
+
Cache-Control:
|
163
|
+
- no-cache
|
164
|
+
body:
|
165
|
+
encoding: US-ASCII
|
166
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
167
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
168
|
+
http_version:
|
169
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
170
|
+
- request:
|
171
|
+
method: get
|
172
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA&ulrate=0
|
173
|
+
body:
|
174
|
+
encoding: US-ASCII
|
175
|
+
string: ''
|
176
|
+
headers:
|
177
|
+
Cookie:
|
178
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
179
|
+
response:
|
180
|
+
status:
|
181
|
+
code: 200
|
182
|
+
message: OK
|
183
|
+
headers:
|
184
|
+
Connection:
|
185
|
+
- keep-alive
|
186
|
+
Content-Length:
|
187
|
+
- '4'
|
188
|
+
Content-Type:
|
189
|
+
- application/json; charset=utf-8
|
190
|
+
Cache-Control:
|
191
|
+
- no-cache
|
192
|
+
body:
|
193
|
+
encoding: US-ASCII
|
194
|
+
string: ! '{ }'
|
195
|
+
http_version:
|
196
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
197
|
+
- request:
|
198
|
+
method: get
|
199
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA
|
200
|
+
body:
|
201
|
+
encoding: US-ASCII
|
202
|
+
string: ''
|
203
|
+
headers:
|
204
|
+
Cookie:
|
205
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
206
|
+
response:
|
207
|
+
status:
|
208
|
+
code: 200
|
209
|
+
message: OK
|
210
|
+
headers:
|
211
|
+
Connection:
|
212
|
+
- keep-alive
|
213
|
+
Content-Length:
|
214
|
+
- '132'
|
215
|
+
Content-Type:
|
216
|
+
- application/json; charset=utf-8
|
217
|
+
Cache-Control:
|
218
|
+
- no-cache
|
219
|
+
body:
|
220
|
+
encoding: US-ASCII
|
221
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
222
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
223
|
+
http_version:
|
224
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
225
|
+
- request:
|
226
|
+
method: get
|
227
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA&ulrate=0
|
228
|
+
body:
|
229
|
+
encoding: US-ASCII
|
230
|
+
string: ''
|
231
|
+
headers:
|
232
|
+
Cookie:
|
233
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
234
|
+
response:
|
235
|
+
status:
|
236
|
+
code: 200
|
237
|
+
message: OK
|
238
|
+
headers:
|
239
|
+
Connection:
|
240
|
+
- keep-alive
|
241
|
+
Content-Length:
|
242
|
+
- '4'
|
243
|
+
Content-Type:
|
244
|
+
- application/json; charset=utf-8
|
245
|
+
Cache-Control:
|
246
|
+
- no-cache
|
247
|
+
body:
|
248
|
+
encoding: US-ASCII
|
249
|
+
string: ! '{ }'
|
250
|
+
http_version:
|
251
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
252
|
+
- request:
|
253
|
+
method: get
|
254
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA
|
255
|
+
body:
|
256
|
+
encoding: US-ASCII
|
257
|
+
string: ''
|
258
|
+
headers:
|
259
|
+
Cookie:
|
260
|
+
- GUID=oSOYFPariyKyDcK5cH6T
|
261
|
+
response:
|
262
|
+
status:
|
263
|
+
code: 200
|
264
|
+
message: OK
|
265
|
+
headers:
|
266
|
+
Connection:
|
267
|
+
- keep-alive
|
268
|
+
Content-Length:
|
269
|
+
- '180'
|
270
|
+
Content-Type:
|
271
|
+
- application/json; charset=utf-8
|
272
|
+
Cache-Control:
|
273
|
+
- no-cache
|
274
|
+
body:
|
275
|
+
encoding: US-ASCII
|
276
|
+
string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
|
277
|
+
"XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" } ], "speed":
|
278
|
+
"0.0 kB\/s up, 0.0 kB\/s down" }'
|
279
|
+
http_version:
|
280
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
281
|
+
- request:
|
282
|
+
method: get
|
283
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
284
|
+
body:
|
285
|
+
encoding: US-ASCII
|
286
|
+
string: ''
|
287
|
+
headers: {}
|
288
|
+
response:
|
289
|
+
status:
|
290
|
+
code: 200
|
291
|
+
message: OK
|
292
|
+
headers:
|
293
|
+
Connection:
|
294
|
+
- keep-alive
|
295
|
+
Content-Length:
|
296
|
+
- '121'
|
297
|
+
Content-Type:
|
298
|
+
- text/html
|
299
|
+
Set-Cookie:
|
300
|
+
- GUID=TotE2NElyDGhazP4Fk3b; path=/
|
301
|
+
Cache-Control:
|
302
|
+
- no-cache
|
303
|
+
body:
|
304
|
+
encoding: US-ASCII
|
305
|
+
string: <html><div id='token' style='display:none;'>RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA</div></html>
|
306
|
+
http_version:
|
307
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
308
|
+
- request:
|
309
|
+
method: get
|
310
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
|
311
|
+
body:
|
312
|
+
encoding: US-ASCII
|
313
|
+
string: ''
|
314
|
+
headers:
|
315
|
+
Cookie:
|
316
|
+
- GUID=TotE2NElyDGhazP4Fk3b
|
317
|
+
response:
|
318
|
+
status:
|
319
|
+
code: 200
|
320
|
+
message: OK
|
321
|
+
headers:
|
322
|
+
Connection:
|
323
|
+
- keep-alive
|
324
|
+
Content-Length:
|
325
|
+
- '180'
|
326
|
+
Content-Type:
|
327
|
+
- application/json; charset=utf-8
|
328
|
+
Cache-Control:
|
329
|
+
- no-cache
|
330
|
+
body:
|
331
|
+
encoding: US-ASCII
|
332
|
+
string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
|
333
|
+
"XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" } ], "speed":
|
334
|
+
"0.0 kB\/s up, 0.0 kB\/s down" }'
|
335
|
+
http_version:
|
336
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
60
337
|
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,252 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Connection:
|
16
|
+
- keep-alive
|
17
|
+
Content-Length:
|
18
|
+
- '121'
|
19
|
+
Content-Type:
|
20
|
+
- text/html
|
21
|
+
Set-Cookie:
|
22
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv; path=/
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: <html><div id='token' style='display:none;'>u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA</div></html>
|
28
|
+
http_version:
|
29
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
30
|
+
- request:
|
31
|
+
method: get
|
32
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ''
|
36
|
+
headers:
|
37
|
+
Cookie:
|
38
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
39
|
+
response:
|
40
|
+
status:
|
41
|
+
code: 200
|
42
|
+
message: OK
|
43
|
+
headers:
|
44
|
+
Connection:
|
45
|
+
- keep-alive
|
46
|
+
Content-Length:
|
47
|
+
- '97'
|
48
|
+
Content-Type:
|
49
|
+
- application/json; charset=utf-8
|
50
|
+
Cache-Control:
|
51
|
+
- no-cache
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{ "rosecret": "RQNZJMSPFXAKR4H5245OZIU4KNS3CFX23", "secret": "WDKTWVJYVXUBHLDXQL5NXQ54HL72EF7Q"
|
55
|
+
}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
58
|
+
- request:
|
59
|
+
method: get
|
60
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/home/vagrant&output=json&secret=WDKTWVJYVXUBHLDXQL5NXQ54HL72EF7Q&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ''
|
64
|
+
headers:
|
65
|
+
Cookie:
|
66
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 200
|
70
|
+
message: OK
|
71
|
+
headers:
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Content-Length:
|
75
|
+
- '153'
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
Cache-Control:
|
79
|
+
- no-cache
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{ "error": 200, "message": "Selected folder is already added to BitTorrent
|
83
|
+
Sync.", "n": "\/home\/vagrant", "secret": "WDKTWVJYVXUBHLDXQL5NXQ54HL72EF7Q"
|
84
|
+
}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ''
|
93
|
+
headers:
|
94
|
+
Cookie:
|
95
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
96
|
+
response:
|
97
|
+
status:
|
98
|
+
code: 200
|
99
|
+
message: OK
|
100
|
+
headers:
|
101
|
+
Connection:
|
102
|
+
- keep-alive
|
103
|
+
Content-Length:
|
104
|
+
- '132'
|
105
|
+
Content-Type:
|
106
|
+
- application/json; charset=utf-8
|
107
|
+
Cache-Control:
|
108
|
+
- no-cache
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
112
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
113
|
+
http_version:
|
114
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=0
|
118
|
+
body:
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ''
|
121
|
+
headers:
|
122
|
+
Cookie:
|
123
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Connection:
|
130
|
+
- keep-alive
|
131
|
+
Content-Length:
|
132
|
+
- '4'
|
133
|
+
Content-Type:
|
134
|
+
- application/json; charset=utf-8
|
135
|
+
Cache-Control:
|
136
|
+
- no-cache
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ! '{ }'
|
140
|
+
http_version:
|
141
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
142
|
+
- request:
|
143
|
+
method: get
|
144
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
Cookie:
|
150
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Connection:
|
157
|
+
- keep-alive
|
158
|
+
Content-Length:
|
159
|
+
- '132'
|
160
|
+
Content-Type:
|
161
|
+
- application/json; charset=utf-8
|
162
|
+
Cache-Control:
|
163
|
+
- no-cache
|
164
|
+
body:
|
165
|
+
encoding: US-ASCII
|
166
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
167
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
168
|
+
http_version:
|
169
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
170
|
+
- request:
|
171
|
+
method: get
|
172
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=0
|
173
|
+
body:
|
174
|
+
encoding: US-ASCII
|
175
|
+
string: ''
|
176
|
+
headers:
|
177
|
+
Cookie:
|
178
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
179
|
+
response:
|
180
|
+
status:
|
181
|
+
code: 200
|
182
|
+
message: OK
|
183
|
+
headers:
|
184
|
+
Connection:
|
185
|
+
- keep-alive
|
186
|
+
Content-Length:
|
187
|
+
- '4'
|
188
|
+
Content-Type:
|
189
|
+
- application/json; charset=utf-8
|
190
|
+
Cache-Control:
|
191
|
+
- no-cache
|
192
|
+
body:
|
193
|
+
encoding: US-ASCII
|
194
|
+
string: ! '{ }'
|
195
|
+
http_version:
|
196
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
197
|
+
- request:
|
198
|
+
method: get
|
199
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
200
|
+
body:
|
201
|
+
encoding: US-ASCII
|
202
|
+
string: ''
|
203
|
+
headers:
|
204
|
+
Cookie:
|
205
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
206
|
+
response:
|
207
|
+
status:
|
208
|
+
code: 200
|
209
|
+
message: OK
|
210
|
+
headers:
|
211
|
+
Connection:
|
212
|
+
- keep-alive
|
213
|
+
Content-Length:
|
214
|
+
- '132'
|
215
|
+
Content-Type:
|
216
|
+
- application/json; charset=utf-8
|
217
|
+
Cache-Control:
|
218
|
+
- no-cache
|
219
|
+
body:
|
220
|
+
encoding: US-ASCII
|
221
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
222
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
223
|
+
http_version:
|
224
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
225
|
+
- request:
|
226
|
+
method: get
|
227
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=0
|
228
|
+
body:
|
229
|
+
encoding: US-ASCII
|
230
|
+
string: ''
|
231
|
+
headers:
|
232
|
+
Cookie:
|
233
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
234
|
+
response:
|
235
|
+
status:
|
236
|
+
code: 200
|
237
|
+
message: OK
|
238
|
+
headers:
|
239
|
+
Connection:
|
240
|
+
- keep-alive
|
241
|
+
Content-Length:
|
242
|
+
- '4'
|
243
|
+
Content-Type:
|
244
|
+
- application/json; charset=utf-8
|
245
|
+
Cache-Control:
|
246
|
+
- no-cache
|
247
|
+
body:
|
248
|
+
encoding: US-ASCII
|
249
|
+
string: ! '{ }'
|
250
|
+
http_version:
|
251
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
252
|
+
recorded_with: VCR 2.5.0
|