mirror of
https://github.com/restic/restic.git
synced 2026-06-07 01:19:44 +00:00
Update dependencies
Among others, this updates minio-go, so that the new "eu-west-3" zone for AWS is supported.
This commit is contained in:
+2
-28
@@ -55,31 +55,7 @@ func TestWriteBatch(t *testing.T) {
|
||||
Delete: docPrefix + "c",
|
||||
},
|
||||
},
|
||||
{ // UpdateMap
|
||||
Operation: &pb.Write_Update{
|
||||
Update: &pb.Document{
|
||||
Name: docPrefix + "d",
|
||||
Fields: testFields,
|
||||
},
|
||||
},
|
||||
UpdateMask: &pb.DocumentMask{[]string{"a"}},
|
||||
CurrentDocument: &pb.Precondition{
|
||||
ConditionType: &pb.Precondition_Exists{true},
|
||||
},
|
||||
},
|
||||
{ // UpdateStruct
|
||||
Operation: &pb.Write_Update{
|
||||
Update: &pb.Document{
|
||||
Name: docPrefix + "e",
|
||||
Fields: map[string]*pb.Value{"A": intval(3)},
|
||||
},
|
||||
},
|
||||
UpdateMask: &pb.DocumentMask{[]string{"A"}},
|
||||
CurrentDocument: &pb.Precondition{
|
||||
ConditionType: &pb.Precondition_Exists{true},
|
||||
},
|
||||
},
|
||||
{ // UpdatePaths
|
||||
{ // Update
|
||||
Operation: &pb.Write_Update{
|
||||
Update: &pb.Document{
|
||||
Name: docPrefix + "f",
|
||||
@@ -105,9 +81,7 @@ func TestWriteBatch(t *testing.T) {
|
||||
Create(c.Doc("C/a"), testData).
|
||||
Set(c.Doc("C/b"), testData).
|
||||
Delete(c.Doc("C/c")).
|
||||
UpdateMap(c.Doc("C/d"), testData).
|
||||
UpdateStruct(c.Doc("C/e"), []string{"A"}, update{A: 3}).
|
||||
UpdatePaths(c.Doc("C/f"), []FieldPathUpdate{{Path: []string{"*"}, Value: 3}}).
|
||||
Update(c.Doc("C/f"), []Update{{FieldPath: []string{"*"}, Value: 3}}).
|
||||
Commit(context.Background())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user