mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
@@ -56,8 +56,6 @@ func (c cmdType) apiMethod() string {
|
||||
switch c {
|
||||
case statusCmd:
|
||||
return "GET"
|
||||
case stopCmd:
|
||||
return "POST"
|
||||
case restartCmd:
|
||||
return "POST"
|
||||
}
|
||||
@@ -70,8 +68,6 @@ func (c cmdType) toServiceSignal() serviceSignal {
|
||||
switch c {
|
||||
case statusCmd:
|
||||
return serviceStatus
|
||||
case stopCmd:
|
||||
return serviceStop
|
||||
case restartCmd:
|
||||
return serviceRestart
|
||||
}
|
||||
@@ -187,11 +183,6 @@ func TestServiceStatusHandler(t *testing.T) {
|
||||
testServicesCmdHandler(statusCmd, t)
|
||||
}
|
||||
|
||||
// Test for service stop management REST API.
|
||||
func TestServiceStopHandler(t *testing.T) {
|
||||
testServicesCmdHandler(stopCmd, t)
|
||||
}
|
||||
|
||||
// Test for service restart management REST API.
|
||||
func TestServiceRestartHandler(t *testing.T) {
|
||||
testServicesCmdHandler(restartCmd, t)
|
||||
|
||||
Reference in New Issue
Block a user