mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	unit tests for Class E IP addresses
This commit is contained in:
		@@ -94,6 +94,11 @@ func TestClusterServiceIPRange(t *testing.T) {
 | 
				
			|||||||
			expectErrors: false,
 | 
								expectErrors: false,
 | 
				
			||||||
			options:      makeOptionsWithCIDRs("10.0.0.0/16", ""),
 | 
								options:      makeOptionsWithCIDRs("10.0.0.0/16", ""),
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								name:         "valid primary, class E range",
 | 
				
			||||||
 | 
								expectErrors: false,
 | 
				
			||||||
 | 
								options:      makeOptionsWithCIDRs("244.0.0.0/16", ""),
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			name:         "valid v4-v6 dual stack",
 | 
								name:         "valid v4-v6 dual stack",
 | 
				
			||||||
			expectErrors: false,
 | 
								expectErrors: false,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19893,6 +19893,7 @@ func TestValidateNonSpecialIP(t *testing.T) {
 | 
				
			|||||||
		ip   string
 | 
							ip   string
 | 
				
			||||||
	}{
 | 
						}{
 | 
				
			||||||
		{"ipv4", "10.1.2.3"},
 | 
							{"ipv4", "10.1.2.3"},
 | 
				
			||||||
 | 
							{"ipv4 class E", "244.1.2.3"},
 | 
				
			||||||
		{"ipv6", "2000::1"},
 | 
							{"ipv6", "2000::1"},
 | 
				
			||||||
	} {
 | 
						} {
 | 
				
			||||||
		t.Run(tc.desc, func(t *testing.T) {
 | 
							t.Run(tc.desc, func(t *testing.T) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user