canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
51 stars 69 forks source link

tests: fix APT news tests for bionic #3103

Closed lucasmoura closed 1 month ago

lucasmoura commented 2 months ago

Why is this needed?

On Bionic, the distro-info-data package version is bigger than what we have on ESM. Therefore, if we upgrade when attached, we will get the ESM version, due to the pin file. After we detach and run apt upgrade, distro-info-data will then be upgraded. Since our tests required that we have no packages to upgrade when checking the apt news messages, we are now adding an additional apt upgrade step after we detach just to get rid of this issue.

Test Steps

Check that the APT News bionic tests are now passing

Checklist

Does this PR require extra reviews?

github-actions[bot] commented 2 months ago

Jira: This PR is not related to a Jira item. (The PR title does not include a SC-#### reference)

GitHub Issues: No GitHub issues are fixed by this PR. (No commits have Fixes: #### references)

Launchpad Bugs: No Launchpad bugs are fixed by this PR. (No commits have LP: #### references)

Documentation: The changes in this PR do not require documentation changes.

👍 this comment to confirm that this is correct.