aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/options_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/csource/options_test.go')
-rw-r--r--pkg/csource/options_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/csource/options_test.go b/pkg/csource/options_test.go
index e1457ea73..0786d6118 100644
--- a/pkg/csource/options_test.go
+++ b/pkg/csource/options_test.go
@@ -235,6 +235,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": true,
"devlink_pci": true,
"usb": true,
+ "vhci": true,
}},
{"none", "none", false, map[string]bool{
"tun": false,
@@ -245,6 +246,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": false,
"devlink_pci": false,
"usb": false,
+ "vhci": false,
}},
{"all", "none", true, map[string]bool{
"tun": true,
@@ -255,6 +257,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": true,
"devlink_pci": true,
"usb": true,
+ "vhci": true,
}},
{"", "none", true, map[string]bool{
"tun": false,
@@ -265,6 +268,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": false,
"devlink_pci": false,
"usb": false,
+ "vhci": false,
}},
{"none", "all", true, map[string]bool{
"tun": false,
@@ -275,6 +279,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": false,
"devlink_pci": false,
"usb": false,
+ "vhci": false,
}},
{"none", "", true, map[string]bool{
"tun": true,
@@ -285,6 +290,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": true,
"devlink_pci": true,
"usb": true,
+ "vhci": true,
}},
{"tun,net_dev", "none", true, map[string]bool{
"tun": true,
@@ -295,6 +301,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": false,
"devlink_pci": false,
"usb": false,
+ "vhci": false,
}},
{"none", "cgroups,net_dev", true, map[string]bool{
"tun": true,
@@ -305,6 +312,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": true,
"devlink_pci": true,
"usb": true,
+ "vhci": true,
}},
{"close_fds", "none", true, map[string]bool{
"tun": false,
@@ -315,6 +323,7 @@ func TestParseFeaturesFlags(t *testing.T) {
"close_fds": true,
"devlink_pci": false,
"usb": false,
+ "vhci": false,
}},
}
for i, test := range tests {