'Test the Manager class scans the config directory.
The setup for the main tests above load the domain configs directly
so that the test overrides can be included. This test just makes sure
that the standard config directory scanning does pick up the relevant
domain config files.'

def test_scanning_of_config_dir(self):

    self.assertTrue(CONF.identity.domain_specific_drivers_enabled)
    self.load_backends()
    self.identity_api.list_users(domain_scope=self.domains['domain1']['id'])
    self.assertIn('default', self.identity_api.domain_configs)
    self.assertIn(self.domains['domain1']['id'], self.identity_api.domain_configs)
    self.assertIn(self.domains['domain2']['id'], self.identity_api.domain_configs)
    self.assertNotIn(self.domains['domain3']['id'], self.identity_api.domain_configs)
    self.assertNotIn(self.domains['domain4']['id'], self.identity_api.domain_configs)
    conf = self.identity_api.domain_configs.get_domain_conf(self.domains['domain1']['id'])
    self.assertFalse(conf.identity.domain_specific_drivers_enabled)
    self.assertEqual('fake://memory1', conf.ldap.url)
