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

[MISC] Fix unit tests and add juju 3.6 test runs #202

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Jan 14, 2025

  • Fix unit test failures e.g. here
  • Add juju 3.6 to the integration test matrix

@dragomirp dragomirp changed the title [MISC] Tweak mock [MISC] Fix unit tests and add juju 3.6 test runs Jan 14, 2025
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 most probably also remove some of the other Juju 3 versions

Copy link
Contributor

Choose a reason for hiding this comment

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

@deusebio @delgod @Mehdi-Bendriss do you mind to clean the list here and keep 2.9 and 3.6 LTS only?

LGTM from me to test supported Juju releases only.

@@ -43,14 +43,14 @@ def test_cached_secret_is_cached(harness, mocker):
secret = CachedSecret(harness.charm, "mylabel")
secret.add_secret(content={"rumour": "Community Movie on the way"}, scope="app")
patched_get = mocker.patch("ops.model.Model.get_secret")
patched_get_content = mocker.patch("ops.Secret.get_content")
patched_get_content = patched_get.return_value.get_content
Copy link
Contributor Author

Choose a reason for hiding this comment

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

get_content() is called from the mock get_secret()

@dragomirp dragomirp marked this pull request as ready for review January 14, 2025 19:44
Copy link
Contributor

Choose a reason for hiding this comment

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

@deusebio @delgod @Mehdi-Bendriss do you mind to clean the list here and keep 2.9 and 3.6 LTS only?

LGTM from me to test supported Juju releases only.

@dragomirp dragomirp merged commit 4da38f3 into main Jan 17, 2025
107 checks passed
@dragomirp dragomirp deleted the unit-tests branch January 17, 2025 09:39
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