'Test get_config_id'

@mock.patch('config.get_auto_confd_path', return_value=os.path.join(os.path.dirname(__file__), 'fixtures/auto_conf/'))
def test_get_config_id(self, mock_get_auto_confd_path):

    with mock.patch('utils.dockerutil.DockerUtil.client', return_value=None):
        for (c_ins, _, _, _, expected_ident, _) in self.container_inspects:
            sd_backend = get_sd_backend(agentConfig=self.auto_conf_agentConfig)
            self.assertEqual(sd_backend.get_config_id(DockerUtil().image_name_extractor(c_ins), c_ins.get('Config', {}).get('Labels', {})), expected_ident)
            clear_singletons(self.auto_conf_agentConfig)
