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

[DPE-2804] Conditionally skip backup tests #310

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Nov 1, 2023

Issue

Can't run the backup integration tests without accessing secrets

Solution

Skip tests if PR from a forked repo

Test external PR: #311

@dragomirp dragomirp force-pushed the dpe-2804-conditional-backup-tests branch from 3a38557 to 7004e72 Compare November 1, 2023 12:52
Comment on lines +83 to +85
async def test_none() -> None:
"""Empty test so that the suite will not fail if all tests are skippedi."""
pass
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should add local s3 tests (microceph? minio?) as a sanity check.

Copy link
Contributor

Choose a reason for hiding this comment

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

JFYI, @paulomach has recently added microceph tests on MySQL, request details to reuse it.

Comment on lines +105 to +107
# preview and explicit preview are enabled for CPY001
preview = true
explicit-preview-rules = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Linting complains otherwise.

@dragomirp dragomirp marked this pull request as ready for review November 1, 2023 14:52
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Nice. BTW, we can enable black on ruff now!

Comment on lines +83 to +85
async def test_none() -> None:
"""Empty test so that the suite will not fail if all tests are skippedi."""
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

JFYI, @paulomach has recently added microceph tests on MySQL, request details to reuse it.

@dragomirp dragomirp merged commit 223ad4c into main Nov 2, 2023
35 checks passed
@dragomirp dragomirp deleted the dpe-2804-conditional-backup-tests branch November 2, 2023 10:23
marceloneppel pushed a commit that referenced this pull request Nov 22, 2023
* Conditionally skip backup tests

* Wrong step output

* Bump libs

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
marceloneppel pushed a commit that referenced this pull request Nov 22, 2023
* Conditionally skip backup tests

* Wrong step output

* Bump libs

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
BON4 pushed a commit to BON4/postgresql-k8s-operator that referenced this pull request May 20, 2024
* Conditionally skip backup tests

* Wrong step output

* Bump libs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants