'Test that separate configs have segregated the domain.
Test Plan:
- Users were created in each domain as part of setup, now make sure
you can only find a given user in its relevant domain/backend
- Make sure that for a backend that supports multiple domains
you can get the users via any of its domains'

def test_domain_segregation(self):

    users = self.create_users_across_domains()
    self.check_user(users['user0'], self.domain_default['id'], http_client.OK)
    self.check_user(users['user0'], self.domains['domain1']['id'], exception.UserNotFound)
    self.check_user(users['user1'], self.domains['domain1']['id'], http_client.OK)
    self.check_user(users['user1'], self.domain_default['id'], exception.UserNotFound)
    self.assertThat(self.identity_api.list_users(domain_scope=self.domains['domain1']['id']), matchers.HasLength(1))
