mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Migrate config to KV data format (#8392)
- adding oauth support to MinIO browser (#8400) by @kanagaraj - supports multi-line get/set/del for all config fields - add support for comments, allow toggle - add extensive validation of config before saving - support MinIO browser to support proper claims, using STS tokens - env support for all config parameters, legacy envs are also supported with all documentation now pointing to latest ENVs - preserve accessKey/secretKey from FS mode setups - add history support implements three APIs - ClearHistory - RestoreHistory - ListHistory - add help command support for each config parameters - all the bug fixes after migration to KV, and other bug fixes encountered during testing.
This commit is contained in:
committed by
kannappanr
parent
8836d57e3c
commit
ee4a6a823d
@@ -38,7 +38,8 @@ func testAuthenticate(authType string, t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("Error getting new credentials: %s", err)
|
||||
}
|
||||
globalServerConfig.SetCredential(cred)
|
||||
|
||||
globalActiveCred = cred
|
||||
|
||||
// Define test cases.
|
||||
testCases := []struct {
|
||||
@@ -105,7 +106,7 @@ func TestWebRequestAuthenticate(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
creds := globalServerConfig.GetCredential()
|
||||
creds := globalActiveCred
|
||||
token, err := getTokenString(creds.AccessKey, creds.SecretKey)
|
||||
if err != nil {
|
||||
t.Fatalf("unable get token %s", err)
|
||||
@@ -159,7 +160,7 @@ func BenchmarkAuthenticateNode(b *testing.B) {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
||||
creds := globalServerConfig.GetCredential()
|
||||
creds := globalActiveCred
|
||||
b.ResetTimer()
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
@@ -177,7 +178,7 @@ func BenchmarkAuthenticateWeb(b *testing.B) {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
||||
creds := globalServerConfig.GetCredential()
|
||||
creds := globalActiveCred
|
||||
b.ResetTimer()
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
|
||||
Reference in New Issue
Block a user