Fix the names of some iptables tests

The delete tests were copy+pasted from the create tests, and the names
not fully updated to match.
This commit is contained in:
Dan Winship 2017-05-26 14:43:24 -04:00
parent 3d48091ce8
commit 127eb53d4d

View File

@ -333,7 +333,7 @@ func TestEnsureRuleErrorCreating(t *testing.T) {
} }
} }
func TestDeleteRuleAlreadyExists(t *testing.T) { func TestDeleteRuleDoesNotExist(t *testing.T) {
fcmd := exec.FakeCmd{ fcmd := exec.FakeCmd{
CombinedOutputScript: []exec.FakeCombinedOutputAction{ CombinedOutputScript: []exec.FakeCombinedOutputAction{
// iptables version check // iptables version check
@ -368,7 +368,7 @@ func TestDeleteRuleAlreadyExists(t *testing.T) {
} }
} }
func TestDeleteRuleNew(t *testing.T) { func TestDeleteRuleExists(t *testing.T) {
fcmd := exec.FakeCmd{ fcmd := exec.FakeCmd{
CombinedOutputScript: []exec.FakeCombinedOutputAction{ CombinedOutputScript: []exec.FakeCombinedOutputAction{
// iptables version check // iptables version check
@ -438,7 +438,7 @@ func TestDeleteRuleErrorChecking(t *testing.T) {
} }
} }
func TestDeleteRuleErrorCreating(t *testing.T) { func TestDeleteRuleErrorDeleting(t *testing.T) {
fcmd := exec.FakeCmd{ fcmd := exec.FakeCmd{
CombinedOutputScript: []exec.FakeCombinedOutputAction{ CombinedOutputScript: []exec.FakeCombinedOutputAction{
// iptables version check // iptables version check