mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Test cases fix after path expansion
This commit is contained in:
parent
c33be7354f
commit
a9a724d500
@ -81,15 +81,19 @@ func TestLibcontainerAdapterAdaptToSystemdAsCgroupFs(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: "/Burstable",
|
input: "/Burstable",
|
||||||
expected: "Burstable.slice/",
|
expected: "/Burstable.slice",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: "/Burstable/pod_123",
|
input: "/Burstable/pod_123",
|
||||||
expected: "Burstable.slice/Burstable-pod_123.slice/",
|
expected: "/Burstable.slice/Burstable-pod_123.slice",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: "/BestEffort/pod_6c1a4e95-6bb6-11e6-bc26-28d2444e470d",
|
input: "/BestEffort/pod_6c1a4e95-6bb6-11e6-bc26-28d2444e470d",
|
||||||
expected: "BestEffort.slice/BestEffort-pod_6c1a4e95_6bb6_11e6_bc26_28d2444e470d.slice/",
|
expected: "/BestEffort.slice/BestEffort-pod_6c1a4e95_6bb6_11e6_bc26_28d2444e470d.slice",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: "/kubepods",
|
||||||
|
expected: "/kubepods.slice",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, testCase := range testCases {
|
for _, testCase := range testCases {
|
||||||
|
Loading…
Reference in New Issue
Block a user