@Test
    void testOnlyAdminserver() {
        VespaModel vespaModel = getVespaModel(TESTDIR + "simpleadminconfig20");

        // Verify that the admin plugin has been loaded (always loads 'routing' and 'logs')
        assertEquals(3, vespaModel.configModelRepo().asMap().size());

        ApplicationConfigProducerRoot root = vespaModel.getVespa();
        assertNotNull(root);

        // Verify configIds
        Set<String> configIds = vespaModel.getConfigIds();
        String localhost = HostName.getLocalhost();
        String localhostConfigId = "hosts/" + localhost;
        assertTrue(configIds.contains(localhostConfigId));
        assertTrue(configIds.contains("admin/logserver"));
        assertTrue(configIds.contains("admin/configservers/configserver.0"));
        assertTrue(configIds.contains("admin/slobrok.0"));
        assertFalse(configIds.contains("admin/slobrok.1"));

        // Verify services in the sentinel config
        SentinelConfig.Builder b = new SentinelConfig.Builder();
        vespaModel.getConfig(b, localhostConfigId);
        SentinelConfig sentinelConfig = new SentinelConfig(b);
        assertEquals(5, sentinelConfig.service().size());
        assertEquals("logserver", sentinelConfig.service(0).name());
        assertEquals("logserver-container", sentinelConfig.service(1).name());
        assertEquals("slobrok", sentinelConfig.service(2).name());
        assertEquals(METRICS_PROXY_CONTAINER.serviceName, sentinelConfig.service(3).name());
        assertEquals("logd", sentinelConfig.service(4).name());
        assertEquals(-1, sentinelConfig.service(0).affinity().cpuSocket());
        assertTrue(sentinelConfig.service(0).preShutdownCommand().isEmpty());

        // Confirm slobrok config
        SlobroksConfig.Builder sb = new SlobroksConfig.Builder();
        vespaModel.getConfig(sb, "admin");
        SlobroksConfig sc = new SlobroksConfig(sb);
        assertEquals(sc.slobrok().size(), 1);
        assertTrue(sc.slobrok().get(0).connectionspec().matches(".*" + localhost + ".*"));
    }
Test that a very simple config with only adminserver tag creates
adminserver, logserver, configserver and slobroks
config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java