Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestRepair (0.09 sec)

  1. pkg/registry/core/service/portallocator/controller/repair_test.go

    	r.getCalled = true
    	return r.item, r.err
    }
    
    func (r *mockRangeRegistry) CreateOrUpdate(alloc *api.RangeAllocation) error {
    	r.updateCalled = true
    	r.updated = alloc
    	return r.updateErr
    }
    
    func TestRepair(t *testing.T) {
    	clearMetrics()
    	fakeClient := fake.NewSimpleClientset()
    	registry := &mockRangeRegistry{
    		item: &api.RangeAllocation{Range: "100-200"},
    	}
    	pr, _ := net.ParsePortRange(registry.item.Range)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repair_test.go

    	r.getCalled = true
    	return r.item, r.err
    }
    
    func (r *mockRangeRegistry) CreateOrUpdate(alloc *api.RangeAllocation) error {
    	r.updateCalled = true
    	r.updated = alloc
    	return r.updateErr
    }
    
    func TestRepair(t *testing.T) {
    	fakeClient := fake.NewSimpleClientset()
    	ipregistry := &mockRangeRegistry{
    		item: &api.RangeAllocation{Range: "192.168.1.0/24"},
    	}
    	_, cidr, _ := netutils.ParseCIDRSloppy(ipregistry.item.Range)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top