ocs_ci.ocs.acm package

Submodules

ocs_ci.ocs.acm.acm module

class ocs_ci.ocs.acm.acm.AcmAddClusters(driver)

Bases: AcmPageNavigator

ACM Page Navigator Class

import_cluster(cluster_name, kubeconfig_location)

Import cluster using UI

Parameters:
  • cluster_name – (str): cluster name to import

  • kubeconfig_location – (str): kubeconfig location

Returns:

None, but exits if sample object is not None using TimeoutSampler

import_cluster_ui(cluster_name, kubeconfig_location)
Parameters:
  • cluster_name (str) – cluster name to import

  • kubeconfig_location (str) – kubeconfig file location of imported cluster

install_submariner_ui()

Installs the Submariner on the ACM Hub cluster and expects 2 OCP clusters to be already imported on the Hub Cluster to create a link between them

submariner_validation_ui()

Checks available status of imported clusters after submariner creation

ocs_ci.ocs.acm.acm.copy_kubeconfig(file)
Parameters:

file – (str): kubeconfig file location

Returns:

with kubeconfig lines

Return type:

list

ocs_ci.ocs.acm.acm.get_acm_url()

Gets ACM console url

Returns:

url of ACM console

Return type:

str

ocs_ci.ocs.acm.acm.get_clusters_env()

Stores cluster’s kubeconfig location and clusters name, in case of multi-cluster setup. Function will switch to context index zero before returning :returns: with clusters names, clusters kubeconfig locations :rtype: dict

ocs_ci.ocs.acm.acm.import_clusters_with_acm()

Run Procedure of: detecting acm, login to ACM console, import 2 clusters

ocs_ci.ocs.acm.acm.login_to_acm()

Login to ACM console and validate by its title

Returns:

driver (Selenium WebDriver)

ocs_ci.ocs.acm.acm.validate_cluster_import(cluster_name)

Validate ACM status of managed cluster

Parameters:

cluster_name – (str): cluster name to validate

Assert:

All conditions of selected managed cluster should be “True”, Failed otherwise

Returns:

True, if not AssertionError

ocs_ci.ocs.acm.acm.validate_page_title(driver, title)

Validates Page HTML Title :param driver: driver (Selenium WebDriver) :param title: required title :type title: str

ocs_ci.ocs.acm.acm.verify_running_acm()

Detect ACM and its version on Cluster

ocs_ci.ocs.acm.acm_constants module

Module contents