- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestStore (0.2 sec)
-
pkg/kubelet/checkpointmanager/checkpoint_manager_test.go
return cp.Data.PortMappings, cp.Data.HostNetwork } func newTestCheckpointManager() CheckpointManager { return &impl{store: testStore} } func TestCheckpointManager(t *testing.T) { var err error testStore = utilstore.NewMemStore() manager := newTestCheckpointManager() port80 := int32(80) port443 := int32(443) proto := protocol("tcp") ip1234 := "1.2.3.4"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 12 06:41:04 UTC 2018 - 6.6K bytes - Viewed (0) -
pkg/kubelet/util/store/filestore_test.go
"k8s.io/kubernetes/pkg/util/filesystem" ) func TestFileStore(t *testing.T) { store, err := NewFileStore("/FileStore", filesystem.NewTempFs()) assert.NoError(t, err) testStore(t, store) } func testStore(t *testing.T, store Store) { testCases := []struct { key string data string expectErr bool }{ { "id1", "data1", false, }, { "id2",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 24 13:51:34 UTC 2021 - 2.1K bytes - Viewed (0) -
pkg/registry/core/service/allocator/storage/storage_test.go
defer server.Terminate(t) if _, err := storage.Allocate(1); !strings.Contains(err.Error(), "cannot allocate resources of type serviceipallocations at this time") { t.Fatal(err) } } func TestStore(t *testing.T) { storage, server, backing, config := newStorage(t) defer server.Terminate(t) if err := storage.storage.Create(context.TODO(), key(), validNewRangeAllocation(), nil, 0); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 01 20:54:26 UTC 2021 - 4.8K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/storage/storage_test.go
_, storage, _, _, destroyFunc := newStorage(t) defer destroyFunc() err := storage.Allocate(netutils.ParseIPSloppy("192.168.0.0")) if _, ok := err.(*ipallocator.ErrNotInRange); !ok { t.Fatal(err) } } func TestStore(t *testing.T) { _, storage, backing, 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)