BtSync 0.5.3 → 0.6.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.
Files changed (54) hide show
  1. checksums.yaml +8 -8
  2. data/.rubocop.yml +3 -0
  3. data/.travis.yml +2 -2
  4. data/README.md +1 -0
  5. data/btsync.gemspec +1 -0
  6. data/lib/btsync.rb +90 -50
  7. data/lib/btsync/communicator.rb +36 -15
  8. data/lib/btsync/directory.rb +106 -51
  9. data/lib/btsync/version.rb +2 -1
  10. data/spec/BtSync/bt_sync_spec.rb +85 -59
  11. data/spec/BtSync/directory_spec.rb +77 -30
  12. data/spec/fixtures/cassettes/Remove-Default-Host.yml +3 -3
  13. data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +48 -46
  14. data/spec/fixtures/cassettes/Setup-BtSync.yml +287 -32
  15. data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +6 -6
  16. data/spec/fixtures/cassettes/add-folder-list.yml +33 -30
  17. data/spec/fixtures/cassettes/add-folder.yml +67 -10
  18. data/spec/fixtures/cassettes/add-known-host.yml +8 -9
  19. data/spec/fixtures/cassettes/change_download_limit.yml +9 -9
  20. data/spec/fixtures/cassettes/change_listening_port.yml +9 -9
  21. data/spec/fixtures/cassettes/change_name.yml +9 -9
  22. data/spec/fixtures/cassettes/change_secret_custom.yml +59 -0
  23. data/spec/fixtures/cassettes/change_secret_empty.yml +59 -0
  24. data/spec/fixtures/cassettes/change_secret_error.yml +30 -0
  25. data/spec/fixtures/cassettes/change_upload_limit.yml +9 -9
  26. data/spec/fixtures/cassettes/check_for_new_version.yml +30 -0
  27. data/spec/fixtures/cassettes/check_is_writable.yml +32 -0
  28. data/spec/fixtures/cassettes/check_speeds.yml +33 -0
  29. data/spec/fixtures/cassettes/delete-directory.yml +379 -0
  30. data/spec/fixtures/cassettes/get-folders.yml +19 -76
  31. data/spec/fixtures/cassettes/get-os-type.yml +3 -3
  32. data/spec/fixtures/cassettes/get-peers.yml +8 -7
  33. data/spec/fixtures/cassettes/get-preferences.yml +24 -24
  34. data/spec/fixtures/cassettes/get-settings.yml +3 -3
  35. data/spec/fixtures/cassettes/get_dir.yml +93 -0
  36. data/spec/fixtures/cassettes/get_read_only_secret.yml +32 -0
  37. data/spec/fixtures/cassettes/{get-version.yml → get_version.yml} +4 -4
  38. data/spec/fixtures/cassettes/remove-folder-list.yml +19 -17
  39. data/spec/fixtures/cassettes/remove-folder.yml +36 -33
  40. data/spec/fixtures/cassettes/remove-known-host.yml +35 -8
  41. data/spec/fixtures/cassettes/reset_device_name.yml +9 -9
  42. data/spec/fixtures/cassettes/reset_download_limit.yml +9 -9
  43. data/spec/fixtures/cassettes/reset_listening_port.yml +9 -9
  44. data/spec/fixtures/cassettes/reset_secret.yml +31 -0
  45. data/spec/fixtures/cassettes/reset_upload_limit.yml +9 -9
  46. data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
  47. data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
  48. data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
  49. data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
  50. data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
  51. data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
  52. data/spec/fixtures/cassettes/view-folders.yml +3 -3
  53. data/spec/spec_helper.rb +7 -8
  54. metadata +39 -4
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=rjaBHJHENSXofGDyyThi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '97'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "rosecret": "RL4DSCN2QMNY3YDXA6Z2VGNMVGXVPFHJ3", "secret": "GL6MIESXJ62HZPDWU4U5AOUN5LJINSUW"
28
+ }'
29
+ http_version:
30
+ recorded_at: Fri, 21 Jun 2013 17:23:55 GMT
31
+ - request:
32
+ method: get
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=updatesecret&name=/home/vagrant&newsecret=GL6MIESXJ62HZPDWU4U5AOUN5LJINSUW&output=json&secret=6X4DBKMCXTMR67773Y7TLVUGQRWYLMGW&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers:
38
+ Cookie:
39
+ - GUID=rjaBHJHENSXofGDyyThi
40
+ response:
41
+ status:
42
+ code: 200
43
+ message: OK
44
+ headers:
45
+ Connection:
46
+ - keep-alive
47
+ Content-Length:
48
+ - '97'
49
+ Content-Type:
50
+ - application/json; charset=utf-8
51
+ Cache-Control:
52
+ - no-cache
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{ "rosecret": "RL4DSCN2QMNY3YDXA6Z2VGNMVGXVPFHJ3", "secret": "GL6MIESXJ62HZPDWU4U5AOUN5LJINSUW"
56
+ }'
57
+ http_version:
58
+ recorded_at: Fri, 21 Jun 2013 17:23:55 GMT
59
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=rjaBHJHENSXofGDyyThi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '97'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "rosecret": "RQ7OSN5O5GLLZR7UJKQVG5NT7WB2PVOR5", "secret": "6X4DBKMCXTMR67773Y7TLVUGQRWYLMGW"
28
+ }'
29
+ http_version:
30
+ recorded_at: Fri, 21 Jun 2013 17:23:55 GMT
31
+ - request:
32
+ method: get
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=updatesecret&name=/home/vagrant&newsecret=6X4DBKMCXTMR67773Y7TLVUGQRWYLMGW&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers:
38
+ Cookie:
39
+ - GUID=rjaBHJHENSXofGDyyThi
40
+ response:
41
+ status:
42
+ code: 200
43
+ message: OK
44
+ headers:
45
+ Connection:
46
+ - keep-alive
47
+ Content-Length:
48
+ - '97'
49
+ Content-Type:
50
+ - application/json; charset=utf-8
51
+ Cache-Control:
52
+ - no-cache
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{ "rosecret": "RQ7OSN5O5GLLZR7UJKQVG5NT7WB2PVOR5", "secret": "6X4DBKMCXTMR67773Y7TLVUGQRWYLMGW"
56
+ }'
57
+ http_version:
58
+ recorded_at: Fri, 21 Jun 2013 17:23:55 GMT
59
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=updatesecret&name=/home/vagrant&newsecret=123456&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=rjaBHJHENSXofGDyyThi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '4'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ }'
28
+ http_version:
29
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
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=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
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=7Sb1dvknwuyiiKy9xvYv
11
+ - GUID=sOLWWUio3fKfRmCLVW4c
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -27,16 +27,16 @@ 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: Wed, 12 Jun 2013 18:42:12 GMT
30
+ recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
31
31
  - request:
32
32
  method: get
33
- 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=1000
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=0&listeningport=63754&output=json&portmapping=0&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA&ulrate=1000
34
34
  body:
35
35
  encoding: US-ASCII
36
36
  string: ''
37
37
  headers:
38
38
  Cookie:
39
- - GUID=7Sb1dvknwuyiiKy9xvYv
39
+ - GUID=sOLWWUio3fKfRmCLVW4c
40
40
  response:
41
41
  status:
42
42
  code: 200
@@ -54,16 +54,16 @@ http_interactions:
54
54
  encoding: US-ASCII
55
55
  string: ! '{ }'
56
56
  http_version:
57
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
57
+ recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
58
58
  - request:
59
59
  method: get
60
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
60
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
61
61
  body:
62
62
  encoding: US-ASCII
63
63
  string: ''
64
64
  headers:
65
65
  Cookie:
66
- - GUID=7Sb1dvknwuyiiKy9xvYv
66
+ - GUID=sOLWWUio3fKfRmCLVW4c
67
67
  response:
68
68
  status:
69
69
  code: 200
@@ -82,5 +82,5 @@ http_interactions:
82
82
  string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
83
83
  0, "listeningport": 63754, "portmapping": 0, "ulrate": 1000 } }'
84
84
  http_version:
85
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
85
+ recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
86
86
  recorded_with: VCR 2.5.0
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=checknewversion&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
+ - '42'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "version": { "url": "", "version": 0 } }'
28
+ http_version:
29
+ recorded_at: Fri, 21 Jun 2013 17:36:50 GMT
30
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getfolderpref&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=rjaBHJHENSXofGDyyThi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '188'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "folderpref": { "deletetotrash": 0, "iswritable": 1, "readonlysecret":
28
+ "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "relay": 0, "searchdht": 1, "searchlan":
29
+ 0, "usehosts": 0, "usetracker": 0 } }'
30
+ http_version:
31
+ recorded_at: Fri, 21 Jun 2013 17:31:41 GMT
32
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,33 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&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
+ - '252'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
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
+ http_version:
32
+ recorded_at: Fri, 21 Jun 2013 17:34:32 GMT
33
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,379 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Cookie:
11
+ - GUID=vJsxm27ZeCjb15oCKsMQ
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '97'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "rosecret": "RIXWYVDSJIOU4KPRMKIMSBXS6FDZ5VC25", "secret": "FBGBBBVIDXSJAD4FJ34HJEVD7FMSSQ4O"
28
+ }'
29
+ http_version:
30
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
31
+ - request:
32
+ method: get
33
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers: {}
38
+ response:
39
+ status:
40
+ code: 200
41
+ message: OK
42
+ headers:
43
+ Connection:
44
+ - keep-alive
45
+ Content-Length:
46
+ - '121'
47
+ Content-Type:
48
+ - text/html
49
+ Set-Cookie:
50
+ - GUID=DcIujwS2Dvu6lLK0kio8; path=/
51
+ Cache-Control:
52
+ - no-cache
53
+ body:
54
+ encoding: US-ASCII
55
+ string: <html><div id='token' style='display:none;'>8uZnDhZrBfYX4r9Suvgc75foLwhzGiPsp1WxLwum7qD6iL4gWHZJqyiMxFEAAAAA</div></html>
56
+ http_version:
57
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
58
+ - request:
59
+ method: get
60
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=8uZnDhZrBfYX4r9Suvgc75foLwhzGiPsp1WxLwum7qD6iL4gWHZJqyiMxFEAAAAA
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ Cookie:
66
+ - GUID=DcIujwS2Dvu6lLK0kio8
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Connection:
73
+ - keep-alive
74
+ Content-Length:
75
+ - '252'
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Cache-Control:
79
+ - no-cache
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
83
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
84
+ "size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
85
+ }'
86
+ http_version:
87
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
88
+ - request:
89
+ method: get
90
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/usr/share&output=json&secret=FBGBBBVIDXSJAD4FJ34HJEVD7FMSSQ4O&token=8uZnDhZrBfYX4r9Suvgc75foLwhzGiPsp1WxLwum7qD6iL4gWHZJqyiMxFEAAAAA
91
+ body:
92
+ encoding: US-ASCII
93
+ string: ''
94
+ headers:
95
+ Cookie:
96
+ - GUID=DcIujwS2Dvu6lLK0kio8
97
+ response:
98
+ status:
99
+ code: 200
100
+ message: OK
101
+ headers:
102
+ Connection:
103
+ - keep-alive
104
+ Content-Length:
105
+ - '14'
106
+ Content-Type:
107
+ - application/json; charset=utf-8
108
+ Cache-Control:
109
+ - no-cache
110
+ body:
111
+ encoding: US-ASCII
112
+ string: ! '{ "error": 0 }'
113
+ http_version:
114
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
115
+ - request:
116
+ method: get
117
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ headers:
122
+ Cookie:
123
+ - GUID=vJsxm27ZeCjb15oCKsMQ
124
+ response:
125
+ status:
126
+ code: 200
127
+ message: OK
128
+ headers:
129
+ Connection:
130
+ - keep-alive
131
+ Content-Length:
132
+ - '459'
133
+ Content-Type:
134
+ - application/json; charset=utf-8
135
+ Cache-Control:
136
+ - no-cache
137
+ body:
138
+ encoding: US-ASCII
139
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
140
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
141
+ "size": "54.7 MB in 8 files" }, { "iswritable": 1, "name": "\/usr\/share",
142
+ "peers": [ ], "readonlysecret": "RIXWYVDSJIOU4KPRMKIMSBXS6FDZ5VC25", "secret":
143
+ "FBGBBBVIDXSJAD4FJ34HJEVD7FMSSQ4O", "size": "150.5 kB in 29 files (Indexing...)"
144
+ } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
145
+ http_version:
146
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
147
+ - request:
148
+ method: get
149
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
150
+ body:
151
+ encoding: US-ASCII
152
+ string: ''
153
+ headers: {}
154
+ response:
155
+ status:
156
+ code: 200
157
+ message: OK
158
+ headers:
159
+ Connection:
160
+ - keep-alive
161
+ Content-Length:
162
+ - '121'
163
+ Content-Type:
164
+ - text/html
165
+ Set-Cookie:
166
+ - GUID=38ObKZfeTRTDhmwNTXEW; path=/
167
+ Cache-Control:
168
+ - no-cache
169
+ body:
170
+ encoding: US-ASCII
171
+ string: <html><div id='token' style='display:none;'>I4XJdiL6m_1p-ki6tcvV_kHNpkzwvD-cp21-UaAdufOV4Hc2T2FDPimMxFEAAAAA</div></html>
172
+ http_version:
173
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
174
+ - request:
175
+ method: get
176
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=I4XJdiL6m_1p-ki6tcvV_kHNpkzwvD-cp21-UaAdufOV4Hc2T2FDPimMxFEAAAAA
177
+ body:
178
+ encoding: US-ASCII
179
+ string: ''
180
+ headers:
181
+ Cookie:
182
+ - GUID=38ObKZfeTRTDhmwNTXEW
183
+ response:
184
+ status:
185
+ code: 200
186
+ message: OK
187
+ headers:
188
+ Connection:
189
+ - keep-alive
190
+ Content-Length:
191
+ - '460'
192
+ Content-Type:
193
+ - application/json; charset=utf-8
194
+ Cache-Control:
195
+ - no-cache
196
+ body:
197
+ encoding: US-ASCII
198
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
199
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
200
+ "size": "54.7 MB in 8 files" }, { "iswritable": 1, "name": "\/usr\/share",
201
+ "peers": [ ], "readonlysecret": "RIXWYVDSJIOU4KPRMKIMSBXS6FDZ5VC25", "secret":
202
+ "FBGBBBVIDXSJAD4FJ34HJEVD7FMSSQ4O", "size": "533.3 kB in 104 files (Indexing...)"
203
+ } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
204
+ http_version:
205
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
206
+ - request:
207
+ method: get
208
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
209
+ body:
210
+ encoding: US-ASCII
211
+ string: ''
212
+ headers: {}
213
+ response:
214
+ status:
215
+ code: 200
216
+ message: OK
217
+ headers:
218
+ Connection:
219
+ - keep-alive
220
+ Content-Length:
221
+ - '121'
222
+ Content-Type:
223
+ - text/html
224
+ Set-Cookie:
225
+ - GUID=SoYTAMILfuNXEuVN8Sux; path=/
226
+ Cache-Control:
227
+ - no-cache
228
+ body:
229
+ encoding: US-ASCII
230
+ string: <html><div id='token' style='display:none;'>Bnvyl09Snt1a5ffucyz78edH1E4T-U366EUUtNaQqg8EG6WgsPYJqCmMxFEAAAAA</div></html>
231
+ http_version:
232
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
233
+ - request:
234
+ method: get
235
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=Bnvyl09Snt1a5ffucyz78edH1E4T-U366EUUtNaQqg8EG6WgsPYJqCmMxFEAAAAA
236
+ body:
237
+ encoding: US-ASCII
238
+ string: ''
239
+ headers:
240
+ Cookie:
241
+ - GUID=SoYTAMILfuNXEuVN8Sux
242
+ response:
243
+ status:
244
+ code: 200
245
+ message: OK
246
+ headers:
247
+ Connection:
248
+ - keep-alive
249
+ Content-Length:
250
+ - '460'
251
+ Content-Type:
252
+ - application/json; charset=utf-8
253
+ Cache-Control:
254
+ - no-cache
255
+ body:
256
+ encoding: US-ASCII
257
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
258
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
259
+ "size": "54.7 MB in 8 files" }, { "iswritable": 1, "name": "\/usr\/share",
260
+ "peers": [ ], "readonlysecret": "RIXWYVDSJIOU4KPRMKIMSBXS6FDZ5VC25", "secret":
261
+ "FBGBBBVIDXSJAD4FJ34HJEVD7FMSSQ4O", "size": "643.5 kB in 192 files (Indexing...)"
262
+ } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
263
+ http_version:
264
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
265
+ - request:
266
+ method: get
267
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=removefolder&name=/usr/share&output=json&secret=FBGBBBVIDXSJAD4FJ34HJEVD7FMSSQ4O&token=8uZnDhZrBfYX4r9Suvgc75foLwhzGiPsp1WxLwum7qD6iL4gWHZJqyiMxFEAAAAA
268
+ body:
269
+ encoding: US-ASCII
270
+ string: ''
271
+ headers:
272
+ Cookie:
273
+ - GUID=DcIujwS2Dvu6lLK0kio8
274
+ response:
275
+ status:
276
+ code: 200
277
+ message: OK
278
+ headers:
279
+ Connection:
280
+ - keep-alive
281
+ Content-Length:
282
+ - '4'
283
+ Content-Type:
284
+ - application/json; charset=utf-8
285
+ Cache-Control:
286
+ - no-cache
287
+ body:
288
+ encoding: US-ASCII
289
+ string: ! '{ }'
290
+ http_version:
291
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
292
+ - request:
293
+ method: get
294
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=hsWIFgjPTuDH4lS61vcgpFzFxMAun23ju9bbaQ8osP3amEPtHuyUViiMxFEAAAAA
295
+ body:
296
+ encoding: US-ASCII
297
+ string: ''
298
+ headers:
299
+ Cookie:
300
+ - GUID=vJsxm27ZeCjb15oCKsMQ
301
+ response:
302
+ status:
303
+ code: 200
304
+ message: OK
305
+ headers:
306
+ Connection:
307
+ - keep-alive
308
+ Content-Length:
309
+ - '252'
310
+ Content-Type:
311
+ - application/json; charset=utf-8
312
+ Cache-Control:
313
+ - no-cache
314
+ body:
315
+ encoding: US-ASCII
316
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
317
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
318
+ "size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
319
+ }'
320
+ http_version:
321
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
322
+ - request:
323
+ method: get
324
+ uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
325
+ body:
326
+ encoding: US-ASCII
327
+ string: ''
328
+ headers: {}
329
+ response:
330
+ status:
331
+ code: 200
332
+ message: OK
333
+ headers:
334
+ Connection:
335
+ - keep-alive
336
+ Content-Length:
337
+ - '121'
338
+ Content-Type:
339
+ - text/html
340
+ Set-Cookie:
341
+ - GUID=Mym3qboGvpRot6hPgjcZ; path=/
342
+ Cache-Control:
343
+ - no-cache
344
+ body:
345
+ encoding: US-ASCII
346
+ string: <html><div id='token' style='display:none;'>xsOu2TeYlQISQy0o0zxmuQFWEzDW4JWcFRLSFli7OwvbGMytIOb87imMxFEAAAAA</div></html>
347
+ http_version:
348
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
349
+ - request:
350
+ method: get
351
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=xsOu2TeYlQISQy0o0zxmuQFWEzDW4JWcFRLSFli7OwvbGMytIOb87imMxFEAAAAA
352
+ body:
353
+ encoding: US-ASCII
354
+ string: ''
355
+ headers:
356
+ Cookie:
357
+ - GUID=Mym3qboGvpRot6hPgjcZ
358
+ response:
359
+ status:
360
+ code: 200
361
+ message: OK
362
+ headers:
363
+ Connection:
364
+ - keep-alive
365
+ Content-Length:
366
+ - '252'
367
+ Content-Type:
368
+ - application/json; charset=utf-8
369
+ Cache-Control:
370
+ - no-cache
371
+ body:
372
+ encoding: US-ASCII
373
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
374
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
375
+ "size": "54.7 MB in 8 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down"
376
+ }'
377
+ http_version:
378
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
379
+ recorded_with: VCR 2.5.0