Verifying Ubuntu cgroup line parsing for container ID
@@ -86,6 +86,13 @@ public class ContainerInfoTest {
assertKubernetesInfo(systemInfo, podId, "my-host", null, null);
}
+ @Test
+ void testUbuntuCgroup() {
+ String line = "1:name=systemd:/user.slice/user-1000.slice/user@1000.service/apps.slice/apps-org.gnome.Terminal" +
+ ".slice/vte-spawn-75bc72bd-6642-4cf5-b62c-0674e11bfc84.scope";
+ assertThat(createSystemInfo().parseContainerId(line).getContainerInfo()).isNull();
+ }
+
@Test
void testKubernetesInfo_podUid_with_underscores() {
// In such cases- underscores should be replaced with hyphens in the pod UID
