mirror of
https://github.com/lxc/crio-lxc.git
synced 2026-02-05 09:45:04 +01:00
14 lines
315 B
Go
14 lines
315 B
Go
package lxcri
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestParseSystemCgroupPath(t *testing.T) {
|
|
s := "kubepods-burstable-123.slice:crio:ABC"
|
|
cg := parseSystemdCgroupPath(s)
|
|
require.Equal(t, "kubepods.slice/kubepods-burstable.slice/kubepods-burstable-123.slice/crio-ABC.scope", cg)
|
|
}
|