Skip to content

Commit

Permalink
integration: issue7496 case should work for runc.v2 only
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid committed Aug 24, 2023
1 parent 5add172 commit 537d752
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions integration/issue7496_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ import (
//
// NOTE: https://github.com/containerd/containerd/issues/8931 is the same issue.
func TestIssue7496(t *testing.T) {
t.Logf("Checking CRI config's default runtime")
criCfg, err := CRIConfig()
require.NoError(t, err)

typ := criCfg.ContainerdConfig.Runtimes[criCfg.ContainerdConfig.DefaultRuntimeName].Type
if !strings.HasSuffix(typ, "runc.v2") {
t.Skipf("default runtime should be runc.v2, but it's not: %s", typ)
}

ctx := namespaces.WithNamespace(context.Background(), "k8s.io")

t.Logf("Create a pod config and run sandbox container")
Expand Down

0 comments on commit 537d752

Please sign in to comment.