robottelo.rhsso_utils

Utility module to handle the rhsso-satellite configure UI/CLI/API testing

Module Contents

Functions

run_command(cmd, hostname=satellite, timeout=None)

helper function for ssh command and avoiding the return code check in called function

get_rhsso_client_id()

Getter method for fetching the client id and can be used other functions

get_rhsso_user_details(username)

Getter method to receive the user id

get_rhsso_groups_details(group_name)

Getter method to receive the group id

upload_rhsso_entity(json_content, entity_name)

Helper method upload the entity json request as file on RHSSO Server

create_mapper(json_content, client_id)

Helper method to create the RH-SSO Client Mapper

create_new_rhsso_user(client_id, username=None)

create new user in RHSSO instance and set the password

update_rhsso_user(username, group_name=None)

delete_rhsso_user(username)

Delete the RHSSO user

create_group(group_name=None)

Create the RHSSO group

delete_rhsso_group(group_name)

Delete the RHSSO group

update_client_configuration(json_content)

Update the client configuration

get_oidc_token_endpoint()

getter oidc token endpoint

get_oidc_client_id()

getter for the oidc client_id

get_oidc_authorization_endpoint()

getter for the oidc authorization endpoint

get_two_factor_token_rh_sso_url()

getter for the two factor token rh_sso url

open_pxssh_session(ssh_key=settings.server.ssh_key, hostname=settings.server.hostname, username=settings.server.ssh_username)

set_the_redirect_uri()

Attributes

satellite

rhsso_host

realm

rhsso_user

rhsso_password

robottelo.rhsso_utils.satellite
robottelo.rhsso_utils.rhsso_host
robottelo.rhsso_utils.realm
robottelo.rhsso_utils.rhsso_user
robottelo.rhsso_utils.rhsso_password
robottelo.rhsso_utils.run_command(cmd, hostname=satellite, timeout=None)

helper function for ssh command and avoiding the return code check in called function

robottelo.rhsso_utils.get_rhsso_client_id()

Getter method for fetching the client id and can be used other functions

robottelo.rhsso_utils.get_rhsso_user_details(username)

Getter method to receive the user id

robottelo.rhsso_utils.get_rhsso_groups_details(group_name)

Getter method to receive the group id

robottelo.rhsso_utils.upload_rhsso_entity(json_content, entity_name)

Helper method upload the entity json request as file on RHSSO Server

robottelo.rhsso_utils.create_mapper(json_content, client_id)

Helper method to create the RH-SSO Client Mapper

robottelo.rhsso_utils.create_new_rhsso_user(client_id, username=None)

create new user in RHSSO instance and set the password

robottelo.rhsso_utils.update_rhsso_user(username, group_name=None)
robottelo.rhsso_utils.delete_rhsso_user(username)

Delete the RHSSO user

robottelo.rhsso_utils.create_group(group_name=None)

Create the RHSSO group

robottelo.rhsso_utils.delete_rhsso_group(group_name)

Delete the RHSSO group

robottelo.rhsso_utils.update_client_configuration(json_content)

Update the client configuration

robottelo.rhsso_utils.get_oidc_token_endpoint()

getter oidc token endpoint

robottelo.rhsso_utils.get_oidc_client_id()

getter for the oidc client_id

robottelo.rhsso_utils.get_oidc_authorization_endpoint()

getter for the oidc authorization endpoint

robottelo.rhsso_utils.get_two_factor_token_rh_sso_url()

getter for the two factor token rh_sso url

robottelo.rhsso_utils.open_pxssh_session(ssh_key=settings.server.ssh_key, hostname=settings.server.hostname, username=settings.server.ssh_username)
robottelo.rhsso_utils.set_the_redirect_uri()