BtSync 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -0
  4. data/Vagrantfile +31 -0
  5. data/cookbooks/apt/.gitignore +14 -0
  6. data/cookbooks/apt/.kitchen.yml +38 -0
  7. data/cookbooks/apt/Berksfile +8 -0
  8. data/cookbooks/apt/CHANGELOG.md +97 -0
  9. data/cookbooks/apt/CONTRIBUTING +29 -0
  10. data/cookbooks/apt/LICENSE +201 -0
  11. data/cookbooks/apt/README.md +243 -0
  12. data/cookbooks/apt/TESTING.md +25 -0
  13. data/cookbooks/apt/attributes/default.rb +4 -0
  14. data/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
  15. data/cookbooks/apt/metadata.json +1 -0
  16. data/cookbooks/apt/metadata.rb +30 -0
  17. data/cookbooks/apt/providers/preference.rb +61 -0
  18. data/cookbooks/apt/providers/repository.rb +132 -0
  19. data/cookbooks/apt/recipes/cacher-client.rb +59 -0
  20. data/cookbooks/apt/recipes/cacher-ng.rb +40 -0
  21. data/cookbooks/apt/recipes/default.rb +68 -0
  22. data/cookbooks/apt/resources/preference.rb +30 -0
  23. data/cookbooks/apt/resources/repository.rb +40 -0
  24. data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +174 -0
  25. data/cookbooks/apt/templates/default/01proxy.erb +2 -0
  26. data/cookbooks/apt/templates/default/acng.conf.erb +276 -0
  27. data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +270 -0
  28. data/cookbooks/btsync/README.md +2 -0
  29. data/cookbooks/btsync/metadata.rb +14 -0
  30. data/cookbooks/btsync/recipes/default.rb +13 -0
  31. data/cookbooks/build-essential/.gitignore +4 -0
  32. data/cookbooks/build-essential/.kitchen.yml +42 -0
  33. data/cookbooks/build-essential/Berksfile +3 -0
  34. data/cookbooks/build-essential/CHANGELOG.md +42 -0
  35. data/cookbooks/build-essential/CONTRIBUTING +29 -0
  36. data/cookbooks/build-essential/LICENSE +201 -0
  37. data/cookbooks/build-essential/README.md +139 -0
  38. data/cookbooks/build-essential/TESTING.md +25 -0
  39. data/cookbooks/build-essential/attributes/default.rb +33 -0
  40. data/cookbooks/build-essential/metadata.json +44 -0
  41. data/cookbooks/build-essential/metadata.rb +16 -0
  42. data/cookbooks/build-essential/recipes/debian.rb +45 -0
  43. data/cookbooks/build-essential/recipes/default.rb +24 -0
  44. data/cookbooks/build-essential/recipes/fedora.rb +36 -0
  45. data/cookbooks/build-essential/recipes/mac_os_x.rb +40 -0
  46. data/cookbooks/build-essential/recipes/rhel.rb +43 -0
  47. data/cookbooks/build-essential/recipes/smartos.rb +36 -0
  48. data/cookbooks/build-essential/recipes/solaris2.rb +42 -0
  49. data/cookbooks/build-essential/recipes/suse.rb +36 -0
  50. data/lib/btsync.rb +13 -13
  51. data/lib/btsync/communicator.rb +14 -4
  52. data/lib/btsync/directory.rb +12 -12
  53. data/lib/btsync/version.rb +1 -1
  54. data/spec/BtSync/bt_sync_spec.rb +13 -9
  55. data/spec/BtSync/directory_spec.rb +13 -20
  56. data/spec/fixtures/cassettes/{get-known-hosts.yml → Remove-Default-Host.yml} +5 -5
  57. data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +289 -12
  58. data/spec/fixtures/cassettes/Setup-BtSync.yml +252 -0
  59. data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +8 -38
  60. data/spec/fixtures/cassettes/add-folder-list.yml +32 -35
  61. data/spec/fixtures/cassettes/add-folder.yml +10 -94
  62. data/spec/fixtures/cassettes/add-known-host.yml +6 -6
  63. data/spec/fixtures/cassettes/change_download_limit.yml +15 -42
  64. data/spec/fixtures/cassettes/change_listening_port.yml +15 -42
  65. data/spec/fixtures/cassettes/change_name.yml +13 -40
  66. data/spec/fixtures/cassettes/change_upload_limit.yml +15 -42
  67. data/spec/fixtures/cassettes/get-folders.yml +54 -24
  68. data/spec/fixtures/cassettes/get-os-type.yml +3 -30
  69. data/spec/fixtures/cassettes/get-peers.yml +7 -8
  70. data/spec/fixtures/cassettes/get-preferences.yml +24 -24
  71. data/spec/fixtures/cassettes/get-settings.yml +6 -33
  72. data/spec/fixtures/cassettes/get-version.yml +3 -30
  73. data/spec/fixtures/cassettes/remove-folder-list.yml +18 -20
  74. data/spec/fixtures/cassettes/remove-folder.yml +35 -38
  75. data/spec/fixtures/cassettes/remove-known-host.yml +6 -6
  76. data/spec/fixtures/cassettes/reset_device_name.yml +13 -13
  77. data/spec/fixtures/cassettes/reset_download_limit.yml +15 -15
  78. data/spec/fixtures/cassettes/reset_listening_port.yml +15 -15
  79. data/spec/fixtures/cassettes/reset_upload_limit.yml +15 -15
  80. data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
  81. data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
  82. data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
  83. data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
  84. data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
  85. data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
  86. data/spec/fixtures/cassettes/view-folders.yml +5 -5
  87. 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=getknownhosts&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
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=SZGEavWRWlylZwpb4y1U
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
- - '60'
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: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" } ] }'
27
+ string: ! '{ }'
28
28
  http_version:
29
- recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
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=text
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=cQaFdm1vWSBv9LvephVY; path=/
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;'>QLBnhvyW_0jKDqQDwuhTM-1X6DfFF7xJDNSq4G5QowPTdzMqbGLGBn-DtlEAAAAA</div></html>
27
+ string: <html><div id='token' style='display:none;'>FtMlGFaG-UGhYqewQBmHsklKwM3z3AaVmSQmJ_nced9Ku40971WYlATBuFEAAAAA</div></html>
28
28
  http_version:
29
- recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
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=getsyncfolders&output=json&token=QLBnhvyW_0jKDqQDwuhTM-1X6DfFF7xJDNSq4G5QowPTdzMqbGLGBn-DtlEAAAAA
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=cQaFdm1vWSBv9LvephVY
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
- - '270'
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: ! '{ "folders": [ { "name": "\/home\/chris\/Documents", "peers": [ {
55
- "direct": 1, "name": "IceyEC Portable", "status": "Synced on 06\/05\/13 20:52:35"
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: Tue, 11 Jun 2013 01:55:14 GMT
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