mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Test cases fix after path expansion
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user