Merge lp:~pedronis/ubuntu-push/some-imports-reorg into lp:ubuntu-push
- some-imports-reorg
- Merge into trunk
Proposed by
Samuele Pedroni
Status: | Merged |
---|---|
Approved by: | Samuele Pedroni |
Approved revision: | 62 |
Merged at revision: | 59 |
Proposed branch: | lp:~pedronis/ubuntu-push/some-imports-reorg |
Merge into: | lp:ubuntu-push |
Diff against target: |
683 lines (+105/-60) 37 files modified
config/config_test.go (+2/-1) logger/logger_test.go (+2/-1) protocol/messages_test.go (+2/-1) protocol/protocol_test.go (+2/-1) server/acceptance/acceptance_test.go (+6/-4) server/acceptance/acceptanceclient.go (+2/-1) server/acceptance/cmd/acceptanceclient.go (+3/-2) server/api/handlers.go (+2/-1) server/api/handlers_test.go (+4/-2) server/api/middleware.go (+2/-1) server/api/middleware_test.go (+4/-2) server/bootlog.go (+2/-1) server/bootlog_test.go (+4/-2) server/broker/broker.go (+1/-0) server/broker/broker_test.go (+1/-0) server/broker/exchanges.go (+1/-1) server/broker/exchanges_test.go (+4/-3) server/broker/exchg_impl_test.go (+1/-1) server/broker/simple/simple.go (+2/-2) server/broker/simple/simple_test.go (+4/-3) server/broker/simple/suite_test.go (+1/-0) server/broker/testsuite/suite.go (+4/-2) server/config_test.go (+4/-2) server/dev/server.go (+4/-3) server/listener/listener.go (+2/-1) server/listener/listener_test.go (+4/-2) server/runner_devices.go (+4/-3) server/runner_http.go (+2/-1) server/runner_test.go (+5/-3) server/session/session.go (+3/-2) server/session/session_test.go (+7/-5) server/session/tracker.go (+3/-2) server/session/tracker_test.go (+3/-1) server/store/inmemory_test.go (+1/-0) server/store/store_test.go (+3/-1) testing/condition/condition_test.go (+2/-1) testing/helpers.go (+2/-1) |
To merge this branch: | bzr merge lp:~pedronis/ubuntu-push/some-imports-reorg |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samuele Pedroni | Approve | ||
Review via email:
|
Commit message
[trivial] reorg imports in: config logger protocol server testing as: stdlib -- 3rdparty -- own
Description of the change
reorg imports in:
stdlib
3rd party
own
in config logger protocol server testing
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Samuele Pedroni (pedronis) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'config/config_test.go' | |||
2 | --- config/config_test.go 2014-01-21 21:35:21 +0000 | |||
3 | +++ config/config_test.go 2014-02-10 23:28:55 +0000 | |||
4 | @@ -19,12 +19,13 @@ | |||
5 | 19 | import ( | 19 | import ( |
6 | 20 | "bytes" | 20 | "bytes" |
7 | 21 | "io/ioutil" | 21 | "io/ioutil" |
8 | 22 | . "launchpad.net/gocheck" | ||
9 | 23 | "os" | 22 | "os" |
10 | 24 | "path/filepath" | 23 | "path/filepath" |
11 | 25 | "reflect" | 24 | "reflect" |
12 | 26 | "testing" | 25 | "testing" |
13 | 27 | "time" | 26 | "time" |
14 | 27 | |||
15 | 28 | . "launchpad.net/gocheck" | ||
16 | 28 | ) | 29 | ) |
17 | 29 | 30 | ||
18 | 30 | func TestConfig(t *testing.T) { TestingT(t) } | 31 | func TestConfig(t *testing.T) { TestingT(t) } |
19 | 31 | 32 | ||
20 | === modified file 'logger/logger_test.go' | |||
21 | --- logger/logger_test.go 2014-02-04 20:51:39 +0000 | |||
22 | +++ logger/logger_test.go 2014-02-10 23:28:55 +0000 | |||
23 | @@ -19,11 +19,12 @@ | |||
24 | 19 | import ( | 19 | import ( |
25 | 20 | "bytes" | 20 | "bytes" |
26 | 21 | "fmt" | 21 | "fmt" |
27 | 22 | . "launchpad.net/gocheck" | ||
28 | 23 | "log" | 22 | "log" |
29 | 24 | "os" | 23 | "os" |
30 | 25 | "runtime" | 24 | "runtime" |
31 | 26 | "testing" | 25 | "testing" |
32 | 26 | |||
33 | 27 | . "launchpad.net/gocheck" | ||
34 | 27 | ) | 28 | ) |
35 | 28 | 29 | ||
36 | 29 | func TestLogger(t *testing.T) { TestingT(t) } | 30 | func TestLogger(t *testing.T) { TestingT(t) } |
37 | 30 | 31 | ||
38 | === modified file 'protocol/messages_test.go' | |||
39 | --- protocol/messages_test.go 2014-01-14 15:35:20 +0000 | |||
40 | +++ protocol/messages_test.go 2014-02-10 23:28:55 +0000 | |||
41 | @@ -19,8 +19,9 @@ | |||
42 | 19 | import ( | 19 | import ( |
43 | 20 | "encoding/json" | 20 | "encoding/json" |
44 | 21 | "fmt" | 21 | "fmt" |
45 | 22 | "strings" | ||
46 | 23 | |||
47 | 22 | . "launchpad.net/gocheck" | 24 | . "launchpad.net/gocheck" |
48 | 23 | "strings" | ||
49 | 24 | ) | 25 | ) |
50 | 25 | 26 | ||
51 | 26 | type messagesSuite struct{} | 27 | type messagesSuite struct{} |
52 | 27 | 28 | ||
53 | === modified file 'protocol/protocol_test.go' | |||
54 | --- protocol/protocol_test.go 2014-01-14 15:35:20 +0000 | |||
55 | +++ protocol/protocol_test.go 2014-02-10 23:28:55 +0000 | |||
56 | @@ -21,10 +21,11 @@ | |||
57 | 21 | "encoding/json" | 21 | "encoding/json" |
58 | 22 | // "fmt" | 22 | // "fmt" |
59 | 23 | "io" | 23 | "io" |
60 | 24 | . "launchpad.net/gocheck" | ||
61 | 25 | "net" | 24 | "net" |
62 | 26 | "testing" | 25 | "testing" |
63 | 27 | "time" | 26 | "time" |
64 | 27 | |||
65 | 28 | . "launchpad.net/gocheck" | ||
66 | 28 | ) | 29 | ) |
67 | 29 | 30 | ||
68 | 30 | func TestProtocol(t *testing.T) { TestingT(t) } | 31 | func TestProtocol(t *testing.T) { TestingT(t) } |
69 | 31 | 32 | ||
70 | === modified file 'server/acceptance/acceptance_test.go' | |||
71 | --- server/acceptance/acceptance_test.go 2014-02-04 12:26:33 +0000 | |||
72 | +++ server/acceptance/acceptance_test.go 2014-02-10 23:28:55 +0000 | |||
73 | @@ -23,10 +23,6 @@ | |||
74 | 23 | "flag" | 23 | "flag" |
75 | 24 | "fmt" | 24 | "fmt" |
76 | 25 | "io/ioutil" | 25 | "io/ioutil" |
77 | 26 | . "launchpad.net/gocheck" | ||
78 | 27 | "launchpad.net/ubuntu-push/protocol" | ||
79 | 28 | "launchpad.net/ubuntu-push/server/api" | ||
80 | 29 | helpers "launchpad.net/ubuntu-push/testing" | ||
81 | 30 | "net" | 26 | "net" |
82 | 31 | "net/http" | 27 | "net/http" |
83 | 32 | "os" | 28 | "os" |
84 | @@ -37,6 +33,12 @@ | |||
85 | 37 | "strings" | 33 | "strings" |
86 | 38 | "testing" | 34 | "testing" |
87 | 39 | "time" | 35 | "time" |
88 | 36 | |||
89 | 37 | . "launchpad.net/gocheck" | ||
90 | 38 | |||
91 | 39 | "launchpad.net/ubuntu-push/protocol" | ||
92 | 40 | "launchpad.net/ubuntu-push/server/api" | ||
93 | 41 | helpers "launchpad.net/ubuntu-push/testing" | ||
94 | 40 | ) | 42 | ) |
95 | 41 | 43 | ||
96 | 42 | func TestAcceptance(t *testing.T) { TestingT(t) } | 44 | func TestAcceptance(t *testing.T) { TestingT(t) } |
97 | 43 | 45 | ||
98 | === modified file 'server/acceptance/acceptanceclient.go' | |||
99 | --- server/acceptance/acceptanceclient.go 2014-01-15 15:54:20 +0000 | |||
100 | +++ server/acceptance/acceptanceclient.go 2014-02-10 23:28:55 +0000 | |||
101 | @@ -22,9 +22,10 @@ | |||
102 | 22 | "encoding/json" | 22 | "encoding/json" |
103 | 23 | "errors" | 23 | "errors" |
104 | 24 | "fmt" | 24 | "fmt" |
105 | 25 | "launchpad.net/ubuntu-push/protocol" | ||
106 | 26 | "net" | 25 | "net" |
107 | 27 | "time" | 26 | "time" |
108 | 27 | |||
109 | 28 | "launchpad.net/ubuntu-push/protocol" | ||
110 | 28 | ) | 29 | ) |
111 | 29 | 30 | ||
112 | 30 | var wireVersionBytes = []byte{protocol.ProtocolWireVersion} | 31 | var wireVersionBytes = []byte{protocol.ProtocolWireVersion} |
113 | 31 | 32 | ||
114 | === modified file 'server/acceptance/cmd/acceptanceclient.go' | |||
115 | --- server/acceptance/cmd/acceptanceclient.go 2014-01-15 15:54:20 +0000 | |||
116 | +++ server/acceptance/cmd/acceptanceclient.go 2014-02-10 23:28:55 +0000 | |||
117 | @@ -19,11 +19,12 @@ | |||
118 | 19 | 19 | ||
119 | 20 | import ( | 20 | import ( |
120 | 21 | "flag" | 21 | "flag" |
121 | 22 | "launchpad.net/ubuntu-push/config" | ||
122 | 23 | "launchpad.net/ubuntu-push/server/acceptance" | ||
123 | 24 | "log" | 22 | "log" |
124 | 25 | "os" | 23 | "os" |
125 | 26 | "path/filepath" | 24 | "path/filepath" |
126 | 25 | |||
127 | 26 | "launchpad.net/ubuntu-push/config" | ||
128 | 27 | "launchpad.net/ubuntu-push/server/acceptance" | ||
129 | 27 | ) | 28 | ) |
130 | 28 | 29 | ||
131 | 29 | var ( | 30 | var ( |
132 | 30 | 31 | ||
133 | === modified file 'server/api/handlers.go' | |||
134 | --- server/api/handlers.go 2014-01-29 10:12:35 +0000 | |||
135 | +++ server/api/handlers.go 2014-02-10 23:28:55 +0000 | |||
136 | @@ -22,10 +22,11 @@ | |||
137 | 22 | "encoding/json" | 22 | "encoding/json" |
138 | 23 | "fmt" | 23 | "fmt" |
139 | 24 | "io" | 24 | "io" |
140 | 25 | "net/http" | ||
141 | 26 | |||
142 | 25 | "launchpad.net/ubuntu-push/logger" | 27 | "launchpad.net/ubuntu-push/logger" |
143 | 26 | "launchpad.net/ubuntu-push/server/broker" | 28 | "launchpad.net/ubuntu-push/server/broker" |
144 | 27 | "launchpad.net/ubuntu-push/server/store" | 29 | "launchpad.net/ubuntu-push/server/store" |
145 | 28 | "net/http" | ||
146 | 29 | ) | 30 | ) |
147 | 30 | 31 | ||
148 | 31 | const MaxRequestBodyBytes = 4 * 1024 | 32 | const MaxRequestBodyBytes = 4 * 1024 |
149 | 32 | 33 | ||
150 | === modified file 'server/api/handlers_test.go' | |||
151 | --- server/api/handlers_test.go 2014-01-29 10:10:57 +0000 | |||
152 | +++ server/api/handlers_test.go 2014-02-10 23:28:55 +0000 | |||
153 | @@ -22,12 +22,14 @@ | |||
154 | 22 | "errors" | 22 | "errors" |
155 | 23 | "fmt" | 23 | "fmt" |
156 | 24 | "io/ioutil" | 24 | "io/ioutil" |
157 | 25 | . "launchpad.net/gocheck" | ||
158 | 26 | "launchpad.net/ubuntu-push/server/store" | ||
159 | 27 | "net/http" | 25 | "net/http" |
160 | 28 | "net/http/httptest" | 26 | "net/http/httptest" |
161 | 29 | "strings" | 27 | "strings" |
162 | 30 | "testing" | 28 | "testing" |
163 | 29 | |||
164 | 30 | . "launchpad.net/gocheck" | ||
165 | 31 | |||
166 | 32 | "launchpad.net/ubuntu-push/server/store" | ||
167 | 31 | ) | 33 | ) |
168 | 32 | 34 | ||
169 | 33 | func TestHandlers(t *testing.T) { TestingT(t) } | 35 | func TestHandlers(t *testing.T) { TestingT(t) } |
170 | 34 | 36 | ||
171 | === modified file 'server/api/middleware.go' | |||
172 | --- server/api/middleware.go 2014-01-16 16:15:23 +0000 | |||
173 | +++ server/api/middleware.go 2014-02-10 23:28:55 +0000 | |||
174 | @@ -18,8 +18,9 @@ | |||
175 | 18 | 18 | ||
176 | 19 | import ( | 19 | import ( |
177 | 20 | "fmt" | 20 | "fmt" |
178 | 21 | "net/http" | ||
179 | 22 | |||
180 | 21 | "launchpad.net/ubuntu-push/logger" | 23 | "launchpad.net/ubuntu-push/logger" |
181 | 22 | "net/http" | ||
182 | 23 | ) | 24 | ) |
183 | 24 | 25 | ||
184 | 25 | // PanicTo500Handler wraps another handler such that panics are recovered | 26 | // PanicTo500Handler wraps another handler such that panics are recovered |
185 | 26 | 27 | ||
186 | === modified file 'server/api/middleware_test.go' | |||
187 | --- server/api/middleware_test.go 2014-02-04 22:30:56 +0000 | |||
188 | +++ server/api/middleware_test.go 2014-02-10 23:28:55 +0000 | |||
189 | @@ -17,10 +17,12 @@ | |||
190 | 17 | package api | 17 | package api |
191 | 18 | 18 | ||
192 | 19 | import ( | 19 | import ( |
193 | 20 | "net/http" | ||
194 | 21 | "net/http/httptest" | ||
195 | 22 | |||
196 | 20 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
197 | 24 | |||
198 | 21 | helpers "launchpad.net/ubuntu-push/testing" | 25 | helpers "launchpad.net/ubuntu-push/testing" |
199 | 22 | "net/http" | ||
200 | 23 | "net/http/httptest" | ||
201 | 24 | ) | 26 | ) |
202 | 25 | 27 | ||
203 | 26 | type middlewareSuite struct{} | 28 | type middlewareSuite struct{} |
204 | 27 | 29 | ||
205 | === modified file 'server/bootlog.go' | |||
206 | --- server/bootlog.go 2014-01-23 15:33:30 +0000 | |||
207 | +++ server/bootlog.go 2014-02-10 23:28:55 +0000 | |||
208 | @@ -17,9 +17,10 @@ | |||
209 | 17 | package server | 17 | package server |
210 | 18 | 18 | ||
211 | 19 | import ( | 19 | import ( |
212 | 20 | "launchpad.net/ubuntu-push/logger" | ||
213 | 21 | "net" | 20 | "net" |
214 | 22 | "os" | 21 | "os" |
215 | 22 | |||
216 | 23 | "launchpad.net/ubuntu-push/logger" | ||
217 | 23 | ) | 24 | ) |
218 | 24 | 25 | ||
219 | 25 | // boot logging and hooks | 26 | // boot logging and hooks |
220 | 26 | 27 | ||
221 | === modified file 'server/bootlog_test.go' | |||
222 | --- server/bootlog_test.go 2014-02-04 22:26:04 +0000 | |||
223 | +++ server/bootlog_test.go 2014-02-10 23:28:55 +0000 | |||
224 | @@ -17,10 +17,12 @@ | |||
225 | 17 | package server | 17 | package server |
226 | 18 | 18 | ||
227 | 19 | import ( | 19 | import ( |
228 | 20 | "net" | ||
229 | 21 | "testing" | ||
230 | 22 | |||
231 | 20 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
232 | 24 | |||
233 | 21 | helpers "launchpad.net/ubuntu-push/testing" | 25 | helpers "launchpad.net/ubuntu-push/testing" |
234 | 22 | "net" | ||
235 | 23 | "testing" | ||
236 | 24 | ) | 26 | ) |
237 | 25 | 27 | ||
238 | 26 | func TestRunners(t *testing.T) { TestingT(t) } | 28 | func TestRunners(t *testing.T) { TestingT(t) } |
239 | 27 | 29 | ||
240 | === modified file 'server/broker/broker.go' | |||
241 | --- server/broker/broker.go 2014-01-31 16:36:16 +0000 | |||
242 | +++ server/broker/broker.go 2014-02-10 23:28:55 +0000 | |||
243 | @@ -20,6 +20,7 @@ | |||
244 | 20 | 20 | ||
245 | 21 | import ( | 21 | import ( |
246 | 22 | "fmt" | 22 | "fmt" |
247 | 23 | |||
248 | 23 | "launchpad.net/ubuntu-push/protocol" | 24 | "launchpad.net/ubuntu-push/protocol" |
249 | 24 | "launchpad.net/ubuntu-push/server/store" | 25 | "launchpad.net/ubuntu-push/server/store" |
250 | 25 | ) | 26 | ) |
251 | 26 | 27 | ||
252 | === modified file 'server/broker/broker_test.go' | |||
253 | --- server/broker/broker_test.go 2014-01-23 20:13:22 +0000 | |||
254 | +++ server/broker/broker_test.go 2014-02-10 23:28:55 +0000 | |||
255 | @@ -18,6 +18,7 @@ | |||
256 | 18 | 18 | ||
257 | 19 | import ( | 19 | import ( |
258 | 20 | "fmt" | 20 | "fmt" |
259 | 21 | |||
260 | 21 | . "launchpad.net/gocheck" | 22 | . "launchpad.net/gocheck" |
261 | 22 | ) | 23 | ) |
262 | 23 | 24 | ||
263 | 24 | 25 | ||
264 | === modified file 'server/broker/exchanges.go' | |||
265 | --- server/broker/exchanges.go 2014-02-04 12:26:33 +0000 | |||
266 | +++ server/broker/exchanges.go 2014-02-10 23:28:55 +0000 | |||
267 | @@ -18,9 +18,9 @@ | |||
268 | 18 | 18 | ||
269 | 19 | import ( | 19 | import ( |
270 | 20 | "encoding/json" | 20 | "encoding/json" |
271 | 21 | |||
272 | 21 | "launchpad.net/ubuntu-push/protocol" | 22 | "launchpad.net/ubuntu-push/protocol" |
273 | 22 | "launchpad.net/ubuntu-push/server/store" | 23 | "launchpad.net/ubuntu-push/server/store" |
274 | 23 | // "log" | ||
275 | 24 | ) | 24 | ) |
276 | 25 | 25 | ||
277 | 26 | // Exchanges | 26 | // Exchanges |
278 | 27 | 27 | ||
279 | === modified file 'server/broker/exchanges_test.go' | |||
280 | --- server/broker/exchanges_test.go 2014-01-31 16:36:16 +0000 | |||
281 | +++ server/broker/exchanges_test.go 2014-02-10 23:28:55 +0000 | |||
282 | @@ -18,15 +18,16 @@ | |||
283 | 18 | 18 | ||
284 | 19 | import ( | 19 | import ( |
285 | 20 | "encoding/json" | 20 | "encoding/json" |
286 | 21 | stdtesting "testing" | ||
287 | 22 | |||
288 | 21 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
289 | 24 | |||
290 | 22 | "launchpad.net/ubuntu-push/server/broker" | 25 | "launchpad.net/ubuntu-push/server/broker" |
291 | 23 | "launchpad.net/ubuntu-push/server/broker/testing" | 26 | "launchpad.net/ubuntu-push/server/broker/testing" |
292 | 24 | "launchpad.net/ubuntu-push/server/store" | 27 | "launchpad.net/ubuntu-push/server/store" |
293 | 25 | // "log" | ||
294 | 26 | gotesting "testing" | ||
295 | 27 | ) | 28 | ) |
296 | 28 | 29 | ||
298 | 29 | func TestBroker(t *gotesting.T) { TestingT(t) } | 30 | func TestBroker(t *stdtesting.T) { TestingT(t) } |
299 | 30 | 31 | ||
300 | 31 | type exchangesSuite struct{} | 32 | type exchangesSuite struct{} |
301 | 32 | 33 | ||
302 | 33 | 34 | ||
303 | === modified file 'server/broker/exchg_impl_test.go' | |||
304 | --- server/broker/exchg_impl_test.go 2014-02-04 12:26:33 +0000 | |||
305 | +++ server/broker/exchg_impl_test.go 2014-02-10 23:28:55 +0000 | |||
306 | @@ -18,8 +18,8 @@ | |||
307 | 18 | 18 | ||
308 | 19 | import ( | 19 | import ( |
309 | 20 | "encoding/json" | 20 | "encoding/json" |
310 | 21 | |||
311 | 21 | . "launchpad.net/gocheck" | 22 | . "launchpad.net/gocheck" |
312 | 22 | // "log" | ||
313 | 23 | ) | 23 | ) |
314 | 24 | 24 | ||
315 | 25 | type exchangesImplSuite struct{} | 25 | type exchangesImplSuite struct{} |
316 | 26 | 26 | ||
317 | === modified file 'server/broker/simple/simple.go' | |||
318 | --- server/broker/simple/simple.go 2014-01-23 20:13:22 +0000 | |||
319 | +++ server/broker/simple/simple.go 2014-02-10 23:28:55 +0000 | |||
320 | @@ -18,12 +18,12 @@ | |||
321 | 18 | package simple | 18 | package simple |
322 | 19 | 19 | ||
323 | 20 | import ( | 20 | import ( |
324 | 21 | "sync" | ||
325 | 22 | |||
326 | 21 | "launchpad.net/ubuntu-push/logger" | 23 | "launchpad.net/ubuntu-push/logger" |
327 | 22 | "launchpad.net/ubuntu-push/protocol" | 24 | "launchpad.net/ubuntu-push/protocol" |
328 | 23 | "launchpad.net/ubuntu-push/server/broker" | 25 | "launchpad.net/ubuntu-push/server/broker" |
329 | 24 | "launchpad.net/ubuntu-push/server/store" | 26 | "launchpad.net/ubuntu-push/server/store" |
330 | 25 | // "log" | ||
331 | 26 | "sync" | ||
332 | 27 | ) | 27 | ) |
333 | 28 | 28 | ||
334 | 29 | // SimpleBroker implements broker.Broker/BrokerSending for everything in just one process. | 29 | // SimpleBroker implements broker.Broker/BrokerSending for everything in just one process. |
335 | 30 | 30 | ||
336 | === modified file 'server/broker/simple/simple_test.go' | |||
337 | --- server/broker/simple/simple_test.go 2014-01-23 20:13:22 +0000 | |||
338 | +++ server/broker/simple/simple_test.go 2014-02-10 23:28:55 +0000 | |||
339 | @@ -18,15 +18,16 @@ | |||
340 | 18 | 18 | ||
341 | 19 | import ( | 19 | import ( |
342 | 20 | "encoding/json" | 20 | "encoding/json" |
343 | 21 | stdtesting "testing" | ||
344 | 22 | |||
345 | 21 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
346 | 24 | |||
347 | 22 | "launchpad.net/ubuntu-push/server/broker" | 25 | "launchpad.net/ubuntu-push/server/broker" |
348 | 23 | "launchpad.net/ubuntu-push/server/broker/testing" | 26 | "launchpad.net/ubuntu-push/server/broker/testing" |
349 | 24 | "launchpad.net/ubuntu-push/server/store" | 27 | "launchpad.net/ubuntu-push/server/store" |
350 | 25 | // "log" | ||
351 | 26 | gotesting "testing" | ||
352 | 27 | ) | 28 | ) |
353 | 28 | 29 | ||
355 | 29 | func TestSimple(t *gotesting.T) { TestingT(t) } | 30 | func TestSimple(t *stdtesting.T) { TestingT(t) } |
356 | 30 | 31 | ||
357 | 31 | type simpleSuite struct{} | 32 | type simpleSuite struct{} |
358 | 32 | 33 | ||
359 | 33 | 34 | ||
360 | === modified file 'server/broker/simple/suite_test.go' | |||
361 | --- server/broker/simple/suite_test.go 2014-02-04 21:35:11 +0000 | |||
362 | +++ server/broker/simple/suite_test.go 2014-02-10 23:28:55 +0000 | |||
363 | @@ -18,6 +18,7 @@ | |||
364 | 18 | 18 | ||
365 | 19 | import ( | 19 | import ( |
366 | 20 | . "launchpad.net/gocheck" | 20 | . "launchpad.net/gocheck" |
367 | 21 | |||
368 | 21 | "launchpad.net/ubuntu-push/logger" | 22 | "launchpad.net/ubuntu-push/logger" |
369 | 22 | "launchpad.net/ubuntu-push/server/broker" | 23 | "launchpad.net/ubuntu-push/server/broker" |
370 | 23 | "launchpad.net/ubuntu-push/server/broker/testsuite" | 24 | "launchpad.net/ubuntu-push/server/broker/testsuite" |
371 | 24 | 25 | ||
372 | === modified file 'server/broker/testsuite/suite.go' | |||
373 | --- server/broker/testsuite/suite.go 2014-02-04 22:30:42 +0000 | |||
374 | +++ server/broker/testsuite/suite.go 2014-02-10 23:28:55 +0000 | |||
375 | @@ -20,15 +20,17 @@ | |||
376 | 20 | import ( | 20 | import ( |
377 | 21 | "encoding/json" | 21 | "encoding/json" |
378 | 22 | "errors" | 22 | "errors" |
379 | 23 | // "log" | ||
380 | 24 | "time" | ||
381 | 25 | |||
382 | 23 | . "launchpad.net/gocheck" | 26 | . "launchpad.net/gocheck" |
383 | 27 | |||
384 | 24 | "launchpad.net/ubuntu-push/logger" | 28 | "launchpad.net/ubuntu-push/logger" |
385 | 25 | "launchpad.net/ubuntu-push/protocol" | 29 | "launchpad.net/ubuntu-push/protocol" |
386 | 26 | "launchpad.net/ubuntu-push/server/broker" | 30 | "launchpad.net/ubuntu-push/server/broker" |
387 | 27 | "launchpad.net/ubuntu-push/server/broker/testing" | 31 | "launchpad.net/ubuntu-push/server/broker/testing" |
388 | 28 | "launchpad.net/ubuntu-push/server/store" | 32 | "launchpad.net/ubuntu-push/server/store" |
389 | 29 | helpers "launchpad.net/ubuntu-push/testing" | 33 | helpers "launchpad.net/ubuntu-push/testing" |
390 | 30 | // "log" | ||
391 | 31 | "time" | ||
392 | 32 | ) | 34 | ) |
393 | 33 | 35 | ||
394 | 34 | // The expected interface for tested brokers. | 36 | // The expected interface for tested brokers. |
395 | 35 | 37 | ||
396 | === modified file 'server/config_test.go' | |||
397 | --- server/config_test.go 2014-01-23 15:33:30 +0000 | |||
398 | +++ server/config_test.go 2014-02-10 23:28:55 +0000 | |||
399 | @@ -19,11 +19,13 @@ | |||
400 | 19 | import ( | 19 | import ( |
401 | 20 | "bytes" | 20 | "bytes" |
402 | 21 | "io/ioutil" | 21 | "io/ioutil" |
403 | 22 | . "launchpad.net/gocheck" | ||
404 | 23 | "launchpad.net/ubuntu-push/config" | ||
405 | 24 | "os" | 22 | "os" |
406 | 25 | "path/filepath" | 23 | "path/filepath" |
407 | 26 | "time" | 24 | "time" |
408 | 25 | |||
409 | 26 | . "launchpad.net/gocheck" | ||
410 | 27 | |||
411 | 28 | "launchpad.net/ubuntu-push/config" | ||
412 | 27 | ) | 29 | ) |
413 | 28 | 30 | ||
414 | 29 | type configSuite struct{} | 31 | type configSuite struct{} |
415 | 30 | 32 | ||
416 | === modified file 'server/dev/server.go' | |||
417 | --- server/dev/server.go 2014-01-23 18:39:10 +0000 | |||
418 | +++ server/dev/server.go 2014-02-10 23:28:55 +0000 | |||
419 | @@ -18,6 +18,10 @@ | |||
420 | 18 | package main | 18 | package main |
421 | 19 | 19 | ||
422 | 20 | import ( | 20 | import ( |
423 | 21 | "net" | ||
424 | 22 | "os" | ||
425 | 23 | "path/filepath" | ||
426 | 24 | |||
427 | 21 | "launchpad.net/ubuntu-push/config" | 25 | "launchpad.net/ubuntu-push/config" |
428 | 22 | "launchpad.net/ubuntu-push/logger" | 26 | "launchpad.net/ubuntu-push/logger" |
429 | 23 | "launchpad.net/ubuntu-push/server" | 27 | "launchpad.net/ubuntu-push/server" |
430 | @@ -25,9 +29,6 @@ | |||
431 | 25 | "launchpad.net/ubuntu-push/server/broker/simple" | 29 | "launchpad.net/ubuntu-push/server/broker/simple" |
432 | 26 | "launchpad.net/ubuntu-push/server/session" | 30 | "launchpad.net/ubuntu-push/server/session" |
433 | 27 | "launchpad.net/ubuntu-push/server/store" | 31 | "launchpad.net/ubuntu-push/server/store" |
434 | 28 | "net" | ||
435 | 29 | "os" | ||
436 | 30 | "path/filepath" | ||
437 | 31 | ) | 32 | ) |
438 | 32 | 33 | ||
439 | 33 | type configuration struct { | 34 | type configuration struct { |
440 | 34 | 35 | ||
441 | === modified file 'server/listener/listener.go' | |||
442 | --- server/listener/listener.go 2014-01-21 21:34:10 +0000 | |||
443 | +++ server/listener/listener.go 2014-02-10 23:28:55 +0000 | |||
444 | @@ -19,9 +19,10 @@ | |||
445 | 19 | 19 | ||
446 | 20 | import ( | 20 | import ( |
447 | 21 | "crypto/tls" | 21 | "crypto/tls" |
448 | 22 | "launchpad.net/ubuntu-push/logger" | ||
449 | 23 | "net" | 22 | "net" |
450 | 24 | "time" | 23 | "time" |
451 | 24 | |||
452 | 25 | "launchpad.net/ubuntu-push/logger" | ||
453 | 25 | ) | 26 | ) |
454 | 26 | 27 | ||
455 | 27 | // A DeviceListenerConfig offers the DeviceListener configuration. | 28 | // A DeviceListenerConfig offers the DeviceListener configuration. |
456 | 28 | 29 | ||
457 | === modified file 'server/listener/listener_test.go' | |||
458 | --- server/listener/listener_test.go 2014-02-04 21:35:11 +0000 | |||
459 | +++ server/listener/listener_test.go 2014-02-10 23:28:55 +0000 | |||
460 | @@ -19,12 +19,14 @@ | |||
461 | 19 | import ( | 19 | import ( |
462 | 20 | "crypto/tls" | 20 | "crypto/tls" |
463 | 21 | "crypto/x509" | 21 | "crypto/x509" |
464 | 22 | . "launchpad.net/gocheck" | ||
465 | 23 | helpers "launchpad.net/ubuntu-push/testing" | ||
466 | 24 | "net" | 22 | "net" |
467 | 25 | "syscall" | 23 | "syscall" |
468 | 26 | "testing" | 24 | "testing" |
469 | 27 | "time" | 25 | "time" |
470 | 26 | |||
471 | 27 | . "launchpad.net/gocheck" | ||
472 | 28 | |||
473 | 29 | helpers "launchpad.net/ubuntu-push/testing" | ||
474 | 28 | ) | 30 | ) |
475 | 29 | 31 | ||
476 | 30 | func TestListener(t *testing.T) { TestingT(t) } | 32 | func TestListener(t *testing.T) { TestingT(t) } |
477 | 31 | 33 | ||
478 | === modified file 'server/runner_devices.go' | |||
479 | --- server/runner_devices.go 2014-01-23 15:33:30 +0000 | |||
480 | +++ server/runner_devices.go 2014-02-10 23:28:55 +0000 | |||
481 | @@ -18,12 +18,13 @@ | |||
482 | 18 | 18 | ||
483 | 19 | import ( | 19 | import ( |
484 | 20 | "fmt" | 20 | "fmt" |
485 | 21 | "net" | ||
486 | 22 | "syscall" | ||
487 | 23 | "time" | ||
488 | 24 | |||
489 | 21 | "launchpad.net/ubuntu-push/config" | 25 | "launchpad.net/ubuntu-push/config" |
490 | 22 | "launchpad.net/ubuntu-push/logger" | 26 | "launchpad.net/ubuntu-push/logger" |
491 | 23 | "launchpad.net/ubuntu-push/server/listener" | 27 | "launchpad.net/ubuntu-push/server/listener" |
492 | 24 | "net" | ||
493 | 25 | "syscall" | ||
494 | 26 | "time" | ||
495 | 27 | ) | 28 | ) |
496 | 28 | 29 | ||
497 | 29 | // A DevicesParsedConfig holds and can be used to parse the device server config. | 30 | // A DevicesParsedConfig holds and can be used to parse the device server config. |
498 | 30 | 31 | ||
499 | === modified file 'server/runner_http.go' | |||
500 | --- server/runner_http.go 2014-01-23 15:33:30 +0000 | |||
501 | +++ server/runner_http.go 2014-02-10 23:28:55 +0000 | |||
502 | @@ -17,9 +17,10 @@ | |||
503 | 17 | package server | 17 | package server |
504 | 18 | 18 | ||
505 | 19 | import ( | 19 | import ( |
506 | 20 | "launchpad.net/ubuntu-push/config" | ||
507 | 21 | "net" | 20 | "net" |
508 | 22 | "net/http" | 21 | "net/http" |
509 | 22 | |||
510 | 23 | "launchpad.net/ubuntu-push/config" | ||
511 | 23 | ) | 24 | ) |
512 | 24 | 25 | ||
513 | 25 | // A HTTPServeParsedConfig holds and can be used to parse the HTTP server config. | 26 | // A HTTPServeParsedConfig holds and can be used to parse the HTTP server config. |
514 | 26 | 27 | ||
515 | === modified file 'server/runner_test.go' | |||
516 | --- server/runner_test.go 2014-02-04 22:51:42 +0000 | |||
517 | +++ server/runner_test.go 2014-02-10 23:28:55 +0000 | |||
518 | @@ -19,12 +19,14 @@ | |||
519 | 19 | import ( | 19 | import ( |
520 | 20 | "fmt" | 20 | "fmt" |
521 | 21 | "io/ioutil" | 21 | "io/ioutil" |
522 | 22 | "net" | ||
523 | 23 | "net/http" | ||
524 | 24 | "time" | ||
525 | 25 | |||
526 | 22 | . "launchpad.net/gocheck" | 26 | . "launchpad.net/gocheck" |
527 | 27 | |||
528 | 23 | "launchpad.net/ubuntu-push/config" | 28 | "launchpad.net/ubuntu-push/config" |
529 | 24 | helpers "launchpad.net/ubuntu-push/testing" | 29 | helpers "launchpad.net/ubuntu-push/testing" |
530 | 25 | "net" | ||
531 | 26 | "net/http" | ||
532 | 27 | "time" | ||
533 | 28 | ) | 30 | ) |
534 | 29 | 31 | ||
535 | 30 | type runnerSuite struct { | 32 | type runnerSuite struct { |
536 | 31 | 33 | ||
537 | === modified file 'server/session/session.go' | |||
538 | --- server/session/session.go 2014-01-31 17:25:02 +0000 | |||
539 | +++ server/session/session.go 2014-02-10 23:28:55 +0000 | |||
540 | @@ -18,10 +18,11 @@ | |||
541 | 18 | package session | 18 | package session |
542 | 19 | 19 | ||
543 | 20 | import ( | 20 | import ( |
544 | 21 | "net" | ||
545 | 22 | "time" | ||
546 | 23 | |||
547 | 21 | "launchpad.net/ubuntu-push/protocol" | 24 | "launchpad.net/ubuntu-push/protocol" |
548 | 22 | "launchpad.net/ubuntu-push/server/broker" | 25 | "launchpad.net/ubuntu-push/server/broker" |
549 | 23 | "net" | ||
550 | 24 | "time" | ||
551 | 25 | ) | 26 | ) |
552 | 26 | 27 | ||
553 | 27 | // SessionConfig is for carrying the session configuration. | 28 | // SessionConfig is for carrying the session configuration. |
554 | 28 | 29 | ||
555 | === modified file 'server/session/session_test.go' | |||
556 | --- server/session/session_test.go 2014-02-04 22:39:18 +0000 | |||
557 | +++ server/session/session_test.go 2014-02-10 23:28:55 +0000 | |||
558 | @@ -22,18 +22,20 @@ | |||
559 | 22 | "errors" | 22 | "errors" |
560 | 23 | "fmt" | 23 | "fmt" |
561 | 24 | "io" | 24 | "io" |
562 | 25 | "net" | ||
563 | 26 | "reflect" | ||
564 | 27 | stdtesting "testing" | ||
565 | 28 | "time" | ||
566 | 29 | |||
567 | 25 | . "launchpad.net/gocheck" | 30 | . "launchpad.net/gocheck" |
568 | 31 | |||
569 | 26 | "launchpad.net/ubuntu-push/protocol" | 32 | "launchpad.net/ubuntu-push/protocol" |
570 | 27 | "launchpad.net/ubuntu-push/server/broker" | 33 | "launchpad.net/ubuntu-push/server/broker" |
571 | 28 | "launchpad.net/ubuntu-push/server/broker/testing" | 34 | "launchpad.net/ubuntu-push/server/broker/testing" |
572 | 29 | helpers "launchpad.net/ubuntu-push/testing" | 35 | helpers "launchpad.net/ubuntu-push/testing" |
573 | 30 | "net" | ||
574 | 31 | "reflect" | ||
575 | 32 | gotesting "testing" | ||
576 | 33 | "time" | ||
577 | 34 | ) | 36 | ) |
578 | 35 | 37 | ||
580 | 36 | func TestSession(t *gotesting.T) { TestingT(t) } | 38 | func TestSession(t *stdtesting.T) { TestingT(t) } |
581 | 37 | 39 | ||
582 | 38 | type sessionSuite struct { | 40 | type sessionSuite struct { |
583 | 39 | testlog *helpers.TestLogger | 41 | testlog *helpers.TestLogger |
584 | 40 | 42 | ||
585 | === modified file 'server/session/tracker.go' | |||
586 | --- server/session/tracker.go 2014-01-31 17:25:02 +0000 | |||
587 | +++ server/session/tracker.go 2014-02-10 23:28:55 +0000 | |||
588 | @@ -17,10 +17,11 @@ | |||
589 | 17 | package session | 17 | package session |
590 | 18 | 18 | ||
591 | 19 | import ( | 19 | import ( |
592 | 20 | "net" | ||
593 | 21 | "time" | ||
594 | 22 | |||
595 | 20 | "launchpad.net/ubuntu-push/logger" | 23 | "launchpad.net/ubuntu-push/logger" |
596 | 21 | "launchpad.net/ubuntu-push/server/broker" | 24 | "launchpad.net/ubuntu-push/server/broker" |
597 | 22 | "net" | ||
598 | 23 | "time" | ||
599 | 24 | ) | 25 | ) |
600 | 25 | 26 | ||
601 | 26 | // SessionTracker logs session events. | 27 | // SessionTracker logs session events. |
602 | 27 | 28 | ||
603 | === modified file 'server/session/tracker_test.go' | |||
604 | --- server/session/tracker_test.go 2014-02-04 22:45:15 +0000 | |||
605 | +++ server/session/tracker_test.go 2014-02-10 23:28:55 +0000 | |||
606 | @@ -18,11 +18,13 @@ | |||
607 | 18 | 18 | ||
608 | 19 | import ( | 19 | import ( |
609 | 20 | "fmt" | 20 | "fmt" |
610 | 21 | "net" | ||
611 | 22 | |||
612 | 21 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
613 | 24 | |||
614 | 22 | "launchpad.net/ubuntu-push/server/broker" | 25 | "launchpad.net/ubuntu-push/server/broker" |
615 | 23 | "launchpad.net/ubuntu-push/server/broker/testing" | 26 | "launchpad.net/ubuntu-push/server/broker/testing" |
616 | 24 | helpers "launchpad.net/ubuntu-push/testing" | 27 | helpers "launchpad.net/ubuntu-push/testing" |
617 | 25 | "net" | ||
618 | 26 | ) | 28 | ) |
619 | 27 | 29 | ||
620 | 28 | type trackerSuite struct { | 30 | type trackerSuite struct { |
621 | 29 | 31 | ||
622 | === modified file 'server/store/inmemory_test.go' | |||
623 | --- server/store/inmemory_test.go 2014-01-14 15:35:20 +0000 | |||
624 | +++ server/store/inmemory_test.go 2014-02-10 23:28:55 +0000 | |||
625 | @@ -19,6 +19,7 @@ | |||
626 | 19 | import ( | 19 | import ( |
627 | 20 | "encoding/json" | 20 | "encoding/json" |
628 | 21 | // "fmt" | 21 | // "fmt" |
629 | 22 | |||
630 | 22 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
631 | 23 | ) | 24 | ) |
632 | 24 | 25 | ||
633 | 25 | 26 | ||
634 | === modified file 'server/store/store_test.go' | |||
635 | --- server/store/store_test.go 2014-01-14 15:35:20 +0000 | |||
636 | +++ server/store/store_test.go 2014-02-10 23:28:55 +0000 | |||
637 | @@ -18,9 +18,11 @@ | |||
638 | 18 | 18 | ||
639 | 19 | import ( | 19 | import ( |
640 | 20 | // "fmt" | 20 | // "fmt" |
641 | 21 | "testing" | ||
642 | 22 | |||
643 | 21 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
644 | 24 | |||
645 | 22 | "launchpad.net/ubuntu-push/protocol" | 25 | "launchpad.net/ubuntu-push/protocol" |
646 | 23 | "testing" | ||
647 | 24 | ) | 26 | ) |
648 | 25 | 27 | ||
649 | 26 | func TestStore(t *testing.T) { TestingT(t) } | 28 | func TestStore(t *testing.T) { TestingT(t) } |
650 | 27 | 29 | ||
651 | === modified file 'testing/condition/condition_test.go' | |||
652 | --- testing/condition/condition_test.go 2014-01-20 06:23:17 +0000 | |||
653 | +++ testing/condition/condition_test.go 2014-02-10 23:28:55 +0000 | |||
654 | @@ -17,8 +17,9 @@ | |||
655 | 17 | package condition | 17 | package condition |
656 | 18 | 18 | ||
657 | 19 | import ( | 19 | import ( |
658 | 20 | "testing" | ||
659 | 21 | |||
660 | 20 | "launchpad.net/gocheck" // not into . because we have our own Not | 22 | "launchpad.net/gocheck" // not into . because we have our own Not |
661 | 21 | "testing" | ||
662 | 22 | ) | 23 | ) |
663 | 23 | 24 | ||
664 | 24 | // hook up gocheck | 25 | // hook up gocheck |
665 | 25 | 26 | ||
666 | === modified file 'testing/helpers.go' | |||
667 | --- testing/helpers.go 2014-02-07 10:48:21 +0000 | |||
668 | +++ testing/helpers.go 2014-02-10 23:28:55 +0000 | |||
669 | @@ -19,12 +19,13 @@ | |||
670 | 19 | 19 | ||
671 | 20 | import ( | 20 | import ( |
672 | 21 | "fmt" | 21 | "fmt" |
673 | 22 | "launchpad.net/ubuntu-push/logger" | ||
674 | 23 | "os" | 22 | "os" |
675 | 24 | "path/filepath" | 23 | "path/filepath" |
676 | 25 | "runtime" | 24 | "runtime" |
677 | 26 | "strings" | 25 | "strings" |
678 | 27 | "sync" | 26 | "sync" |
679 | 27 | |||
680 | 28 | "launchpad.net/ubuntu-push/logger" | ||
681 | 28 | ) | 29 | ) |
682 | 29 | 30 | ||
683 | 30 | type captureHelper struct { | 31 | type captureHelper struct { |