mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Add validation for Endpoints
This commit is contained in:
		@@ -232,7 +232,7 @@ func TestIsValidIP(t *testing.T) {
 | 
			
		||||
		"0.0.0.0",
 | 
			
		||||
	}
 | 
			
		||||
	for _, val := range goodValues {
 | 
			
		||||
		if !IsValidIP(val) {
 | 
			
		||||
		if !IsValidIPv4(val) {
 | 
			
		||||
			t.Errorf("expected true for %q", val)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
@@ -247,7 +247,7 @@ func TestIsValidIP(t *testing.T) {
 | 
			
		||||
		"1.0.0.1.",
 | 
			
		||||
	}
 | 
			
		||||
	for _, val := range badValues {
 | 
			
		||||
		if IsValidIP(val) {
 | 
			
		||||
		if IsValidIPv4(val) {
 | 
			
		||||
			t.Errorf("expected false for %q", val)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user