Brad Fitzpatrick
99a4ee0fd3
osutil: don't use host config during tests
...
Change-Id: I28171f0dc9c3c21c9693805781275c39ed517d25
2014-02-23 10:00:45 -08:00
Brad Fitzpatrick
8bbe100bbc
osutil: fail if used during tests
...
Disabled by default for now. Will fix cases and set by default, to proactively
catch future testing mistakes.
Change-Id: If292ccd105e214ee888bcad98efb4e49f052e4fd
2014-02-23 09:45:23 -08:00
Brad Fitzpatrick
b099f5b101
leak: disable test by default for now
...
Change-Id: Idf590dc4b69b69e860c0d321428b18a30bf77254
2014-02-23 09:44:27 -08:00
Brad Fitzpatrick
2237aee0f3
leak: fix test print
...
Change-Id: I936cf556bf2e26d4862d6427f790aa4f5fca32f1
2014-02-23 09:40:44 -08:00
Brad Fitzpatrick
830864b715
client: don't call osutil.HomeDir during test.
...
Prep for future changing which makes this crash.
Change-Id: Ic02f7319deffb1d47e89f45d066fa4e62d45e499
2014-02-23 09:34:16 -08:00
Brad Fitzpatrick
18daf0b601
buildinfo: add func TestingLinked
...
Change-Id: I664f72ec04748079929d0ad96e24b33bc14c6c77
2014-02-23 09:21:11 -08:00
Brad Fitzpatrick
85e2e5e301
Fix crash with "go test -v -cpu=1,1 ./cmd/camput/"
...
Don't double-register the help flag. Only affects tests run twice, like above.
Change-Id: Ia235f2e2aa4a70e3b5a5c6fe21d8add90069664f
2014-02-21 10:59:34 -08:00
Brad Fitzpatrick
0f046b8a45
client: actually submit code that compiles
...
Change-Id: I4e3b2f786d46a524a52ce1a86d7bd5b625818527
2014-02-19 19:57:22 -08:00
Brad Fitzpatrick
76322ec428
client: don't do discovery in non-HTTP mode
...
Change-Id: Idcef3b58827fffe1f3df091c3e675b91d0ed8960
2014-02-19 19:50:19 -08:00
Brian Gitonga Marete
ccc81242a1
pkg/tests: Warn about deprecation of asserts.* functions in pkg description.
...
Change-Id: I39e158a92a6f4fa6f3f93551985d9d20ad40c98f
2014-02-19 10:42:29 +03:00
Brad Fitzpatrick
16219f24b0
cmdmain: set flagset output to cmdmain.Stderr
...
Default flag output only goes to cmdmain.Stderr when >= Go 1.2
Change-Id: Id2358b4c22b76901ceb834695d54e32f7c2d7013
2014-02-18 18:41:51 -08:00
Brad Fitzpatrick
f99eaf5e36
cmdmain: guard ExtraFlagRegistration with a Once
...
Change-Id: Id54111dc21eeb61b02721117123b956fcc3b47fd
2014-02-18 00:31:10 -08:00
mpl
2194134b70
fs: clean up mountpoints after tests
...
Otherwise they tend to annoyingly accumulate on long-lived hosts (such
as the buildbot).
Change-Id: I41eb90423c1f98d8481fb3308c2cdcb74fc86ddd
2014-02-17 23:31:19 +01:00
Brad Fitzpatrick
ef121a2b62
Merge "remove redundant return statement"
2014-02-11 01:25:52 +00:00
Brad Fitzpatrick
95e0f172e0
Rename serverconfig*.go to serverinit*.go
...
Change-Id: I198d8d17ed32202f8a014af645a006613246db85
2014-02-10 17:00:11 -08:00
Brad Fitzpatrick
3cc79570e8
serverinit: TODO stub for websocket support
...
Change-Id: Id195830adcdebb009ac2ed8e94c1a5287798f8fa
2014-02-10 16:59:28 -08:00
Brad Fitzpatrick
79cb116dbb
Merge "pkg/types/serverconfig: json-tagged struct"
2014-02-11 00:56:11 +00:00
Andrew Gerrand
0a1fe281ca
remove redundant return statement
...
Change-Id: I09f61e61c0aa2c0ecaec04eb7541374a3265879e
2014-02-11 10:50:30 +11:00
mpl
6707837806
pkg/types/serverconfig: json-tagged struct
...
Also changed the TLS/HTTPS config keys for consistency.
http://camlistore.org/issue/339
Change-Id: I704ec129f91b93ebb20bc1191816166a2f10692d
2014-02-10 21:49:11 +01:00
Brad Fitzpatrick
3c00ed347c
mongo: test using Docker
...
Under a second to start and test against a real MongoDB instace in Docker:
$ go test -v camlistore.org/pkg/sorted/mongo
=== RUN TestMongoKV
--- PASS: TestMongoKV (0.79 seconds)
PASS
ok camlistore.org/pkg/sorted/mongo 0.791s
Test is skipped in short mode, or if docker isn't available.
Change-Id: I6f3acc96357cf9c50054b3df6727661c9329e6bf
2014-02-09 20:02:56 -08:00
Brad Fitzpatrick
dd03756f07
netutil: add little AwaitReachable func
...
Change-Id: I52af3add776cd57ca91c073e0ec563c50923d40f
2014-02-09 19:55:36 -08:00
Brad Fitzpatrick
abcea5421c
Merge "third_party,jsonsign: bump openpgp to 188:61c59dda830a"
2014-02-09 23:49:46 +00:00
Brad Fitzpatrick
f4bbeb3549
cmdmain: remove spurious newlines from commands with no examples
...
Change-Id: I0cae9dd4a822fb94e3ecdff7dc257bd3804fdd04
2014-02-09 15:41:52 -08:00
Brad Fitzpatrick
16b4d5c7e3
camtool: add discovery subcommand
...
Change-Id: Ic4cbc2777719301d3e4f3cdb0b14c10be6f64b3e
2014-02-09 15:16:47 -08:00
mpl
dc6b0d73e1
Merge "jsonsign: clean up remnants of old secret ring default"
2014-02-09 21:17:45 +00:00
Brad Fitzpatrick
fa672061e0
Merge branch 'master' of https://camlistore.googlesource.com/camlistore
2014-02-09 08:07:09 -08:00
Brad Fitzpatrick
d92010ae9c
blobserver/s3: add manual test
...
Change-Id: I5854aecdb3e4d9e03a7cf56dc7901dc859821a46
2014-02-09 08:06:56 -08:00
Brad Fitzpatrick
5198699e26
Merge "Bump is:pano threshold to 2.0."
2014-02-09 04:25:44 +00:00
Brad Fitzpatrick
283aa2a03a
Fix build on 32-bit platforms (e.g. Android)
...
Change-Id: Id5feff31ed103aeaaebf9b3e09a5e8a03b572a2d
2014-02-08 16:43:21 -08:00
mpl
c4f3a5b215
third_party,jsonsign: bump openpgp to 188:61c59dda830a
...
http://camlistore.org/issue/370
Change-Id: I0066b1ad1455ff7960bda1f64ee953daa1195e1c
2014-02-09 01:04:36 +01:00
Aaron Boodman
5a1e831a7b
Bump is:pano threshold to 2.0.
...
Previous value of 1.6 was too small because iPhone 5's aspect ratio
is 1.78, meaning all landscape iPhone 5 photos were included in
is:pano. Same with Moto-X and probably other newer phones.
I tried 1.8, but it still "felt" too small. I think the correct
value is atleast 2.0, but perhaps larger. I don't have enough test
data in that range right now to get a good feel for it.
Change-Id: I6a3e054290d6f434afac8142a9abc68e53008229
2014-02-08 15:48:29 -08:00
mpl
5a29733d3c
jsonsign: clean up remnants of old secret ring default
...
http://camlistore.org/issue/368
Change-Id: I2708a97fdffd218f15ed9a1d482712ed7ed07197
2014-02-09 00:15:37 +01:00
Tamás Gulácsi
97520583b8
Use 'uint32' instead of 'int64' for blob sizes everywhere.
...
Not just in blob.SizedRef, but in blobserver.Fetch and
blobserver.FetchStreaming, too.
Blobs have a max size of 10-32 MB anyway, and the index.Corpus is now using
uint32 to save memory.
Change-Id: I1172445c2f9463fdaee55bfe0f1218d44be4aa53
2014-02-08 17:58:12 +01:00
Brad Fitzpatrick
50c329d4a2
Add integration test for websocket query
...
Change-Id: I37c48d5749c7bf31aa118b2bee0861aeb07c5ff3
2014-02-07 15:02:22 -08:00
Brad Fitzpatrick
1b1087a830
Add pkg/blobserver/archiver for making Glacier archives.
...
From the package docs:
Package archiver zips lots of little blobs into bigger zip files
and stores them somewhere. While generic, it was designed to
incrementally create Amazon Glacier archives from many little
blobs, rather than creating millions of Glacier archives.
Change-Id: If304b2d4bf144bfab073c61c148bb34fa0be2f2d
2014-02-07 14:32:36 -08:00
Brad Fitzpatrick
c137cfc32d
test: make Fetcher use a RWMutex so fetch doesn't deadlock during enumerate
...
Change-Id: Iac1f18725231a298c2c636875647c3e6f3f081a4
2014-02-07 14:28:56 -08:00
Brad Fitzpatrick
179b11acbd
client: add NewStorageClient
...
Change-Id: Ia559ccc111a68e053fe60afb2fb39e1186f70fd1
2014-02-07 10:59:23 -08:00
Brad Fitzpatrick
4afc5d32f0
diskpacked: don't append duplicate blobs.
...
Change-Id: I3adce39641458a67a3cdee09bb66411dd1111acd
2014-02-07 10:46:35 -08:00
Brad Fitzpatrick
9a9da7196b
localdisk: add IsDir
...
Change-Id: I98748d6cb8ff650e0369ef0518eeeefce73f0354
2014-02-07 10:45:43 -08:00
Brad Fitzpatrick
254239c379
diskpacked: add IsDir and New
...
Change-Id: Iba7bfa4772c494240104f4f67e4a1a946f64b6c8
2014-02-07 10:45:22 -08:00
Brad Fitzpatrick
1fcb446d38
dir: add new blobserver/dir package to do localdisk or diskpacked
...
Change-Id: I27a2d6b7a00e34490b9da264280c5b10f81c30ec
2014-02-07 09:50:59 -08:00
Brad Fitzpatrick
78c50e8151
test: add World.NewPermanode
...
Change-Id: I737ae2f69b567eaebf13a3f7c786e06b791e2f7c
2014-02-04 18:49:15 -08:00
Brad Fitzpatrick
c179081ab7
httputil: add IsWebsocketUpgrade, fix BadRequestError inconsistency
...
Change-Id: I85e34fe4e87c2402fe6ab002bcd374ef0fd41141
2014-02-03 20:24:45 -05:00
Brad Fitzpatrick
1046470614
Rename ResponseWriter 'conn' to 'rw'
...
Change-Id: Id0faeac080f678794c1db1601cb9c1a9ba92e926
2014-02-03 20:23:39 -05:00
Brad Fitzpatrick
433a312703
fs: fix bug picking recent filenames when file has no name
...
e.g. iphone uploads
Change-Id: Ieee398b6f43c261232bc9f6cc0c71cb97c5c49f8
2014-02-02 06:14:44 +01:00
Brad Fitzpatrick
ba3df9f44c
cacher: don't nuke everything on close for now
...
Change-Id: Ifd210c06b70c411efc7f33daba39c5f105185514
2014-01-31 12:53:10 +01:00
Brad Fitzpatrick
3e0d6521b8
Merge branch 'master' of https://camlistore.googlesource.com/camlistore
2014-01-31 12:27:18 +01:00
Brad Fitzpatrick
ef1063828b
osutil: add DirExists
...
Change-Id: I3c15cd0bedeffea6d62dffc8603e4e71e57e52af
2014-01-31 12:20:24 +01:00
Brad Fitzpatrick
e5ad2282c4
fs: cache recent dir for a bit
...
Change-Id: Id85344038d38dedc134435463d96d8b836edbcd7
2014-01-31 11:50:22 +01:00
Dustin Sallings
fff8db88a7
fs: tests for xattr operations
...
Change-Id: I0501a8ec69fb30df7104b105f8e07a1864d2b5f6
2014-01-30 17:57:32 -08:00