Fix unit tests and known flags list
This commit is contained in:
		 Bryan Boreham
					Bryan Boreham
				
			
				
					committed by
					
						 Bryan Boreham
						Bryan Boreham
					
				
			
			
				
	
			
			
			 Bryan Boreham
						Bryan Boreham
					
				
			
						parent
						
							fd4596bd27
						
					
				
				
					commit
					db5fa5297d
				
			| @@ -71,6 +71,8 @@ cluster-tag | ||||
| cluster-monitor-period | ||||
| cluster-signing-cert-file | ||||
| cluster-signing-key-file | ||||
| cni-bin-dir | ||||
| cni-conf-dir | ||||
| concurrent-deployment-syncs | ||||
| concurrent-endpoint-syncs | ||||
| concurrent-namespace-syncs | ||||
|   | ||||
| @@ -183,7 +183,7 @@ func TestCNIPlugin(t *testing.T) { | ||||
| 		NetnsPath: "/proc/12345/ns/net", | ||||
| 	}} | ||||
|  | ||||
| 	plugins := probeNetworkPluginsWithVendorCNIDirPrefix(path.Join(testNetworkConfigPath, pluginName), testVendorCNIDirPrefix) | ||||
| 	plugins := probeNetworkPluginsWithVendorCNIDirPrefix(path.Join(testNetworkConfigPath, pluginName), "", testVendorCNIDirPrefix) | ||||
| 	if len(plugins) != 1 { | ||||
| 		t.Fatalf("Expected only one network plugin, got %d", len(plugins)) | ||||
| 	} | ||||
| @@ -246,7 +246,7 @@ func TestCNIPlugin(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") | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user