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] [3006.x] Test fix #66777

Open
wants to merge 2 commits into
base: 3006.x
Choose a base branch
from
Open

[wip] [3006.x] Test fix #66777

wants to merge 2 commits into from

Conversation

dwoz
Copy link
Contributor

@dwoz dwoz commented Aug 3, 2024

What does this PR do?

What issues does this PR fix or reference?

Fixes

Previous Behavior

Remove this section if not relevant

New Behavior

Remove this section if not relevant

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@dwoz dwoz requested a review from a team as a code owner August 3, 2024 03:17
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Test fix [3006.x] Test fix Aug 3, 2024
@dwoz dwoz changed the title [3006.x] Test fix [wip] [3006.x] Test fix Aug 3, 2024
@dwoz dwoz added the test:pkg Run the package tests label Aug 3, 2024
Copy link
Contributor

@dmurphy18 dmurphy18 left a comment

Choose a reason for hiding this comment

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

Wondering what version is being used and coming from, to be passed into the function

@@ -84,11 +84,10 @@ def test_salt_versions_report_minion(salt_cli, salt_call_cli, salt_minion):
@pytest.mark.parametrize(
"binary", ["master", "cloud", "syndic", "minion", "call", "api"]
)
def test_compare_versions(binary, install_salt):
def test_compare_versions(binary, version, install_salt):
Copy link
Contributor

@dmurphy18 dmurphy18 Aug 5, 2024

Choose a reason for hiding this comment

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

Wondering why have version passed in, since install_salt has several versions available in it.
Also just grepped and test_compare_versions is not called by anything, so wondering about version getting passed in and used on line 192-191

Presuming version is same as used in test_salt_version, that is, output of test.version, hence an optimization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:pkg Run the package tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants