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=GDxCK1HGwXDitWCmAVka; path=/
|
23
|
-
Cache-Control:
|
24
|
-
- no-cache
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-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=GLaZWf2lCQUSADqtP2iKbMmUeP2bh9Cfqk4iqxY18BlN1cwxv38KqX-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=0&listeningport=12345&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
|
+
- '132'
|
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
|
-
12345, "portmapping":
|
82
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
83
|
+
0, "listeningport": 12345, "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
|
@@ -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=XfPBG1WqhacQ0f2GNXye; path=/
|
23
|
-
Cache-Control:
|
24
|
-
- no-cache
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-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=gV-hYQBftblOtYzxFsjcp4_kfp_CzxqhIaKVaaVtQetH_vgkRxWGA3-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:11 GMT
|
58
31
|
- request:
|
59
32
|
method: get
|
60
|
-
uri: http://localhost:8888/gui/?action=setsettings&devicename=IceyEC-Virtual2&dlrate=0&listeningport=63754&output=json&portmapping=
|
33
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=setsettings&devicename=IceyEC-Virtual2&dlrate=0&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:11 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
|
@@ -107,7 +80,7 @@ http_interactions:
|
|
107
80
|
body:
|
108
81
|
encoding: US-ASCII
|
109
82
|
string: ! '{ "settings": { "devicename": "IceyEC-Virtual2", "dlrate": 0, "listeningport":
|
110
|
-
63754, "portmapping":
|
83
|
+
63754, "portmapping": 0, "ulrate": 0 } }'
|
111
84
|
http_version:
|
112
|
-
recorded_at:
|
85
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
113
86
|
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=TsFXrmm0YbYlyiYDtWmj; path=/
|
23
|
-
Cache-Control:
|
24
|
-
- no-cache
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>rShA3r5V4Pq3OYq4DTOXiqxiE6PP9LaqjqqF368g7y_UfyKXU2uvb3-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=rShA3r5V4Pq3OYq4DTOXiqxiE6PP9LaqjqqF368g7y_UfyKXU2uvb3-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=0&listeningport=63754&output=json&portmapping=0&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA&ulrate=1000
|
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
|
-
63754, "portmapping":
|
82
|
+
string: ! '{ "settings": { "devicename": "precise32 - Default Instance", "dlrate":
|
83
|
+
0, "listeningport": 63754, "portmapping": 0, "ulrate": 1000 } }'
|
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
|
@@ -2,7 +2,37 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:8888/gui
|
5
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=u_MRSC7A_4Y-0yCWDt6uQvH5BzWrWTuCEuU3A8fvQlrsHlXYAZ4cFgPBuFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=7Sb1dvknwuyiiKy9xvYv
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '294'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
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" }'
|
31
|
+
http_version:
|
32
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
33
|
+
- request:
|
34
|
+
method: get
|
35
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
6
36
|
body:
|
7
37
|
encoding: US-ASCII
|
8
38
|
string: ''
|
@@ -19,23 +49,23 @@ http_interactions:
|
|
19
49
|
Content-Type:
|
20
50
|
- text/html
|
21
51
|
Set-Cookie:
|
22
|
-
- GUID=
|
52
|
+
- GUID=Vq9uyvIXiE6fa9mZqiQT; path=/
|
23
53
|
Cache-Control:
|
24
54
|
- no-cache
|
25
55
|
body:
|
26
56
|
encoding: US-ASCII
|
27
|
-
string: <html><div id='token' style='display:none;'>
|
57
|
+
string: <html><div id='token' style='display:none;'>qUKj87vpi-r0VhiN5QNz5WHvFChCyBPmO0bCsIId1ZzEieMEWghRJAPBuFEAAAAA</div></html>
|
28
58
|
http_version:
|
29
|
-
recorded_at:
|
59
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
30
60
|
- request:
|
31
61
|
method: get
|
32
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
62
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=qUKj87vpi-r0VhiN5QNz5WHvFChCyBPmO0bCsIId1ZzEieMEWghRJAPBuFEAAAAA
|
33
63
|
body:
|
34
64
|
encoding: US-ASCII
|
35
65
|
string: ''
|
36
66
|
headers:
|
37
67
|
Cookie:
|
38
|
-
- GUID=
|
68
|
+
- GUID=Vq9uyvIXiE6fa9mZqiQT
|
39
69
|
response:
|
40
70
|
status:
|
41
71
|
code: 200
|
@@ -44,22 +74,22 @@ http_interactions:
|
|
44
74
|
Connection:
|
45
75
|
- keep-alive
|
46
76
|
Content-Length:
|
47
|
-
- '
|
77
|
+
- '294'
|
48
78
|
Content-Type:
|
49
79
|
- application/json; charset=utf-8
|
50
80
|
Cache-Control:
|
51
81
|
- no-cache
|
52
82
|
body:
|
53
83
|
encoding: US-ASCII
|
54
|
-
string: ! '{ "folders": [ { "name": "\/home\/
|
55
|
-
"
|
56
|
-
|
57
|
-
} ], "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" }'
|
58
88
|
http_version:
|
59
|
-
recorded_at:
|
89
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
60
90
|
- request:
|
61
91
|
method: get
|
62
|
-
uri: http://localhost:8888/gui/token.html?output=
|
92
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/token.html?output=json
|
63
93
|
body:
|
64
94
|
encoding: US-ASCII
|
65
95
|
string: ''
|
@@ -76,23 +106,23 @@ http_interactions:
|
|
76
106
|
Content-Type:
|
77
107
|
- text/html
|
78
108
|
Set-Cookie:
|
79
|
-
- GUID=
|
109
|
+
- GUID=5Dj0twOZkxhIF0RMxcOQ; path=/
|
80
110
|
Cache-Control:
|
81
111
|
- no-cache
|
82
112
|
body:
|
83
113
|
encoding: US-ASCII
|
84
|
-
string: <html><div id='token' style='display:none;'>
|
114
|
+
string: <html><div id='token' style='display:none;'>d0Zero0v6QBesCqPjvMZvUxX3Ua6ENpfSOlM65Ezr4lxGNBixtwuOgPBuFEAAAAA</div></html>
|
85
115
|
http_version:
|
86
|
-
recorded_at:
|
116
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
87
117
|
- request:
|
88
118
|
method: get
|
89
|
-
uri: http://localhost:8888/gui/?action=getsyncfolders&output=json&token=
|
119
|
+
uri: http://admin:AdminPassword@localhost:8888/gui/?action=getsyncfolders&output=json&token=d0Zero0v6QBesCqPjvMZvUxX3Ua6ENpfSOlM65Ezr4lxGNBixtwuOgPBuFEAAAAA
|
90
120
|
body:
|
91
121
|
encoding: US-ASCII
|
92
122
|
string: ''
|
93
123
|
headers:
|
94
124
|
Cookie:
|
95
|
-
- GUID=
|
125
|
+
- GUID=5Dj0twOZkxhIF0RMxcOQ
|
96
126
|
response:
|
97
127
|
status:
|
98
128
|
code: 200
|
@@ -101,17 +131,17 @@ http_interactions:
|
|
101
131
|
Connection:
|
102
132
|
- keep-alive
|
103
133
|
Content-Length:
|
104
|
-
- '
|
134
|
+
- '294'
|
105
135
|
Content-Type:
|
106
136
|
- application/json; charset=utf-8
|
107
137
|
Cache-Control:
|
108
138
|
- no-cache
|
109
139
|
body:
|
110
140
|
encoding: US-ASCII
|
111
|
-
string: ! '{ "folders": [ { "name": "\/home\/
|
112
|
-
"
|
113
|
-
|
114
|
-
} ], "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" }'
|
115
145
|
http_version:
|
116
|
-
recorded_at:
|
146
|
+
recorded_at: Wed, 12 Jun 2013 18:42:11 GMT
|
117
147
|
recorded_with: VCR 2.5.0
|