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,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:11 GMT
32
+ 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=getversion&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getversion&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
@@ -24,7 +24,7 @@ http_interactions:
24
24
  - no-cache
25
25
  body:
26
26
  encoding: US-ASCII
27
- string: ! '{ "version": 16777350 }'
27
+ string: ! '{ "version": 16842767 }'
28
28
  http_version:
29
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
29
+ recorded_at: Fri, 21 Jun 2013 17:23:51 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=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
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=7Sb1dvknwuyiiKy9xvYv
11
+ - GUID=sOLWWUio3fKfRmCLVW4c
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,18 +17,19 @@ http_interactions:
17
17
  Connection:
18
18
  - keep-alive
19
19
  Content-Length:
20
- - '180'
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": [ ], "secret":
28
- "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" } ], "speed":
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: Wed, 12 Jun 2013 18:42:12 GMT
32
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
32
33
  - request:
33
34
  method: get
34
35
  uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
@@ -48,23 +49,23 @@ http_interactions:
48
49
  Content-Type:
49
50
  - text/html
50
51
  Set-Cookie:
51
- - GUID=3PRj0fQOziI7O4ABtid9; path=/
52
+ - GUID=0aZiZOZuTHLCcNuTvHyh; path=/
52
53
  Cache-Control:
53
54
  - no-cache
54
55
  body:
55
56
  encoding: US-ASCII
56
- string: <html><div id='token' style='display:none;'>jSjEG96tQPMvTyEayd1atViwc-nzM-bnrsw022G3RiN6JneQwtlr9wTBuFEAAAAA</div></html>
57
+ string: <html><div id='token' style='display:none;'>9iSTDKtttugsfWdhVjDII8dlHXXau94vL3dBF3ttmcgtk5IpfgKJwiiMxFEAAAAA</div></html>
57
58
  http_version:
58
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
59
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
59
60
  - request:
60
61
  method: get
61
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=jSjEG96tQPMvTyEayd1atViwc-nzM-bnrsw022G3RiN6JneQwtlr9wTBuFEAAAAA
62
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=9iSTDKtttugsfWdhVjDII8dlHXXau94vL3dBF3ttmcgtk5IpfgKJwiiMxFEAAAAA
62
63
  body:
63
64
  encoding: US-ASCII
64
65
  string: ''
65
66
  headers:
66
67
  Cookie:
67
- - GUID=3PRj0fQOziI7O4ABtid9
68
+ - GUID=0aZiZOZuTHLCcNuTvHyh
68
69
  response:
69
70
  status:
70
71
  code: 200
@@ -73,16 +74,17 @@ http_interactions:
73
74
  Connection:
74
75
  - keep-alive
75
76
  Content-Length:
76
- - '180'
77
+ - '252'
77
78
  Content-Type:
78
79
  - application/json; charset=utf-8
79
80
  Cache-Control:
80
81
  - no-cache
81
82
  body:
82
83
  encoding: US-ASCII
83
- string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
84
- "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" } ], "speed":
85
- "0.0 kB\/s up, 0.0 kB\/s down" }'
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
+ }'
86
88
  http_version:
87
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
89
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
88
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=getsyncfolders&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
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=7Sb1dvknwuyiiKy9xvYv
11
+ - GUID=sOLWWUio3fKfRmCLVW4c
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,19 +17,20 @@ http_interactions:
17
17
  Connection:
18
18
  - keep-alive
19
19
  Content-Length:
20
- - '294'
20
+ - '432'
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": [ ], "secret":
28
- "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" }, { "name":
29
- "\/tmp", "peers": [ ], "secret": "P34SXCT2FYOBCEALZJIHEMBUO745JRNT", "size":
30
- "114.8 kB in 48 files" } ], "speed": "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" }, { "iswritable": 1, "name": "\/tmp", "peers":
30
+ [ ], "readonlysecret": "R4UVNEEUY3MNH4HZMKNM3OTY3ZNHZLGDR", "secret": "SFY5IBGYBKDC3W6BHTDZQGGCFH6EG2KB",
31
+ "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
31
32
  http_version:
32
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
33
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
33
34
  - request:
34
35
  method: get
35
36
  uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
@@ -49,23 +50,23 @@ http_interactions:
49
50
  Content-Type:
50
51
  - text/html
51
52
  Set-Cookie:
52
- - GUID=SORGIxoc3NQ209rBGvgP; path=/
53
+ - GUID=RW60u21QVs538SgqdtYm; path=/
53
54
  Cache-Control:
54
55
  - no-cache
55
56
  body:
56
57
  encoding: US-ASCII
57
- string: <html><div id='token' style='display:none;'>xpMlQnCr-BqmXtiRjAGmluzRPtsSg6TTYRnZYsvI6G3Zw0DnJHiUcwTBuFEAAAAA</div></html>
58
+ string: <html><div id='token' style='display:none;'>k4g71HdbvHrKfxoNjTYYFayIKFUQONgUvMoUKFreOVL-chqxfIwXjCiMxFEAAAAA</div></html>
58
59
  http_version:
59
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
60
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
60
61
  - request:
61
62
  method: get
62
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=xpMlQnCr-BqmXtiRjAGmluzRPtsSg6TTYRnZYsvI6G3Zw0DnJHiUcwTBuFEAAAAA
63
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=k4g71HdbvHrKfxoNjTYYFayIKFUQONgUvMoUKFreOVL-chqxfIwXjCiMxFEAAAAA
63
64
  body:
64
65
  encoding: US-ASCII
65
66
  string: ''
66
67
  headers:
67
68
  Cookie:
68
- - GUID=SORGIxoc3NQ209rBGvgP
69
+ - GUID=RW60u21QVs538SgqdtYm
69
70
  response:
70
71
  status:
71
72
  code: 200
@@ -74,19 +75,20 @@ http_interactions:
74
75
  Connection:
75
76
  - keep-alive
76
77
  Content-Length:
77
- - '294'
78
+ - '432'
78
79
  Content-Type:
79
80
  - application/json; charset=utf-8
80
81
  Cache-Control:
81
82
  - no-cache
82
83
  body:
83
84
  encoding: US-ASCII
84
- string: ! '{ "folders": [ { "name": "\/home\/vagrant", "peers": [ ], "secret":
85
- "XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C", "size": "54.7 MB in 8 files" }, { "name":
86
- "\/tmp", "peers": [ ], "secret": "P34SXCT2FYOBCEALZJIHEMBUO745JRNT", "size":
87
- "114.8 kB in 48 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
85
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
86
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
87
+ "size": "54.7 MB in 8 files" }, { "iswritable": 1, "name": "\/tmp", "peers":
88
+ [ ], "readonlysecret": "R4UVNEEUY3MNH4HZMKNM3OTY3ZNHZLGDR", "secret": "SFY5IBGYBKDC3W6BHTDZQGGCFH6EG2KB",
89
+ "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
88
90
  http_version:
89
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
91
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
90
92
  - request:
91
93
  method: get
92
94
  uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
@@ -106,23 +108,23 @@ http_interactions:
106
108
  Content-Type:
107
109
  - text/html
108
110
  Set-Cookie:
109
- - GUID=4SPMbwyczj5QpnN4TVgK; path=/
111
+ - GUID=T4a2W1jQTuevtFwr1w1a; path=/
110
112
  Cache-Control:
111
113
  - no-cache
112
114
  body:
113
115
  encoding: US-ASCII
114
- string: <html><div id='token' style='display:none;'>M4LKuYC_h5XARDXKM65wqI-j-h50q4rEvToC5a6cyE6zdfyoiT5-TwTBuFEAAAAA</div></html>
116
+ string: <html><div id='token' style='display:none;'>1wNuYywl6DTIMcd4QKE6Yx9uZeTvLRnOgP7DkynUekE7JfvVwYj08iiMxFEAAAAA</div></html>
115
117
  http_version:
116
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
118
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
117
119
  - request:
118
120
  method: get
119
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=M4LKuYC_h5XARDXKM65wqI-j-h50q4rEvToC5a6cyE6zdfyoiT5-TwTBuFEAAAAA
121
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=1wNuYywl6DTIMcd4QKE6Yx9uZeTvLRnOgP7DkynUekE7JfvVwYj08iiMxFEAAAAA
120
122
  body:
121
123
  encoding: US-ASCII
122
124
  string: ''
123
125
  headers:
124
126
  Cookie:
125
- - GUID=4SPMbwyczj5QpnN4TVgK
127
+ - GUID=T4a2W1jQTuevtFwr1w1a
126
128
  response:
127
129
  status:
128
130
  code: 200
@@ -131,28 +133,29 @@ http_interactions:
131
133
  Connection:
132
134
  - keep-alive
133
135
  Content-Length:
134
- - '294'
136
+ - '432'
135
137
  Content-Type:
136
138
  - application/json; charset=utf-8
137
139
  Cache-Control:
138
140
  - no-cache
139
141
  body:
140
142
  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" }'
143
+ string: ! '{ "folders": [ { "iswritable": 1, "name": "\/home\/vagrant", "peers":
144
+ [ ], "readonlysecret": "RVVZWSMFWNP7EU4E7Q34ZQN46L4E57H3J", "secret": "WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2",
145
+ "size": "54.7 MB in 8 files" }, { "iswritable": 1, "name": "\/tmp", "peers":
146
+ [ ], "readonlysecret": "R4UVNEEUY3MNH4HZMKNM3OTY3ZNHZLGDR", "secret": "SFY5IBGYBKDC3W6BHTDZQGGCFH6EG2KB",
147
+ "size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
145
148
  http_version:
146
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
149
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
147
150
  - request:
148
151
  method: get
149
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=removefolder&name=/tmp&output=json&secret=P34SXCT2FYOBCEALZJIHEMBUO745JRNT&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
152
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=removefolder&name=/tmp&output=json&secret=SFY5IBGYBKDC3W6BHTDZQGGCFH6EG2KB&token=y-E7Ch8p-W5UzrwOvkc1jwZzjKpSy8aJAVqIqiTqdbkr8ytOHWyxOSaMxFEAAAAA
150
153
  body:
151
154
  encoding: US-ASCII
152
155
  string: ''
153
156
  headers:
154
157
  Cookie:
155
- - GUID=7Sb1dvknwuyiiKy9xvYv
158
+ - GUID=sOLWWUio3fKfRmCLVW4c
156
159
  response:
157
160
  status:
158
161
  code: 200
@@ -170,5 +173,5 @@ http_interactions:
170
173
  encoding: US-ASCII
171
174
  string: ! '{ }'
172
175
  http_version:
173
- recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
176
+ recorded_at: Fri, 21 Jun 2013 17:23:52 GMT
174
177
  recorded_with: VCR 2.5.0
@@ -2,13 +2,40 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=removeknownhosts&index=1&name=/home/vagrant&output=json&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
5
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&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=TotE2NElyDGhazP4Fk3b
11
+ - GUID=rjaBHJHENSXofGDyyThi
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Connection:
18
+ - keep-alive
19
+ Content-Length:
20
+ - '59'
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Cache-Control:
24
+ - no-cache
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{ "hosts": [ { "index": 0, "peer": "10.0.1.254:12345" } ] }'
28
+ http_version:
29
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=removeknownhosts&index=0&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ Cookie:
38
+ - GUID=rjaBHJHENSXofGDyyThi
12
39
  response:
13
40
  status:
14
41
  code: 200
@@ -26,16 +53,16 @@ http_interactions:
26
53
  encoding: US-ASCII
27
54
  string: ! '{ }'
28
55
  http_version:
29
- recorded_at: Wed, 12 Jun 2013 18:42:13 GMT
56
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
30
57
  - request:
31
58
  method: get
32
- uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&name=/home/vagrant&output=json&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
59
+ uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&name=/home/vagrant&output=json&secret=WQUVU4Y24ZUVTJKQ5GUGV4HTTJUE2SG2&token=ejWv64pWCtIPBpqIfktISTdvRTZ3BcZ0enIRIZ_AMOIUf-TCNkPF7iiMxFEAAAAA
33
60
  body:
34
61
  encoding: US-ASCII
35
62
  string: ''
36
63
  headers:
37
64
  Cookie:
38
- - GUID=TotE2NElyDGhazP4Fk3b
65
+ - GUID=rjaBHJHENSXofGDyyThi
39
66
  response:
40
67
  status:
41
68
  code: 200
@@ -44,14 +71,14 @@ http_interactions:
44
71
  Connection:
45
72
  - keep-alive
46
73
  Content-Length:
47
- - '60'
74
+ - '17'
48
75
  Content-Type:
49
76
  - application/json; charset=utf-8
50
77
  Cache-Control:
51
78
  - no-cache
52
79
  body:
53
80
  encoding: US-ASCII
54
- string: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" } ] }'
81
+ string: ! '{ "hosts": [ ] }'
55
82
  http_version:
56
- recorded_at: Wed, 12 Jun 2013 18:42:13 GMT
83
+ recorded_at: Fri, 21 Jun 2013 17:23:53 GMT
57
84
  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": "IceyEC-Virtual2", "dlrate": 0, "listeningport":
28
28
  63754, "portmapping": 0, "ulrate": 0 } }'
29
29
  http_version:
30
- recorded_at: Wed, 12 Jun 2013 18:42:11 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=0
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=0
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:11 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": 0 } }'
84
84
  http_version:
85
- recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
85
+ recorded_at: Fri, 21 Jun 2013 17:23:51 GMT
86
86
  recorded_with: VCR 2.5.0