-
Notifications
You must be signed in to change notification settings - Fork 180
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
QE: Fix Recurring Actions test #7646
Conversation
b16cf4b
to
226c425
Compare
The events have to be scheduled a bit more in the future, otherwise they will not get picked up because they were created at the same time they will get executed, which does not work. Furthermore, I adjusted the get_future_time() method according to the following: ```bash Time (Hour, Minute, Second, Subsecond): %H - Hour of the day, 24-hour clock, zero-padded (00..23) %k - Hour of the day, 24-hour clock, blank-padded ( 0..23) ``` This method was only used in package installation tests, which I tested with my new changes. I also make use of this method in one of the steps used in our Recurring Actions tests to prevent code duplication. Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
226c425
to
8f113cc
Compare
This will properly restore the child channels for the SUSE minion. Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
This fix did work when running the test suite manually from the controller. However, @wweellddeerr told me, that he had to explicitly define a timezone environment variable ( |
sumaform sets always NUE timezone in both envs, so don't worry about that https://github.com/uyuni-project/sumaform/blob/f56856e16342c6d50e8bb3f70382c76013a645c3/backend_modules/null/base/variables.tf#L15 |
Good to know. I did not check sumaform, but I did not find any env. variable on the controller, though. However, the timezone was correct on HEAD: suma-head-ctl:~ # date
Thu 05 Oct 2023 01:14:54 PM CEST
suma-head-ctl:~ # timedatectl
Local time: Thu 2023-10-05 13:15:16 CEST
Universal time: Thu 2023-10-05 11:15:16 UTC
RTC time: Thu 2023-10-05 11:15:16
Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no |
What does this PR change?
This will
The screenshot below shows e.g. the output of
scheduled at around 11:21 am, but this is definitely not nearly around Europe/Berlin.
I adjusted the
get_future_time()
method according to the following:https://ruby-doc.org/stdlib-2.5.8/libdoc/date/rdoc/DateTime.html#method-i-strftime
This method was only used in package installation tests, which I tested with my new changes. I also make use of this method in one of the steps used in our Recurring Actions tests to prevent code duplication. I tested this on HEAD.
Package installation step that uses
get_future_time()
with the new changeRecurring Actions
GUI diff
No difference.
Documentation
No documentation needed: only internal and user invisible changes
DONE
Test coverage
Cucumber tests were adjusted
DONE
Links
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run: