summaryrefslogtreecommitdiffhomepage
path: root/test/iptables/iptables_test.go
diff options
context:
space:
mode:
authorNayana Bidari <nybidari@google.com>2020-01-10 09:05:25 -0800
committerNayana Bidari <nybidari@google.com>2020-01-10 09:05:25 -0800
commit9aeb053bbaf834aab5b716b8645996943262b525 (patch)
tree839ff02eaa9d01a1374254bc165f5b3995703446 /test/iptables/iptables_test.go
parent04abc9cf558930472605bf740a4333d6fafe5930 (diff)
Add tests for redirect port
Fix indentation and change function names.
Diffstat (limited to 'test/iptables/iptables_test.go')
-rw-r--r--test/iptables/iptables_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/iptables/iptables_test.go b/test/iptables/iptables_test.go
index fce9247aa..05f27569f 100644
--- a/test/iptables/iptables_test.go
+++ b/test/iptables/iptables_test.go
@@ -178,14 +178,14 @@ func TestFilterInputDropDifferentUDPPort(t *testing.T) {
}
}
-func TestFilterNATRedirectUDPPort(t *testing.T) {
- if err := singleTest(FilterNATRedirectUDPPort{}); err != nil {
+func TestNATRedirectUDPPort(t *testing.T) {
+ if err := singleTest(NATRedirectUDPPort{}); err != nil {
t.Fatal(err)
}
}
-func TestFilterNATDropUDP(t *testing.T) {
- if err := singleTest(FilterNATDropUDP{}); err != nil {
- t.Fatal(err)
+func TestNATDropUDP(t *testing.T) {
+ if err := singleTest(NATDropUDP{}); err != nil {
+ t.Fatal(err)
}
}