mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
admin: Set Config returns errSet and errMsg (#3822)
There is no way to see if a node encountered an error when trying to set a new config set, this commit adds a bool errSet field.
This commit is contained in:
committed by
Harshavardhana
parent
32d0d3d4ac
commit
cddc684559
@@ -1279,9 +1279,13 @@ func TestWriteSetConfigResponse(t *testing.T) {
|
||||
if res.Name != testPeers[p].addr {
|
||||
t.Errorf("Test %d: Expected node name %s but received %s", i+1, testPeers[p].addr, res.Name)
|
||||
}
|
||||
expectedErrStr := fmt.Sprintf("%v", test.errs[p])
|
||||
if res.Err != expectedErrStr {
|
||||
t.Errorf("Test %d: Expected error %s but received %s", i+1, expectedErrStr, res.Err)
|
||||
expectedErrMsg := fmt.Sprintf("%v", test.errs[p])
|
||||
if res.ErrMsg != expectedErrMsg {
|
||||
t.Errorf("Test %d: Expected error %s but received %s", i+1, expectedErrMsg, res.ErrMsg)
|
||||
}
|
||||
expectedErrSet := test.errs[p] != nil
|
||||
if res.ErrSet != expectedErrSet {
|
||||
t.Errorf("Test %d: Expected ErrSet %v but received %v", i+1, expectedErrSet, res.ErrSet)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user