1
0
mirror of https://github.com/lxc/crio-lxc.git synced 2026-02-05 09:45:04 +01:00
Files
crio-lxc/cgroup_test.go
Ruben Jenster d3981dadd0 Renamed project to lxcri.
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de>
2021-04-21 01:20:29 +02:00

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)
}