Skip to content

Commit

Permalink
removed unused file and code
Browse files Browse the repository at this point in the history
  • Loading branch information
yyatmsft committed Feb 5, 2024
1 parent ede1352 commit 7884840
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 117 deletions.
18 changes: 0 additions & 18 deletions test/cri-containerd/helper_sandbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,6 @@ func removePodSandbox(tb testing.TB, client runtime.RuntimeServiceClient, ctx co
}
}

func getPodSandboxStatus(tb testing.TB, client runtime.RuntimeServiceClient, ctx context.Context, podID string) *runtime.PodSandboxStatus {
tb.Helper()
status, err := client.PodSandboxStatus(ctx, &runtime.PodSandboxStatusRequest{
PodSandboxId: podID,
})
if err != nil {
tb.Fatalf("failed PodSandboxStatus for sandbox: %s, request with: %v", podID, err)
}
return status.Status
}

func assertPodSandboxState(tb testing.TB, client runtime.RuntimeServiceClient, ctx context.Context, podID string, state runtime.PodSandboxState) {
tb.Helper()
if st := getPodSandboxStatus(tb, client, ctx, podID).State; st != state {
tb.Fatalf("got pod sandbox %q state %q; wanted %v", podID, st.String(), state.String())
}
}

func getTestSandboxConfig(tb testing.TB, opts ...SandboxConfigOpt) *runtime.PodSandboxConfig {
tb.Helper()
c := &runtime.PodSandboxConfig{
Expand Down
94 changes: 0 additions & 94 deletions test/cri-containerd/helper_service_test.go

This file was deleted.

9 changes: 4 additions & 5 deletions test/cri-containerd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ var (

// Flags
var (
flagFeatures = testflag.NewFeatureFlag(allFeatures)
flagCRIEndpoint = flag.String("cri-endpoint", "tcp://127.0.0.1:2376", "Address of CRI runtime and image service.")
flagVirtstack = flag.String("virtstack", "", "Virtstack to use for hypervisor isolated containers")
flagVMServiceBinary = flag.String("vmservice-binary", "", "Path to a binary implementing the vmservice ttrpc service")
flagContainerdServiceName = flag.String("containerd-service-name", "containerd", "Name of the containerd Windows service")
flagFeatures = testflag.NewFeatureFlag(allFeatures)
flagCRIEndpoint = flag.String("cri-endpoint", "tcp://127.0.0.1:2376", "Address of CRI runtime and image service.")
flagVirtstack = flag.String("virtstack", "", "Virtstack to use for hypervisor isolated containers")
flagVMServiceBinary = flag.String("vmservice-binary", "", "Path to a binary implementing the vmservice ttrpc service")
)

// Features
Expand Down

0 comments on commit 7884840

Please sign in to comment.