- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestAllocateReserved (0.12 sec)
-
pkg/registry/core/service/ipallocator/storage/storage_test.go
} if ok { t.Fatal("Expected allocation to fail") } if err := storage.Allocate(netutils.ParseIPSloppy("192.168.1.2")); err != ipallocator.ErrAllocated { t.Fatal(err) } } func TestAllocateReserved(t *testing.T) { _, storage, _, si, destroyFunc := newStorage(t) defer destroyFunc() if err := si.Create(context.TODO(), key(), validNewRangeAllocation(), nil, 0); err != nil { t.Fatalf("unexpected error: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/storage/storage_test.go
t.Fatal(err) } // Try to allocate the port again should succeed because we've released it if err := storage.Allocate(30100); err != nil { t.Fatal(err) } } func TestAllocateReserved(t *testing.T) { _, storage, _, si, destroyFunc := newStorage(t) defer destroyFunc() if err := si.Create(context.TODO(), key(), validNewRangeAllocation(), nil, 0); err != nil { t.Fatalf("unexpected error: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 8.1K bytes - Viewed (0)