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,40 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui/
|
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=SZGEavWRWlylZwpb4y1U; path=/
|
23
|
-
Cache-Control:
|
24
|
-
- no-cache
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA</div></html>
|
28
|
-
http_version:
|
29
|
-
recorded_at: Tue, 11 Jun 2013 01:55:14 GMT
|
30
|
-
- request:
|
31
|
-
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=cNJuLdTzhAVEgK83V3Ai3F9LGEGb2oDNWAwa1BWst7Dpo45MpwWH93-DtlEAAAAA
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setfolderpref&deletetotrash=1&name=/home/vagrant&output=json&relay=1&searchdht=0&searchlan=1&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA&usehosts=1&usetracker=1
|
33
6
|
body:
|
34
7
|
encoding: US-ASCII
|
35
8
|
string: ''
|
36
9
|
headers:
|
37
10
|
Cookie:
|
38
|
-
- GUID=
|
11
|
+
- GUID=TotE2NElyDGhazP4Fk3b
|
39
12
|
response:
|
40
13
|
status:
|
41
14
|
code: 200
|
@@ -44,28 +17,25 @@ http_interactions:
|
|
44
17
|
Connection:
|
45
18
|
- keep-alive
|
46
19
|
Content-Length:
|
47
|
-
- '
|
20
|
+
- '4'
|
48
21
|
Content-Type:
|
49
22
|
- application/json; charset=utf-8
|
50
23
|
Cache-Control:
|
51
24
|
- no-cache
|
52
25
|
body:
|
53
26
|
encoding: US-ASCII
|
54
|
-
string: ! '{
|
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" }'
|
27
|
+
string: ! '{ }'
|
58
28
|
http_version:
|
59
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
60
30
|
- request:
|
61
31
|
method: get
|
62
|
-
uri: http://localhost:8888/gui/?action=
|
32
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=addknownhosts&addr=192.168.1.5&name=/home/vagrant&output=json&port=45685&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
|
63
33
|
body:
|
64
34
|
encoding: US-ASCII
|
65
35
|
string: ''
|
66
36
|
headers:
|
67
37
|
Cookie:
|
68
|
-
- GUID=
|
38
|
+
- GUID=TotE2NElyDGhazP4Fk3b
|
69
39
|
response:
|
70
40
|
status:
|
71
41
|
code: 200
|
@@ -83,5 +53,5 @@ http_interactions:
|
|
83
53
|
encoding: US-ASCII
|
84
54
|
string: ! '{ }'
|
85
55
|
http_version:
|
86
|
-
recorded_at:
|
56
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
87
57
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Cookie:
|
11
|
-
- GUID=
|
11
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,23 +17,22 @@ http_interactions:
|
|
17
17
|
Connection:
|
18
18
|
- keep-alive
|
19
19
|
Content-Length:
|
20
|
-
- '
|
20
|
+
- '294'
|
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\/
|
28
|
-
"
|
29
|
-
|
30
|
-
},
|
31
|
-
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
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" }'
|
32
31
|
http_version:
|
33
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
34
33
|
- request:
|
35
34
|
method: get
|
36
|
-
uri: http://localhost:8888/gui/token.html?output=
|
35
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
37
36
|
body:
|
38
37
|
encoding: US-ASCII
|
39
38
|
string: ''
|
@@ -50,23 +49,23 @@ http_interactions:
|
|
50
49
|
Content-Type:
|
51
50
|
- text/html
|
52
51
|
Set-Cookie:
|
53
|
-
- GUID=
|
52
|
+
- GUID=kG6pI3aqngiE0fCF7QGk; path=/
|
54
53
|
Cache-Control:
|
55
54
|
- no-cache
|
56
55
|
body:
|
57
56
|
encoding: US-ASCII
|
58
|
-
string: <html><div id='token' style='display:none;'>
|
57
|
+
string: <html><div id='token' style='display:none;'>J-t6uZxK8C1ez5vYwPO41E1Ttz4KYYKXITYt53wh68lRcnNnHrOgkgTBuFEAAAAA</div></html>
|
59
58
|
http_version:
|
60
|
-
recorded_at:
|
59
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
61
60
|
- request:
|
62
61
|
method: get
|
63
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
62
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=J-t6uZxK8C1ez5vYwPO41E1Ttz4KYYKXITYt53wh68lRcnNnHrOgkgTBuFEAAAAA
|
64
63
|
body:
|
65
64
|
encoding: US-ASCII
|
66
65
|
string: ''
|
67
66
|
headers:
|
68
67
|
Cookie:
|
69
|
-
- GUID=
|
68
|
+
- GUID=kG6pI3aqngiE0fCF7QGk
|
70
69
|
response:
|
71
70
|
status:
|
72
71
|
code: 200
|
@@ -75,23 +74,22 @@ http_interactions:
|
|
75
74
|
Connection:
|
76
75
|
- keep-alive
|
77
76
|
Content-Length:
|
78
|
-
- '
|
77
|
+
- '294'
|
79
78
|
Content-Type:
|
80
79
|
- application/json; charset=utf-8
|
81
80
|
Cache-Control:
|
82
81
|
- no-cache
|
83
82
|
body:
|
84
83
|
encoding: US-ASCII
|
85
|
-
string: ! '{ "folders": [ { "name": "\/home\/
|
86
|
-
"
|
87
|
-
|
88
|
-
},
|
89
|
-
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
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" }'
|
90
88
|
http_version:
|
91
|
-
recorded_at:
|
89
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
92
90
|
- request:
|
93
91
|
method: get
|
94
|
-
uri: http://localhost:8888/gui/token.html?output=
|
92
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
95
93
|
body:
|
96
94
|
encoding: US-ASCII
|
97
95
|
string: ''
|
@@ -108,23 +106,23 @@ http_interactions:
|
|
108
106
|
Content-Type:
|
109
107
|
- text/html
|
110
108
|
Set-Cookie:
|
111
|
-
- GUID=
|
109
|
+
- GUID=Ah42O4eG5qFHUMb5EV92; path=/
|
112
110
|
Cache-Control:
|
113
111
|
- no-cache
|
114
112
|
body:
|
115
113
|
encoding: US-ASCII
|
116
|
-
string: <html><div id='token' style='display:none;'>
|
114
|
+
string: <html><div id='token' style='display:none;'>TeJR3xxKog1SEkd5PoLiOAWSDCWd-yLo_ESwRecQfkdLeQ6s1tCIZATBuFEAAAAA</div></html>
|
117
115
|
http_version:
|
118
|
-
recorded_at:
|
116
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
119
117
|
- request:
|
120
118
|
method: get
|
121
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
119
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=TeJR3xxKog1SEkd5PoLiOAWSDCWd-yLo_ESwRecQfkdLeQ6s1tCIZATBuFEAAAAA
|
122
120
|
body:
|
123
121
|
encoding: US-ASCII
|
124
122
|
string: ''
|
125
123
|
headers:
|
126
124
|
Cookie:
|
127
|
-
- GUID=
|
125
|
+
- GUID=Ah42O4eG5qFHUMb5EV92
|
128
126
|
response:
|
129
127
|
status:
|
130
128
|
code: 200
|
@@ -133,18 +131,17 @@ http_interactions:
|
|
133
131
|
Connection:
|
134
132
|
- keep-alive
|
135
133
|
Content-Length:
|
136
|
-
- '
|
134
|
+
- '294'
|
137
135
|
Content-Type:
|
138
136
|
- application/json; charset=utf-8
|
139
137
|
Cache-Control:
|
140
138
|
- no-cache
|
141
139
|
body:
|
142
140
|
encoding: US-ASCII
|
143
|
-
string: ! '{ "folders": [ { "name": "\/home\/
|
144
|
-
"
|
145
|
-
|
146
|
-
},
|
147
|
-
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
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" }'
|
148
145
|
http_version:
|
149
|
-
recorded_at:
|
146
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
150
147
|
recorded_with: VCR 2.5.0
|
@@ -2,40 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui
|
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=YvUwERzuA6KDtWx5gBqG; path=/
|
23
|
-
Cache-Control:
|
24
|
-
- no-cache
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA</div></html>
|
28
|
-
http_version:
|
29
|
-
recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
|
30
|
-
- request:
|
31
|
-
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=generatesecret&output=json&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=generatesecret&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
33
6
|
body:
|
34
7
|
encoding: US-ASCII
|
35
8
|
string: ''
|
36
9
|
headers:
|
37
10
|
Cookie:
|
38
|
-
- GUID=
|
11
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
39
12
|
response:
|
40
13
|
status:
|
41
14
|
code: 200
|
@@ -51,73 +24,19 @@ http_interactions:
|
|
51
24
|
- no-cache
|
52
25
|
body:
|
53
26
|
encoding: US-ASCII
|
54
|
-
string: ! '{ "rosecret": "
|
27
|
+
string: ! '{ "rosecret": "RBCVG2UQM47GUM6COGNJUJX56HERKGVXH", "secret": "WQ2DBPS2K7MPPANC6PAQQKYW5H64FS2Z"
|
55
28
|
}'
|
56
29
|
http_version:
|
57
|
-
recorded_at:
|
58
|
-
- request:
|
59
|
-
method: get
|
60
|
-
uri: http://localhost:8888/gui/?action=addsyncfolder&name=/home/chris/bt_test&output=json&secret=FEEBRD6KX6NFZYJRVVN6WKGONI467MZE&token=0yGezY2QZeVy7GPzaV-TQ6SuOMns8TlPgbHND059Qv-NnsquBvqIln-DtlEAAAAA
|
61
|
-
body:
|
62
|
-
encoding: US-ASCII
|
63
|
-
string: ''
|
64
|
-
headers:
|
65
|
-
Cookie:
|
66
|
-
- GUID=YvUwERzuA6KDtWx5gBqG
|
67
|
-
response:
|
68
|
-
status:
|
69
|
-
code: 200
|
70
|
-
message: OK
|
71
|
-
headers:
|
72
|
-
Connection:
|
73
|
-
- keep-alive
|
74
|
-
Content-Length:
|
75
|
-
- '14'
|
76
|
-
Content-Type:
|
77
|
-
- application/json; charset=utf-8
|
78
|
-
Cache-Control:
|
79
|
-
- no-cache
|
80
|
-
body:
|
81
|
-
encoding: US-ASCII
|
82
|
-
string: ! '{ "error": 0 }'
|
83
|
-
http_version:
|
84
|
-
recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
|
85
|
-
- request:
|
86
|
-
method: get
|
87
|
-
uri: http://localhost:8888/gui/token.html?output=text
|
88
|
-
body:
|
89
|
-
encoding: US-ASCII
|
90
|
-
string: ''
|
91
|
-
headers: {}
|
92
|
-
response:
|
93
|
-
status:
|
94
|
-
code: 200
|
95
|
-
message: OK
|
96
|
-
headers:
|
97
|
-
Connection:
|
98
|
-
- keep-alive
|
99
|
-
Content-Length:
|
100
|
-
- '121'
|
101
|
-
Content-Type:
|
102
|
-
- text/html
|
103
|
-
Set-Cookie:
|
104
|
-
- GUID=sXDdY5BtJr5UIBaTJLJm; path=/
|
105
|
-
Cache-Control:
|
106
|
-
- no-cache
|
107
|
-
body:
|
108
|
-
encoding: US-ASCII
|
109
|
-
string: <html><div id='token' style='display:none;'>wz7jsZf0pne0IsvsXJD5Dy4E1zc3Yp_8gTkIed8I4Hj7_mMuqgyqen-DtlEAAAAA</div></html>
|
110
|
-
http_version:
|
111
|
-
recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
|
30
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
112
31
|
- request:
|
113
32
|
method: get
|
114
|
-
uri: http://localhost:8888/gui/?action=
|
33
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=addsyncfolder&name=/tmp&output=json&secret=WQ2DBPS2K7MPPANC6PAQQKYW5H64FS2Z&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
115
34
|
body:
|
116
35
|
encoding: US-ASCII
|
117
36
|
string: ''
|
118
37
|
headers:
|
119
38
|
Cookie:
|
120
|
-
- GUID=
|
39
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
121
40
|
response:
|
122
41
|
status:
|
123
42
|
code: 200
|
@@ -126,18 +45,15 @@ http_interactions:
|
|
126
45
|
Connection:
|
127
46
|
- keep-alive
|
128
47
|
Content-Length:
|
129
|
-
- '
|
48
|
+
- '143'
|
130
49
|
Content-Type:
|
131
50
|
- application/json; charset=utf-8
|
132
51
|
Cache-Control:
|
133
52
|
- no-cache
|
134
53
|
body:
|
135
54
|
encoding: US-ASCII
|
136
|
-
string: ! '{ "
|
137
|
-
"
|
138
|
-
} ], "secret": "6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ", "size": "0 B in 0 files"
|
139
|
-
}, { "name": "\/home\/chris\/bt_test", "peers": [ ], "secret": "FEEBRD6KX6NFZYJRVVN6WKGONI467MZE",
|
140
|
-
"size": "0 B in 0 files" } ], "speed": "0.0 kB\/s up, 0.0 kB\/s down" }'
|
55
|
+
string: ! '{ "error": 200, "message": "Selected folder is already added to BitTorrent
|
56
|
+
Sync.", "n": "\/tmp", "secret": "WQ2DBPS2K7MPPANC6PAQQKYW5H64FS2Z" }'
|
141
57
|
http_version:
|
142
|
-
recorded_at:
|
58
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
143
59
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui/?action=addknownhosts&addr=10.0.1.254&name=/home/
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=addknownhosts&addr=10.0.1.254&name=/home/vagrant&output=json&port=12345&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
|
@@ -26,16 +26,16 @@ http_interactions:
|
|
26
26
|
encoding: US-ASCII
|
27
27
|
string: ! '{ }'
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 12 Jun 2013 18:42:13 GMT
|
30
30
|
- request:
|
31
31
|
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=getknownhosts&name=/home/
|
32
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getknownhosts&name=/home/vagrant&output=json&secret=XEQRSGSJGGNKCTV4UZG2ZPOJRINGDE2C&token=RZbVuwWEheFdAfByFpevSH6m3_t2y6Brna0IR68P0vD7nryy2Ktd6gTBuFEAAAAA
|
33
33
|
body:
|
34
34
|
encoding: US-ASCII
|
35
35
|
string: ''
|
36
36
|
headers:
|
37
37
|
Cookie:
|
38
|
-
- GUID=
|
38
|
+
- GUID=TotE2NElyDGhazP4Fk3b
|
39
39
|
response:
|
40
40
|
status:
|
41
41
|
code: 200
|
@@ -54,5 +54,5 @@ http_interactions:
|
|
54
54
|
string: ! '{ "hosts": [ { "index": 0, "peer": "192.168.1.5:45685" }, { "index":
|
55
55
|
1, "peer": "10.0.1.254:12345" } ] }'
|
56
56
|
http_version:
|
57
|
-
recorded_at:
|
57
|
+
recorded_at: Wed, 12 Jun 2013 18:42:13 GMT
|
58
58
|
recorded_with: VCR 2.5.0
|
@@ -2,40 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui
|
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=rQOaRmGSuftanqRVwf4c; path=/
|
23
|
-
Cache-Control:
|
24
|
-
- no-cache
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA</div></html>
|
28
|
-
http_version:
|
29
|
-
recorded_at: Tue, 11 Jun 2013 01:55:13 GMT
|
30
|
-
- request:
|
31
|
-
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=getsettings&output=json&token=CjJq3w8fG-rf15Vh44pxG3FwSBLu8AWU3b1PoN-SVD43tCnPkeCxAX-DtlEAAAAA
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
33
6
|
body:
|
34
7
|
encoding: US-ASCII
|
35
8
|
string: ''
|
36
9
|
headers:
|
37
10
|
Cookie:
|
38
|
-
- GUID=
|
11
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
39
12
|
response:
|
40
13
|
status:
|
41
14
|
code: 200
|
@@ -44,26 +17,26 @@ http_interactions:
|
|
44
17
|
Connection:
|
45
18
|
- keep-alive
|
46
19
|
Content-Length:
|
47
|
-
- '
|
20
|
+
- '132'
|
48
21
|
Content-Type:
|
49
22
|
- application/json; charset=utf-8
|
50
23
|
Cache-Control:
|
51
24
|
- no-cache
|
52
25
|
body:
|
53
26
|
encoding: US-ASCII
|
54
|
-
string: ! '{ "settings": { "devicename": "
|
55
|
-
63754, "portmapping":
|
27
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
28
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
56
29
|
http_version:
|
57
|
-
recorded_at:
|
30
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
58
31
|
- request:
|
59
32
|
method: get
|
60
|
-
uri: http://localhost:8888/gui/?action=setsettings&devicename=
|
33
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=precise32%20-%20Default%20Instance&dlrate=1000&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=0
|
61
34
|
body:
|
62
35
|
encoding: US-ASCII
|
63
36
|
string: ''
|
64
37
|
headers:
|
65
38
|
Cookie:
|
66
|
-
- GUID=
|
39
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
67
40
|
response:
|
68
41
|
status:
|
69
42
|
code: 200
|
@@ -81,16 +54,16 @@ http_interactions:
|
|
81
54
|
encoding: US-ASCII
|
82
55
|
string: ! '{ }'
|
83
56
|
http_version:
|
84
|
-
recorded_at:
|
57
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
85
58
|
- request:
|
86
59
|
method: get
|
87
|
-
uri: http://localhost:8888/gui/?action=getsettings&output=json&token=
|
60
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsettings&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
88
61
|
body:
|
89
62
|
encoding: US-ASCII
|
90
63
|
string: ''
|
91
64
|
headers:
|
92
65
|
Cookie:
|
93
|
-
- GUID=
|
66
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
94
67
|
response:
|
95
68
|
status:
|
96
69
|
code: 200
|
@@ -99,15 +72,15 @@ http_interactions:
|
|
99
72
|
Connection:
|
100
73
|
- keep-alive
|
101
74
|
Content-Length:
|
102
|
-
- '
|
75
|
+
- '135'
|
103
76
|
Content-Type:
|
104
77
|
- application/json; charset=utf-8
|
105
78
|
Cache-Control:
|
106
79
|
- no-cache
|
107
80
|
body:
|
108
81
|
encoding: US-ASCII
|
109
|
-
string: ! '{ "settings": { "devicename": "
|
110
|
-
"listeningport": 63754, "portmapping":
|
82
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
83
|
+
1000, "listeningport": 63754, "portmapping": 0, "ulrate": 0 } }'
|
111
84
|
http_version:
|
112
|
-
recorded_at:
|
85
|
+
recorded_at: Wed, 12 Jun 2013 18:42:12 GMT
|
113
86
|
recorded_with: VCR 2.5.0
|