Commit Graph

10 Commits

Author SHA1 Message Date
Brian Gitonga Marete 68074bbadd pkg/schema: Fix camput panic on non-utf8 filenames or symlink targets.
Also implement the relevant integration tests for camput and camget.

Depends on CL 2216.

Change-Id: I3f541efd4e583674e9817473292fa3de8a3cdabc
2014-03-10 21:01:51 -07:00
Brian Gitonga Marete 0c4b67d3bf cmd/camget: Support restoring symbolic links when writing to filesystem.
This patch adds support for restoring symbolic links when camget is
called with the -o option.

This fixes an issue which caused `camget -o' to write an incomplete
snapshot to the target directory when it encountered a symlink.

Note that no attempt is made to restore the symlink metadata since: a)
A symlink's permissions do not matter and are fixed to 1777 on some
systems b) Go's os.Chtimes() always acts on the symlink target c)
os.Chown() is not currently called for any file in the current code.

Tested on Linux.

Change-Id: I7099592dcd5cc513c2685671be6f6b165f8f8053
2014-03-08 05:14:59 +03:00
mpl b4c684dd07 tests: ping camlistored before camput
Change-Id: Icf66bd5b990db07e9516b8ab8945cbf681caf25e
2014-02-24 19:57:44 +01:00
Brad Fitzpatrick 50c329d4a2 Add integration test for websocket query
Change-Id: I37c48d5749c7bf31aa118b2bee0861aeb07c5ff3
2014-02-07 15:02:22 -08:00
Brad Fitzpatrick f015c227f0 serverconfig: allow marking handlers as internal, so they're not accessible over HTTP
Change-Id: I37190e90fbc2560c07f742270c827f6025a2fb6f
2014-01-19 14:50:34 -08:00
Brad Fitzpatrick b84c2457ae Add integration test for Android camput environment.
Fixes camlistore.org/issue/323

Change-Id: Iefa5b073aa6d6b00899e7e17afb3bcf2f18ad6b3
2014-01-06 20:01:07 -08:00
Brad Fitzpatrick 5ef53c8bbd Fix build with Go tip. Will file upstream bug.
Change-Id: I1081ff8498caf809c6b4e22a284a59b95032c3ce
2013-12-20 18:19:51 -08:00
Brad Fitzpatrick 0bdf20884b all: delete pkg/blobref; convert all from *blobref.BlobRef to new blob.Ref
Change-Id: Id2dfb7f19452bedf4f3c9310b36227fd8117b225
2013-08-03 19:54:30 -07:00
mpl 5fa82a3abb integration tests: kill camlistored when all tests are done
-osutil: PollParent to monitor parent process.
-camlistored: option to kill itself if it has been orphaned.

Change-Id: I87193254d55847e46134439ecd1b04f71718d083
2013-08-02 15:42:49 +02:00
Brad Fitzpatrick 13fe0608fb Start of integration tests and a library to make them easy.
Change-Id: I24c55252d81d2170205f090a11a5c45473707e5d
2013-07-20 22:36:53 -07:00