'Test error path when config lacks domain config.'

def test_init_domain_cfg_not_set_fallback(self):

    self._clear_domain_override()
    cfg.CONF.clear_override('stack_domain_admin')
    cfg.CONF.clear_override('stack_domain_admin_password')
    ctx = utils.dummy_context()
    self.patchobject(ctx, '_create_auth_plugin')
    ctx.username = None
    ctx.password = None
    ctx.trust_id = None
    self.assertIsNotNone(heat_keystoneclient.KeystoneClient(ctx))
