-
Notifications
You must be signed in to change notification settings - Fork 157
CLOUD-929 - Initial pytest test migration #2058
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,718 @@ | |||
import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a set of tools like:
kubernetes.py
mongo.py
git.py
|
||
# TODO: consider using Python for filtering instead of yq | ||
yq_filter = f""" | ||
del(.metadata.ownerReferences[].apiVersion) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be nice in a separated file perhaps
|
||
|
||
@pytest.fixture(scope="class") | ||
def deploy_chaos_mesh(namespace): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could have separate file for helm installed dependencies and use a generic function with parameters to install a helm chart since subprocess is going to be used fot it
commit: c784bf0 |
CHANGE DESCRIPTION
This PR sets up the initial groundwork for transitioning to pytest as our testing framework. It includes:
Create virtual environment and install dependencies:
uv sync --locked
Run all tests:
uv run pytest
Run a specific test
uv run pytest e2e-tests/init-deploy
Enabling debug logging:
uv run pytest --log-level=DEBUG
CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
compare/*-oc.yml
)?Config/Logging/Testability