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

PMM-7 fix updates test #3050

Merged
merged 2 commits into from
Jun 26, 2024
Merged

PMM-7 fix updates test #3050

merged 2 commits into from
Jun 26, 2024

Conversation

idoqo
Copy link
Contributor

@idoqo idoqo commented Jun 25, 2024

PMM-7

Fixes for api tests and unit tests related to PMM server versions.

Link to the Feature Build: SUBMODULES-0

If this PR adds or removes or alters one or more API endpoints, please review and add or update the relevant API documents as well:

  • API Docs updated

If this PR is related to some other PRs in this or other repositories, please provide links to those PRs:

  • Links to related pull requests (optional).

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.54%. Comparing base (518fe8a) to head (fa1467f).

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3050      +/-   ##
==========================================
+ Coverage   43.33%   44.54%   +1.21%     
==========================================
  Files         400      367      -33     
  Lines       41631    35555    -6076     
==========================================
- Hits        18041    15839    -2202     
+ Misses      21573    18084    -3489     
+ Partials     2017     1632     -385     
Flag Coverage Δ
managed 46.65% <ø> (+2.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@idoqo idoqo marked this pull request as ready for review June 25, 2024 19:56
@idoqo idoqo requested a review from a team as a code owner June 25, 2024 19:56
@idoqo idoqo requested review from BupycHuk, JiriCtvrtka, ademidoff and a team and removed request for a team June 25, 2024 19:56
@@ -252,7 +252,7 @@ func TestUpdater(t *testing.T) {
latest, err := u.latest(context.Background())
require.NoError(t, err)
assert.NotNil(t, latest)
assert.True(t, strings.HasPrefix(latest.Version.String(), "2.41."), "latest version of PMM 2 should have prefix 2.41.")
assert.True(t, strings.HasPrefix(latest.Version.String(), "2."), "latest version of PMM 2 should have prefix 2.")
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

Shouldn't we add the same || strings.HasPrefix(res.Payload.Installed.Version, "3.") to be prepared for v3?

@BupycHuk BupycHuk merged commit b6b01b6 into v3 Jun 26, 2024
13 checks passed
@BupycHuk BupycHuk deleted the PMM-7-fix-updates-test branch June 26, 2024 08:13
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.

3 participants