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

Add support for MariaDB #16

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

adolfo-ab
Copy link
Contributor

Add functions and fixtures to use MariaDB Operator

Description

TrustyAI allows users to bring their own database. For automated tests, we use MariaDB, through the use of MariaDB operator. This PR provides the necessary infra to use MariaDB in all the tests.

How Has This Been Tested?

Not tested yet, PR in draft state until 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

tests/trustyai/conftest.py Outdated Show resolved Hide resolved
tests/trustyai/conftest.py Outdated Show resolved Hide resolved
tests/trustyai/conftest.py Outdated Show resolved Hide resolved
tests/trustyai/conftest.py Outdated Show resolved Hide resolved
tests/trustyai/conftest.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
@adolfo-ab adolfo-ab marked this pull request as ready for review October 16, 2024 10:22
@adolfo-ab
Copy link
Contributor Author

/verified

tests/trustyai/conftest.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
tests/trustyai/utils.py Outdated Show resolved Hide resolved
matching_pods = [pod for pod in pods if pod.labels.get(label_key) == label_value]
if not matching_pods:
return False
pod = matching_pods[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you check only the 1st pod?

tests/trustyai/utils.py Outdated Show resolved Hide resolved
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