2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-30 08:44:02 +00:00
Commit Graph

728 Commits

Author SHA1 Message Date
Alexander Neumann
2fa259816b rename opts to mainOpts 2015-06-21 17:40:22 +02:00
Alexander Neumann
a3e0907fc7 remove old tests 2015-06-21 17:40:22 +02:00
Alexander Neumann
1216ded14b Add integration test for key command 2015-06-21 17:40:22 +02:00
Alexander Neumann
e2563b3eca Fix comments 2015-06-21 17:40:22 +02:00
Alexander Neumann
a176b1b5a6 Add more integration tests 2015-06-21 17:40:22 +02:00
Alexander Neumann
246fdb13f9 Makefile: Remove target test-integration 2015-06-21 17:40:21 +02:00
Alexander Neumann
cf27a0fdc7 Test travis 2015-06-21 17:40:21 +02:00
Alexander Neumann
9853fbcf48 Remove more flags from tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
0ad08b2f70 run_tests: Pass additional parameters to go test 2015-06-21 17:40:21 +02:00
Alexander Neumann
3a65f27c3f Automatically find fixtures for integration test 2015-06-21 17:40:21 +02:00
Alexander Neumann
030f08a410 Remove flags from tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
002c7883c3 run_tests: Do not ignore subdirs of empty dirs 2015-06-21 17:40:21 +02:00
Alexander Neumann
da2e9d447f Make tests run by travis less verbose 2015-06-21 17:40:21 +02:00
Alexander Neumann
cd5b788e48 Ignore goverall errors 2015-06-21 17:40:21 +02:00
Alexander Neumann
e071ca57d5 Use run_tests.go for testing coverage 2015-06-21 17:40:21 +02:00
Alexander Neumann
d8d09b6d69 Fix restic configuration for integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
9c2478a291 Add run_tests.go 2015-06-21 17:40:21 +02:00
Alexander Neumann
12677b4f8a Use flag instead of build tag to run integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
7c107acf0b More integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
9b7db4df24 travis: Add new integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
954025e399 Add integration test with the go testing framework 2015-06-21 17:40:21 +02:00
Chris Howey
cf0531a2b1 Pass buffer instead of byte slice
s3 library creates internal buffer pass in byte slice
2015-06-14 09:05:20 -05:00
Chris Howey
12596c6841 Fix test to use new type name on backend 2015-06-14 08:43:47 -05:00
Chris Howey
57ee1db8aa Rename backend type to S3Backend 2015-06-14 08:28:50 -05:00
Chris Howey
e963faf846 Place all restic data under a key prefix.
Deleting a restic repository now only deletes restic keys, leaving the
rest of the bucket in tact.
2015-06-14 08:28:50 -05:00
Chris Howey
d30a95e8ad Return bucket readers instead of buffering a key on read. 2015-06-14 08:28:50 -05:00
Chris Howey
aaae7f33d3 Have number of connections limited by channel
Removes previous limit of 1 connection
2015-06-14 08:28:50 -05:00
Chris Howey
2350419f59 Modify test suite to use s3 test server.
Fix s3 backend to return error on attempting to write to already
existing key.
2015-06-14 08:28:50 -05:00
Chris Howey
4aa75994b0 Add ability to open bucket using S3 object for testing purposes. 2015-06-14 08:28:50 -05:00
Chris Howey
b793261ba1 Add dependencies for s3 tests. 2015-06-14 08:28:50 -05:00
Chris Howey
d1554d1133 Add backend test for s3 2015-06-14 08:28:50 -05:00
Chris Howey
dc6d92a076 Add Godeps for s3 backend. 2015-06-14 08:28:50 -05:00
Chris Howey
bfe221e71c Handle long list responses from s3.
Also change naming of backend struct.
2015-06-14 08:28:50 -05:00
Chris Howey
47186806cf Add Amazon S3 backend. 2015-06-14 08:28:50 -05:00
Alexander Neumann
c37ae44ff5 Merge pull request #196 from restic/minor-refactor
A collection of minor refactorings from #179
2015-06-08 19:24:35 +02:00
Alexander Neumann
9c375ea382 Refactor backup a bit 2015-06-07 19:08:37 +02:00
Alexander Neumann
fd80499954 Refactor terminal recognition, add --quiet parameter 2015-06-07 18:30:11 +02:00
Alexander Neumann
f5537e7a0e Refactor configuration of cache dir and repository 2015-06-07 18:15:03 +02:00
Alexander Neumann
848793df84 Remove unused file 2015-06-07 18:13:22 +02:00
Alexander Neumann
8eec59ebb2 Merge pull request #194 from restic/fix-orphaned-check
Fix fsck orphaned check, add debug command 'dump', cleanup
2015-05-28 21:40:23 +02:00
Alexander Neumann
219f857c67 travis: Skip join/part for emitting messages 2015-05-18 00:02:51 +02:00
Alexander Neumann
0314d2b0c3 fsck: Fix check for orphaned blobs 2015-05-17 23:41:53 +02:00
Alexander Neumann
df1e3e03e9 Add 'dump' command
'dump' writes internal data structes pretty-printed as JSON to stdout.
This was done to debug fsck error messages.

In contrast to the 'cat' command, this one prints the data structures as
there are interpreted by restic, not as they are stored in the
repository. This means that only the merged index from all the index
files is printed out.

This is meant for debugging only, it's compiled only when the "debug"
tag is active.
2015-05-17 23:15:08 +02:00
Alexander Neumann
65c3aead3e Add index.Dump() 2015-05-17 20:58:22 +02:00
Alexander Neumann
f773feeb04 Remove Repository.Close() and .Location() 2015-05-17 20:58:22 +02:00
Alexander Neumann
af381c2ab0 Remove Repository.Remove() 2015-05-17 20:58:22 +02:00
Alexander Neumann
eb6dfcf58c Remove Repository.Test() 2015-05-17 20:58:22 +02:00
Alexander Neumann
6e38a8a033 Move FindSnapshot, make Repository.List() return IDs 2015-05-17 20:58:22 +02:00
Alexander Neumann
cf37b619fd Merge pull request #191 from restic/fix-189
Fix restoring symlink timestamps for linux
2015-05-17 14:26:54 +02:00
Alexander Neumann
14a3ed4e9d Move error annotation for symlink timestamp restore 2015-05-16 13:25:10 +02:00