steps.api.given_cloud
Functions
|
Prepare a new request for the cloud API. |
|
Log in as a specific test user. |
|
Log in as the admin user. |
|
Get information about a specific user. |
|
Create a new job token for a specific user. |
|
Delete a platform by its ID. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- steps.api.given_cloud.prepare_cloud_request(context)[source]
Prepare a new request for the cloud API.
Shorthand for creating a request to the cloud API type.
- Parameters:
context – The Behave context
- steps.api.given_cloud.log_as_user(context: steps.api.utils.Context, user_index: str) None[source]
Log in as a specific test user.
- Parameters:
context – The Behave context
user_index – Index of the user in the users list
- steps.api.given_cloud.log_as_admin(context: steps.api.utils.Context) None[source]
Log in as the admin user.
- Parameters:
context – The Behave context
- steps.api.given_cloud.get_user(context: steps.api.utils.Context, user_index: str)[source]
Get information about a specific user.
- Parameters:
context – The Behave context
user_index – Index of the user in the users list
- Returns:
User data from the response
- steps.api.given_cloud.create_job_token(context: steps.api.utils.Context, token_label: str, user_index: str) None[source]
Create a new job token for a specific user.
- Parameters:
context – The Behave context
token_label – Label for the new token
user_index – Index of the user to create the token for
- steps.api.given_cloud.delete_platform(context: steps.api.utils.Context, platform_id_method: str) None[source]
Delete a platform by its ID.
- Parameters:
context – The Behave context
platform_id_method – Method to get the platform ID
- steps.api.given_cloud.register_platform_simplify(context: steps.api.utils.Context, platform_name_method) None[source]
- steps.api.given_cloud.get_platform(context: steps.api.utils.Context, platform_name_or_id_method: str) steps.api.cloud.Platform[source]
- steps.api.given_cloud.register_platform(context: steps.api.utils.Context) None[source]
- steps.api.given_cloud.fetch_platform_job(context: steps.api.utils.Context, platform_name_method: dict = None) None[source]
- steps.api.given_cloud.run_platform_job(context: steps.api.utils.Context, job_id_method: dict = None) None[source]
- steps.api.given_cloud.progress_job(context: steps.api.utils.Context, job_id_method: dict = None) None[source]
- steps.api.given_cloud.finish_job(context: steps.api.utils.Context, job_id_method: dict = None) None[source]
- steps.api.given_cloud.assign_user_to_platform(context: steps.api.utils.Context, user_index: str, platform_id_method: str)[source]
- steps.api.given_cloud.assign_token_to_platform(context: steps.api.utils.Context, job_token_id_method: str, platform_id_method: str) None[source]
- steps.api.given_cloud.assign_user_and_token_to_platform(context: steps.api.utils.Context, user_index: str, platform_name_method: str)[source]
- steps.api.given_cloud.create_job_simplified(context: steps.api.utils.Context, user_index: str)[source]
- steps.api.given_cloud.create_job(context: steps.api.utils.Context, user_index: str, platform_name_method: str) None[source]
- steps.api.given_cloud.create_job_payload(context: steps.api.utils.Context, user_index: str) None[source]
- steps.api.given_cloud.get_job_status(context: steps.api.utils.Context, job_id_method: str, user_index: str) None[source]
- steps.api.given_cloud.get_job_result(context: steps.api.utils.Context, job_id_method: str, user_index: str) None[source]
- steps.api.given_cloud.get_job_info(context: steps.api.utils.Context, job_id_method: str) None[source]
- steps.api.given_cloud.cancel_job(context: steps.api.utils.Context, job_id_method: str, user_index: str) None[source]