mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -05:00
heal: Add healing support for bucket, bucket metadata files. (#3252)
This patch implements healing in general but it is only used as part of quickHeal(). Fixes #3237
This commit is contained in:
@@ -90,23 +90,6 @@ func errorIfInvalidToken(t *testing.T, err error) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestStorageRPCTryInitHandler(t *testing.T) {
|
||||
st := createTestStorageServer(t)
|
||||
defer removeRoots(st.diskDirs)
|
||||
defer removeAll(st.configDir)
|
||||
storageRPC := st.stServer
|
||||
timestamp := time.Now().UTC()
|
||||
tryArgs := &GenericArgs{
|
||||
Token: st.token,
|
||||
Timestamp: timestamp,
|
||||
}
|
||||
tryReply := &GenericReply{}
|
||||
err := storageRPC.TryInitHandler(tryArgs, tryReply)
|
||||
if err != nil {
|
||||
t.Errorf("TryInitHandler failed with %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestStorageRPCInvalidToken(t *testing.T) {
|
||||
st := createTestStorageServer(t)
|
||||
defer removeRoots(st.diskDirs)
|
||||
@@ -217,10 +200,4 @@ func TestStorageRPCInvalidToken(t *testing.T) {
|
||||
renameReply := &GenericReply{}
|
||||
err = storageRPC.RenameFileHandler(renameArgs, renameReply)
|
||||
errorIfInvalidToken(t, err)
|
||||
|
||||
// 14. TryInitHandler
|
||||
tryArgs := &badga
|
||||
tryReply := &GenericReply{}
|
||||
err = storageRPC.TryInitHandler(tryArgs, tryReply)
|
||||
errorIfInvalidToken(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user