2020-01-27 18:04:07 +00:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test")
|
2019-12-12 22:40:36 +00:00
|
|
|
|
|
|
|
package(licenses = ["notice"])
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "iptables",
|
2020-01-09 21:41:52 +00:00
|
|
|
testonly = 1,
|
2019-12-12 22:40:36 +00:00
|
|
|
srcs = [
|
|
|
|
"filter_input.go",
|
2020-01-13 17:11:40 +00:00
|
|
|
"filter_output.go",
|
2019-12-12 22:40:36 +00:00
|
|
|
"iptables.go",
|
|
|
|
"iptables_util.go",
|
2020-01-09 23:38:28 +00:00
|
|
|
"nat.go",
|
2019-12-12 22:40:36 +00:00
|
|
|
],
|
|
|
|
visibility = ["//test/iptables:__subpackages__"],
|
2020-01-09 21:41:52 +00:00
|
|
|
deps = [
|
2020-04-23 18:32:08 +00:00
|
|
|
"//pkg/test/testutil",
|
2020-01-09 21:41:52 +00:00
|
|
|
],
|
2019-12-12 22:40:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "iptables_test",
|
|
|
|
srcs = [
|
|
|
|
"iptables_test.go",
|
|
|
|
],
|
2020-04-23 18:32:08 +00:00
|
|
|
data = ["//test/iptables/runner"],
|
2020-01-27 18:04:07 +00:00
|
|
|
library = ":iptables",
|
2019-12-12 22:40:36 +00:00
|
|
|
tags = [
|
|
|
|
"local",
|
|
|
|
"manual",
|
|
|
|
],
|
|
|
|
deps = [
|
2020-04-23 18:32:08 +00:00
|
|
|
"//pkg/test/dockerutil",
|
|
|
|
"//pkg/test/testutil",
|
2019-12-12 22:40:36 +00:00
|
|
|
],
|
|
|
|
)
|