'Make sure one cannot operate on a user-defined federated domain.
This includes operations like create, update, delete.'

def test_forbid_operations_on_defined_federated_domain(self):

    non_default_name = 'beta_federated_domain'
    self.config_fixture.config(group='federation', federated_domain_name=non_default_name)
    domain = unit.new_domain_ref(name=non_default_name)
    self.assertRaises(AssertionError, self.resource_api.create_domain, domain['id'], domain)
    self.assertRaises(exception.DomainNotFound, self.resource_api.delete_domain, domain['id'])
    self.assertRaises(AssertionError, self.resource_api.update_domain, domain['id'], domain)
