Auto-generated documentation for ocs_ci.ocs.amq module.
AMQ Class to run amq specific tests
class AMQ(object):
def __init__(**kwargs):
Workload operation using AMQ
def cleanup():
Clean up function, will start to delete from amq cluster operator then amq-connector, persistent, bridge, at the end it will delete the created namespace
def is_amq_pod_running(pod_pattern='cluster-operator'):
The function checks if provided pod_pattern finds a pod and if the status is running or not
pod_pattern
str - the pattern for pod
bool
- status of pod: True if found pod is running
def setup_amq():
Setup AMQ from local folder, function will call all necessary sub functions to make sure amq installation is complete
def setup_amq_cluster_operator():
Function to setup amq-cluster_operator, the file file is pulling from github it will make sure cluster-operator pod is running
def setup_amq_kafka_bridge():
Function to setup amq-kafka, the file file is pulling from github it will make kind: KafkaBridge and will make sure the pod status is running
Return: kafka_bridge object
def setup_amq_kafka_connect():
The function is to setup amq-kafka-connect, the yaml file is pulling from github it will make kind: KafkaConnect and will make sure the status is running
Returns: kafka_connect object
def setup_amq_kafka_persistent():
Function to setup amq-kafka-persistent, the file file is pulling from github it will make kind: Kafka and will make sure the status is running
kafka_persistent