Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add support for MariaDB in TrustyAI tests #51

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adolfo-ab
Copy link
Contributor

Description

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

def mariadb_operator_cr(admin_client: DynamicClient) -> MariadbOperator:
mariadb_csv = get_cluster_service_version(client=admin_client, prefix="mariadb", namespace=OPENSHIFT_OPERATORS)
alm_examples = mariadb_csv.get_alm_examples()
mariadb_operator_cr_dict = next(d for d in alm_examples if d["kind"] == "MariadbOperator")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please avoid using one-letter vars so it is clear to someone looking at the code what is d

client=admin_client, prefix="mariadb", namespace=OPENSHIFT_OPERATORS
)
alm_examples: List[Dict[str, Any]] = mariadb_csv.get_alm_examples()
mariadb_dict: Dict[str, Any] = next(d for d in alm_examples if d["kind"] == "MariaDB")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment on lines +66 to +67
except TimeoutExpiredError as exc:
raise exc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to raise, the sampler will do it

@adolfo-ab adolfo-ab changed the title Add support for MariaDB in TrustyAI tests [WIP] Add support for MariaDB in TrustyAI tests Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants