Commit Graph

1564 Commits

Author SHA1 Message Date
Brad Fitzpatrick 88cff46f28 camput: more TreeUpload work
Change-Id: I8638ccdc342642447661e68918259878e04ef756
2012-04-15 13:54:21 -07:00
Brad Fitzpatrick a907348ed3 Merge "restrict setup access to localhost" 2012-04-15 18:27:58 +00:00
Brad Fitzpatrick 1c19140c7a schema: fix build breakage on darwin; syscall ctim vs ctimespec naming difference
Change-Id: Icbd844d585d331ebe46e9a097ca0e155eb543844
2012-04-15 11:33:59 -07:00
Brad Fitzpatrick 61a895b1f8 camput: some more TreeUpload work
Change-Id: I2b4e74f7892720bbf6b544a7abb9867d5ad3415b
2012-04-15 11:26:36 -07:00
mpl f7448ec758 restrict setup access to localhost
Change-Id: I889b9debfc65e25084c1e9715e7d14621f009039
2012-04-15 20:09:51 +02:00
Brad Fitzpatrick f366dfb850 some TreeUpload TODO notes
Change-Id: If26ddcb6ee8ebc1b35f569ecbf835da5f666c3a7
2012-04-15 08:55:11 -07:00
Brad Fitzpatrick 72ac3fc8b1 camput: TODOs for VFS
Change-Id: I9b403ec5e3e66f150da4277eabe99e079c61d2b8
2012-04-15 08:28:18 -07:00
Brad Fitzpatrick 683e762c79 camput: go through virtual filesystem. will be good for filtering skipDirs & testing.
Change-Id: I2fa56615b6b199ab054de388dde652749049d5e1
2012-04-15 08:11:37 -07:00
Brad Fitzpatrick 147cdb05c9 camput: unindent
Change-Id: I151b136a97a129a75f3f83fca8f1be841f7bec2b
2012-04-15 07:47:38 -07:00
Brad Fitzpatrick 18e53cd72f rename MapToCamliJson to Go style initialism MapToCamliJSON
Change-Id: I674944c9fafa6b78c495d22c525b9ffd0b75dbf9
2012-04-15 07:45:10 -07:00
Brad Fitzpatrick a8687d112c camput: move rollSplits to Uploader field, not passed along.
Change-Id: I8e78fe88e179235a03117927bd7b36217242e055
2012-04-15 07:18:40 -07:00
Brad Fitzpatrick 91501cdbd1 remove unused code
Change-Id: I4e35ce6dbb34f3db17024f49dd98bed7d3f9b4f0
2012-04-15 07:10:10 -07:00
Brad Fitzpatrick 77f9544936 gofmt
Change-Id: If71fa78e10464bc93fc7ec748e73d935d3c555ba
2012-04-14 22:04:00 -07:00
Brad Fitzpatrick 5b379561a7 Fix bogus r60->go1 gofix.
Change-Id: Ieb229a6767dbb955b898006d10926d8715bbe307
2012-04-14 22:03:54 -07:00
Brad Fitzpatrick 6f3826f6af camput: flag for diskUsage mode
Change-Id: I9a8bdd907ddcb9debb8381c11691a7485ecba6c2
2012-04-14 22:01:19 -07:00
Brad Fitzpatrick 7961187a0f schema: use filepath.Base instead of by hand, fixes bug with trailing slash
Change-Id: I0216ce084d6a68bdb1c92d85304db030d22f05fb
2012-04-14 15:26:51 -07:00
Brad Fitzpatrick 6aca4d1aee remove debug
Change-Id: I7ced1f4d6376444b8c7491e038addaf9ef35f8c4
2012-04-14 15:22:41 -07:00
Brad Fitzpatrick eaa9c427ac schema: include ctime, if it differs from mtime
Change-Id: Ifc511cc9abb00cee870e5d12fae86d34dd00e054
2012-04-14 15:22:07 -07:00
Brad Fitzpatrick 83727904a5 schema: port some pre-Go 1 schema stuff
Change-Id: Ib5081f38ba2b8997d8c0f58dfbad8e0234f18f8c
2012-04-13 18:40:59 -07:00
Brad Fitzpatrick 92f5835bb4 camlistored: make sqlite a build option.
Change-Id: Ib3624f162aae2130e524cf6a04c3f0fa8f07a01c
2012-04-13 16:16:24 -07:00
Brad Fitzpatrick a519105585 index/sqlite: new indexer, using sqlite3
Change-Id: If1405fe3ee7c632c05431f4b0be1077d6d42c4a3
2012-04-13 16:11:16 -07:00
Brad Fitzpatrick da32d8d1e8 fix typo in test name
Change-Id: I565422ee6868893a543525853a8e9c24fb14b9fc
2012-04-13 16:08:40 -07:00
Brad Fitzpatrick 8d6c4fdc81 errorutil: write docs
Change-Id: I23b60fe920a897427c4d473fd8c7c9ba6ee40d44
2012-04-13 15:51:39 -07:00
Brad Fitzpatrick 6a8a5e197e serverconfig: fix serverconfig tests, which got broken with genconfig changes
Change-Id: I163ea61b568c966439d054962a9dfaa722645606
2012-04-13 15:46:01 -07:00
Brad Fitzpatrick e0dacfa164 jsonconfig: export File type
Change-Id: I46ad536b1494ff1f0d56b9d34d735fbd227f4a27
2012-04-13 15:06:04 -07:00
Brad Fitzpatrick 1f8dc0e90e improve TODO
Change-Id: I6efb0855ab1ee89094f6f828745552fb07fcb3c2
2012-04-13 15:01:48 -07:00
Brad Fitzpatrick d3949afc89 jsonconfig: make more configurable, to fix serverconfig tests in future patch
Change-Id: I1cc363c4ac1f0283f0d0183179b2602b6c359990
2012-04-13 14:36:30 -07:00
Brad Fitzpatrick 3826cc11be index: fix test by excluding the sqlindex package.
it's not a full index, but just an IndexStorage.

Change-Id: I2a3b7c5705c8a01645f2ac3f97f2621b042ef19c
2012-04-13 14:12:04 -07:00
Brad Fitzpatrick 4849adfd59 update Makefile to use the go command
Change-Id: I299cbef90f23fbd65378f76d6e5e1e476fdc0d61
2012-04-13 13:51:52 -07:00
Brad Fitzpatrick f8f95554d5 camput: fix panic on errors.
I think maybe I should just change handleResult to panic with its own error type and catch it above.

Change-Id: Ib0622321e29e7926173c4957dc0e56f3b514e7d2
2012-04-12 22:18:38 -07:00
Brad Fitzpatrick e4a17bc8ac camput: fix init and some config stuff.
Change-Id: I121bd9c2dfac3c076db0db75d8f939b5ec571ca4
2012-04-12 19:36:00 -07:00
Brad Fitzpatrick 71ee67264d osutil: add IdentitySecretRing accessor
Change-Id: Idcb7a62530292eb3e0a98c798dc86a985fc491f1
2012-04-12 16:54:57 -07:00
Brad Fitzpatrick 93af191e77 auth: add some more auth modes
Change-Id: I1674f5fff8a8ea3490f315844df68a474f8c6d5e
2012-04-12 16:54:25 -07:00
Brad Fitzpatrick 51c99e7d32 jsonconfig: remove stutter in error message
Change-Id: I42009d832f3e26bb847b0fc3f3d0ebcbcd4eada6
2012-04-12 14:09:59 -07:00
Brad Fitzpatrick fbeb934c17 serverconfig: remove hard-coded search owner in genconfig.
Change-Id: I9161bcab5f9deb2ac8b0691c6858ae8615f435ab
2012-04-12 11:39:53 -07:00
Brad Fitzpatrick 7b8105d561 serverconfig: fix generated low-level config for mysql indexer
Change-Id: I8376bf134cf234b1a671aaacffba98fe5eaf3271
2012-04-11 19:22:02 -07:00
Brad Fitzpatrick c6e6f7a92d camdb: gofmt and change panic to log.Fatalf
Change-Id: I8c8ced3cb5f74a7742a2a9f86874276b3c1fd0c2
2012-04-11 19:13:39 -07:00
Brad Fitzpatrick 1186c452ba Split mysql and generic sql index code. (Prep for sqlite indexer)
Untested.

Change-Id: Iaf53abf5bea9087ab2f8f1e2a7cda53b73ae094d
2012-04-09 09:53:57 -07:00
Brad Fitzpatrick c3ae8077b2 add github.com/mattn/go-sqlite3 to third_party
Change-Id: If2465ccb3128f2a03b0432197a00a447a40723b4
2012-04-08 11:11:51 -07:00
Brad Fitzpatrick b07f2f9973 Debug environment variable to CAMLI_DEBUG_CONFIG dump low-level config.
Change-Id: I7e7830112b8f10c5695ad53fd867fb5736925cef
2012-04-08 10:58:34 -07:00
Brad Fitzpatrick 029d66fa9e In default config, allow localhost access for auth also.
Change-Id: Ie3fc2f3c44d7fc17a367f6a456c6db6511d08f33
2012-04-07 19:02:31 -07:00
mpl 8466cd9e44 wip: setup wizard
Change-Id: I9989f7ff3981eb7c9025bbb9bd174cc92862af35
2012-04-06 19:29:58 +02:00
Brad Fitzpatrick b51b622124 Remove the .last_go_version file; no longer used now that Go 1 is out.
Change-Id: Ibf9d0247364967cbca7021255b901862293db4ab
2012-03-31 16:17:31 -07:00
Brad Fitzpatrick 2ac4da75a7 Add SKIP_DEP_TESTS env var to skip tests with depdendencies.
Now all tests pass like this:

bradmac-2:camlistore.org $ SKIP_DEP_TESTS=1 go test ./pkg/...
?       camlistore.org/pkg/auth [no test files]
ok      camlistore.org/pkg/blobref      0.023s
ok      camlistore.org/pkg/blobserver   0.032s
?       camlistore.org/pkg/blobserver/cond      [no test files]
?       camlistore.org/pkg/blobserver/google    [no test files]
ok      camlistore.org/pkg/blobserver/handlers  0.031s
ok      camlistore.org/pkg/blobserver/localdisk 1.693s
?       camlistore.org/pkg/blobserver/remote    [no test files]
?       camlistore.org/pkg/blobserver/replica   [no test files]
?       camlistore.org/pkg/blobserver/s3        [no test files]
?       camlistore.org/pkg/blobserver/shard     [no test files]
?       camlistore.org/pkg/cacher       [no test files]
ok      camlistore.org/pkg/client       0.029s
?       camlistore.org/pkg/errorutil    [no test files]
?       camlistore.org/pkg/fileembed    [no test files]
?       camlistore.org/pkg/fileembed/genfileembed       [no test files]
?       camlistore.org/pkg/fs   [no test files]
ok      camlistore.org/pkg/googlestorage        0.034s
?       camlistore.org/pkg/httputil     [no test files]
ok      camlistore.org/pkg/index        0.298s
?       camlistore.org/pkg/index/indextest      [no test files]
ok      camlistore.org/pkg/index/mongo  0.524s
ok      camlistore.org/pkg/index/mysql  0.020s
ok      camlistore.org/pkg/jsonconfig   0.022s
ok      camlistore.org/pkg/jsonsign     0.155s
ok      camlistore.org/pkg/lru  0.015s
ok      camlistore.org/pkg/magic        0.030s
?       camlistore.org/pkg/misc [no test files]
ok      camlistore.org/pkg/misc/amazon/s3       0.028s
ok      camlistore.org/pkg/misc/gpgagent        0.018s
ok      camlistore.org/pkg/misc/httprange       0.026s
?       camlistore.org/pkg/misc/pinentry        [no test files]
?       camlistore.org/pkg/misc/resize  [no test files]
ok      camlistore.org/pkg/netutil      0.088s
ok      camlistore.org/pkg/osutil       0.016s
ok      camlistore.org/pkg/rollsum      0.027s
ok      camlistore.org/pkg/schema       0.017s
ok      camlistore.org/pkg/search       0.016s
ok      camlistore.org/pkg/server       0.039s
ok      camlistore.org/pkg/serverconfig 0.031s
?       camlistore.org/pkg/test [no test files]
?       camlistore.org/pkg/test/asserts [no test files]
?       camlistore.org/pkg/test/testdep [no test files]
?       camlistore.org/pkg/webserver    [no test files]

Change-Id: I9c9b0ee4f51cbcf785aed665bbb494339dd84261
2012-03-29 18:21:37 -07:00
Brad Fitzpatrick 997f0db09e fix pkg/server tests
Change-Id: I2b34e61a128c15f20392b325a532b113a457f488
2012-03-29 16:22:05 -07:00
Brad Fitzpatrick c463c3a26e fix pkg/server tests
Change-Id: I66fa74f52035b3185ac6390d4e38244f4b29597f
2012-03-29 16:21:07 -07:00
Brad Fitzpatrick 8ee9eddf6f googlestorage: get test failing in new ways
Change-Id: Icf03b0d17058504463c1db33d66924efce25290e
2012-03-29 16:18:00 -07:00
Brad Fitzpatrick 40712671ee pkg/auth and pkg/schema: fix tests.
Change-Id: I54f391241c77902ad301edea92d39660f7cf0008
2012-03-29 16:15:59 -07:00
Brad Fitzpatrick 55edf14a70 jsonconfig: fix test build. passes now.
Change-Id: I12097d09342f30165c29a787c5e1b2271b146f8f
2012-03-29 16:13:15 -07:00
Brad Fitzpatrick cf2813a5a4 mysql indexer: implement indextest tests & fix Get bug that it found.
also, delete the other index package's testdata symlinks.

Change-Id: Ie848b880b5d7397e8d334e636a358396024ad144
2012-03-29 16:12:12 -07:00