summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2020-01-08 11:15:46 -0800
committerKevin Krakauer <krakauer@google.com>2020-01-08 11:15:46 -0800
commit1e1921e2acdb7357972257219fdffb9edf17bf55 (patch)
tree12fbd37a90ebf1463277cc8c61ad4606545a7841 /test
parent8cc1c35bbdc5c9bd6b3965311497885ce72317a8 (diff)
Minor fixes to comments and logging
Diffstat (limited to 'test')
-rw-r--r--test/iptables/filter_input.go3
-rw-r--r--test/iptables/iptables_test.go22
2 files changed, 12 insertions, 13 deletions
diff --git a/test/iptables/filter_input.go b/test/iptables/filter_input.go
index 0cb668635..34a85db97 100644
--- a/test/iptables/filter_input.go
+++ b/test/iptables/filter_input.go
@@ -43,8 +43,7 @@ func (FilterInputDropUDP) Name() string {
// ContainerAction implements TestCase.ContainerAction.
func (FilterInputDropUDP) ContainerAction(ip net.IP) error {
- if err := filterTable("-A", "INPUT", "-p", "udp", "-j", "DROP"); err != nil {
- // if err := filterTable("-A", "INPUT", "-j", "ACCEPT"); err != nil {
+ if err := filterTable("-A", "INPUT", "-j", "ACCEPT"); err != nil {
return err
}
diff --git a/test/iptables/iptables_test.go b/test/iptables/iptables_test.go
index e761e0f2f..2465a4e65 100644
--- a/test/iptables/iptables_test.go
+++ b/test/iptables/iptables_test.go
@@ -167,14 +167,14 @@ func TestFilterInputDropUDP(t *testing.T) {
}
}
-// func TestFilterInputDropUDPPort(t *testing.T) {
-// if err := singleTest(FilterInputDropUDPPort{}); err != nil {
-// t.Fatal(err)
-// }
-// }
-
-// func TestFilterInputDropDifferentUDPPort(t *testing.T) {
-// if err := singleTest(FilterInputDropDifferentUDPPort{}); err != nil {
-// t.Fatal(err)
-// }
-// }
+func TestFilterInputDropUDPPort(t *testing.T) {
+ if err := singleTest(FilterInputDropUDPPort{}); err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestFilterInputDropDifferentUDPPort(t *testing.T) {
+ if err := singleTest(FilterInputDropDifferentUDPPort{}); err != nil {
+ t.Fatal(err)
+ }
+}