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

Test custom apt-daily timers #121

Merged
merged 1 commit into from
Jun 8, 2023
Merged

Conversation

Normo
Copy link
Member

@Normo Normo commented Jun 6, 2023

This PR adds a test for custom apt-daily timers to the Molecule verify step. This is a follow-up for #120

@Normo Normo added the enhancement New feature or request label Jun 6, 2023
@Normo Normo self-assigned this Jun 6, 2023
@Normo Normo force-pushed the test-custom-timers branch from 233ff01 to ecb49fc Compare June 6, 2023 13:48
@Normo Normo marked this pull request as ready for review June 6, 2023 13:50
@Normo Normo requested a review from a team as a code owner June 6, 2023 13:50
@Normo Normo linked an issue Jun 8, 2023 that may be closed by this pull request
@Normo Normo changed the title Test custom apt-daily timers Draft: Test custom apt-daily timers Jun 8, 2023
@Normo Normo force-pushed the test-custom-timers branch 4 times, most recently from 0573e41 to dd2e202 Compare June 8, 2023 08:44
Signed-off-by: Norman Ziegner <norman.ziegner@ufz.de>
@Normo Normo force-pushed the test-custom-timers branch from dd2e202 to 1a94b82 Compare June 8, 2023 08:51
@Normo Normo changed the title Draft: Test custom apt-daily timers Test custom apt-daily timers Jun 8, 2023
@tobiashuste tobiashuste self-requested a review June 8, 2023 09:46
Copy link
Member

@tobiashuste tobiashuste left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of testing the new feature. This looks all fine. I wonder if it makes sense to test the other way round as well. My idea was as follows:

  • Introduce a second test instance similar to the first one
  • Only configure the timer related variables with instance2
  • Make sure to only verify timers if unattended_systemd_timer_override is true.

This way we could also cover the case that we do not reach that part of the code. Do you think that is necessary?

@Normo
Copy link
Member Author

Normo commented Jun 8, 2023

Good point. I think this will result in some more rebuilding of verify.yml, which may be too much for this PR. So, I suggest addressing the increase in code coverage in a separate issue - #122

@Normo Normo requested a review from tobiashuste June 8, 2023 11:29
@tobiashuste tobiashuste merged commit 3e0c9de into hifis-net:main Jun 8, 2023
@Normo Normo added this to the v3.1.0 milestone Jun 9, 2023
@Normo Normo deleted the test-custom-timers branch June 9, 2023 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Added custom of apt-daily timers apt-daily-upgrade
2 participants