INNER CODE UNIT · Go
testListAPIDefaults
minio/kes · api_test.go:124
func testListAPIDefaults(t *testing.T) {
defaults := map[string]struct {
Method string
MaxBody mem.Size
Timeout time.Duration
}{
"/version": {Method: http.MethodGet, MaxBody: 0, Timeout: 10 * time.Second},
"/v1/ready": {Method: http.MethodGet, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/status": {Method: http.MethodGet, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/metrics": {Method: http.MethodGet, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/api": {Method: http.MethodGet, MaxBody: 0, Timeout: 10 * time.Second},
"/v1/key/create/": {Method: http.MethodPut, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/key/import/": {Method: http.MethodPut, MaxBody: 1 * mem.MB, Timeout: 15 * time.Second},
"/v1/key/describe/": {Method: http.MethodGet, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/key/list/": {Method: http.MethodGet, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/key/delete/": {Method: http.MethodDelete, MaxBody: 0, Timeout: 15 * time.Second},
"/v1/key/generate/": {Method: http.MethodPut, MaxBody: 1 * mem.MB, Timeout: 15 * time.Second},