const driverClassName …
const podName …
const containerName …
type fakeDRADriverGRPCServer …
func (s *fakeDRADriverGRPCServer) NodePrepareResources(ctx context.Context, req *drapb.NodePrepareResourcesRequest) (*drapb.NodePrepareResourcesResponse, error) { … }
func (s *fakeDRADriverGRPCServer) NodeUnprepareResources(ctx context.Context, req *drapb.NodeUnprepareResourcesRequest) (*drapb.NodeUnprepareResourcesResponse, error) { … }
type tearDown …
type fakeDRAServerInfo …
func setupFakeDRADriverGRPCServer(ctx context.Context, shouldTimeout bool, pluginClientTimeout *time.Duration, prepareResourcesResponse *drapb.NodePrepareResourcesResponse, unprepareResourcesResponse *drapb.NodeUnprepareResourcesResponse) (fakeDRAServerInfo, error) { … }
func TestNewManagerImpl(t *testing.T) { … }
func genTestPod() *v1.Pod { … }
func genTestClaim(name, driver, device, podUID string) *resourceapi.ResourceClaim { … }
func genTestClaimInfo(podUIDs []string, prepared bool) *ClaimInfo { … }
func genClaimInfoState(cdiDeviceID string) state.ClaimInfoState { … }
func TestGetResources(t *testing.T) { … }
func getFakeNode() (*v1.Node, error) { … }
func TestPrepareResources(t *testing.T) { … }
func TestUnprepareResources(t *testing.T) { … }
func TestPodMightNeedToUnprepareResources(t *testing.T) { … }
func TestGetContainerClaimInfos(t *testing.T) { … }
func TestParallelPrepareUnprepareResources(t *testing.T) { … }