def METHOD_NAME(
    module_subscribe_satellite,
    module_enroll_idm_and_configure_external_auth,
    configure_realm,
    module_fake_proxy,
    request,
    module_target_sat,
):
    """Test realm info functionality
    :id: 2e3e92df-61f3-4c6b-98b9-dc9c2f8d140c
    :expectedresults: Realm information obtained by name is correct
    """
    realm = module_target_sat.cli_factory.make_realm(
        {
            'name': gen_string('alpha', random.randint(1, 30)),
            'realm-proxy-id': module_fake_proxy.id,
            'realm-type': 'Red Hat Identity Management',
            'locations': module_fake_proxy.locations.to_list(),
        }
    )
    request.addfinalizer(lambda: module_target_sat.cli.Realm.delete({'id': realm['id']}))
    info = module_target_sat.cli.Realm.info({'name': realm['name']})
    for key in info.keys():
        assert info[key] == realm[key]