Commit db5fa529 authored by Bryan Boreham's avatar Bryan Boreham Committed by Bryan Boreham

Fix unit tests and known flags list

parent fd4596bd
...@@ -71,6 +71,8 @@ cluster-tag ...@@ -71,6 +71,8 @@ cluster-tag
cluster-monitor-period cluster-monitor-period
cluster-signing-cert-file cluster-signing-cert-file
cluster-signing-key-file cluster-signing-key-file
cni-bin-dir
cni-conf-dir
concurrent-deployment-syncs concurrent-deployment-syncs
concurrent-endpoint-syncs concurrent-endpoint-syncs
concurrent-namespace-syncs concurrent-namespace-syncs
......
...@@ -183,7 +183,7 @@ func TestCNIPlugin(t *testing.T) { ...@@ -183,7 +183,7 @@ func TestCNIPlugin(t *testing.T) {
NetnsPath: "/proc/12345/ns/net", NetnsPath: "/proc/12345/ns/net",
}} }}
plugins := probeNetworkPluginsWithVendorCNIDirPrefix(path.Join(testNetworkConfigPath, pluginName), testVendorCNIDirPrefix) plugins := probeNetworkPluginsWithVendorCNIDirPrefix(path.Join(testNetworkConfigPath, pluginName), "", testVendorCNIDirPrefix)
if len(plugins) != 1 { if len(plugins) != 1 {
t.Fatalf("Expected only one network plugin, got %d", len(plugins)) t.Fatalf("Expected only one network plugin, got %d", len(plugins))
} }
...@@ -246,7 +246,7 @@ func TestCNIPlugin(t *testing.T) { ...@@ -246,7 +246,7 @@ func TestCNIPlugin(t *testing.T) {
} }
func TestLoNetNonNil(t *testing.T) { func TestLoNetNonNil(t *testing.T) {
if conf := getLoNetwork(""); conf == nil { if conf := getLoNetwork("", ""); conf == nil {
t.Error("Expected non-nil lo network") t.Error("Expected non-nil lo network")
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment