mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #32340 from lavalamp/serveralloctest
Automatic merge from submit-queue add more details to TestServiceAlloc failure To debug #32028
This commit is contained in:
		@@ -465,7 +465,15 @@ func TestServiceAlloc(t *testing.T) {
 | 
			
		||||
			t.Errorf("unexpected error text: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		t.Fatalf("unexpected sucess")
 | 
			
		||||
		svcs, err := client.Services(api.NamespaceAll).List(api.ListOptions{})
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			t.Fatalf("unexpected success, and error getting the services: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
		allIPs := []string{}
 | 
			
		||||
		for _, s := range svcs.Items {
 | 
			
		||||
			allIPs = append(allIPs, s.Spec.ClusterIP)
 | 
			
		||||
		}
 | 
			
		||||
		t.Fatalf("unexpected creation success. The following IPs exist: %#v. It should only be possible to allocate 2 IP addresses in this cluster.\n\n%#v", allIPs, svcs)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Delete the first service.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user