Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.01 KB

File metadata and controls

42 lines (27 loc) · 1.01 KB

How to run upgrade tests

Note: product upgrade is out of scope for this project and should be done by the user.

Run pre-upgrade tests

SKIP_RESOURCE_TEARDOWN environment variable is set to skip resources teardown.

uv run pytest --pre-upgrade

To run pre-upgrade tests and delete the resources at the end of the run (useful for debugging pre-upgrade tests)

uv run pytest --pre-upgrade --delete-pre-upgrade-resources

Run post-upgrade tests

REUSE_IF_RESOURCE_EXISTS environment variable is set to reuse resources if they already exist.

uv run pytest --post-upgrade

Run pre-upgrade and post-upgrade tests

uv run pytest --pre-upgrade --post-upgrade

To run only specific deployment tests, pass --upgrade-deployment-modes with requested mode(s), for example

uv run pytest --pre-upgrade --post-upgrade --upgrade-deployment-modes=servelerss
uv run pytest --pre-upgrade --post-upgrade --upgrade-deployment-modes=servelerss,rawdeployment