mirror of https://github.com/status-im/consul.git
agent: test service/check deletion with empty ID
This commit is contained in:
parent
c537799ce8
commit
58eba95b98
|
@ -573,6 +573,20 @@ func TestAgentAntiEntropy_Check_DeferSync(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func TestAgentAntiEntory_deleteService_fails(t *testing.T) {
|
||||
l := new(localState)
|
||||
if err := l.deleteService(""); err == nil {
|
||||
t.Fatalf("should have failed")
|
||||
}
|
||||
}
|
||||
|
||||
func TestAgentAntiEntropy_deleteCheck_fails(t *testing.T) {
|
||||
l := new(localState)
|
||||
if err := l.deleteCheck(""); err == nil {
|
||||
t.Fatalf("should have errored")
|
||||
}
|
||||
}
|
||||
|
||||
var testRegisterRules = `
|
||||
service "api" {
|
||||
policy = "write"
|
||||
|
|
Loading…
Reference in New Issue