Renames some operator unit tests.

This commit is contained in:
James Phillips 2017-03-22 19:26:43 -07:00
parent a094a58163
commit 00a5fc2947
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import (
"github.com/hashicorp/consul/testutil"
)
func TestOperator_OperatorRaftConfiguration(t *testing.T) {
func TestOperator_RaftConfiguration(t *testing.T) {
httpTest(t, func(srv *HTTPServer) {
body := bytes.NewBuffer(nil)
req, err := http.NewRequest("GET", "/v1/operator/raft/configuration", body)
@ -42,7 +42,7 @@ func TestOperator_OperatorRaftConfiguration(t *testing.T) {
})
}
func TestOperator_OperatorRaftPeer(t *testing.T) {
func TestOperator_RaftPeer(t *testing.T) {
httpTest(t, func(srv *HTTPServer) {
body := bytes.NewBuffer(nil)
req, err := http.NewRequest("DELETE", "/v1/operator/raft/peer?address=nope", body)
@ -424,7 +424,7 @@ func TestOperator_AutopilotCASConfiguration(t *testing.T) {
})
}
func TestOperator_OperatorServerHealth(t *testing.T) {
func TestOperator_ServerHealth(t *testing.T) {
cb := func(c *Config) {
c.RaftProtocol = 3
}
@ -464,7 +464,7 @@ func TestOperator_OperatorServerHealth(t *testing.T) {
}, cb)
}
func TestOperator_OperatorServerHealth_Unhealthy(t *testing.T) {
func TestOperator_ServerHealth_Unhealthy(t *testing.T) {
threshold := time.Duration(-1)
cb := func(c *Config) {
c.RaftProtocol = 3