crmsh unit tests assume UTC timezone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
crmsh (Ubuntu) |
Fix Released
|
Undecided
|
Athos Ribeiro |
Bug Description
test/unittests/
=======
_______
def test_get_ts():
> assert ts_to_dt(
E AssertionError: assert '2017/01/26 00:04' == '2017/01/26 03:04'
E - 2017/01/26 03:04
E ? ^
E + 2017/01/26 00:04
E ? ^
test_report.py:220: AssertionError
-------
ERROR: parse_time 2017-01-
INFO: autopkgtest# the log file is in the rfc5424 format
_______
def test_ts_to_dt():
ts1 = crmsh.utils.
ts2 = crmsh.utils.
ts3 = crmsh.utils.
ts4 = crmsh.utils.
ts5 = crmsh.utils.
assert ts_to_dt(
assert ts_to_dt(
assert ts_to_dt(
assert ts_to_dt(
> assert ts_to_dt(
E AssertionError: assert '2017/06/01 03:27:08' == '2017/06/01 06:27:08'
E - 2017/06/01 06:27:08
E ? ^
E + 2017/06/01 03:27:08
E ? ^
test_report.py:326: AssertionError
Related branches
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 267 lines (+187/-2)6 files modifieddebian/changelog (+97/-0)
debian/control (+2/-1)
debian/patches/0020-Use-crmsh-hb_report.patch (+32/-0)
debian/patches/0021-Support-python-310.patch (+53/-0)
debian/patches/series (+2/-0)
debian/tests/pacemaker-node-status.sh (+1/-1)
- Paride Legovini (community): Approve
- Canonical Server: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 278 lines (+228/-0)7 files modifieddebian/changelog (+15/-0)
debian/patches/0017-Fix-health-scripts-python-38-support.patch (+81/-0)
debian/patches/0018-Replace-crmd.patch (+31/-0)
debian/patches/0019-Add-hb_report-dpkg-support.patch (+60/-0)
debian/patches/0020-Use-crmsh-hb_report.patch (+35/-0)
debian/patches/series (+4/-0)
debian/tests/testsuite.sh (+2/-0)
Changed in crmsh (Ubuntu): | |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |
This bug was fixed in the package crmsh - 4.2.1-3ubuntu2
---------------
crmsh (4.2.1-3ubuntu2) jammy; urgency=medium
* New changes: Fix-health- scripts- python- 38-support. patch: remove deprecated Replace- crmd.patch: replace crmd calls with pacemaker-controld Add-hb_ report- dpkg-support. patch: add dpkg support to hb_report Use-crmsh- hb_report. patch: use the crmsh shipped hb_report script
- d/p/0017-
function usage (LP: #1947022).
- d/p/0018-
(LP: #1958241).
- d/t/testsuite.sh: set timezone for time conversion tests (LP: #1958243).
- d/p/0019-
(LP: #1958246).
- d/p/0020-
when available (LP: #1958247).
-- Athos Ribeiro <email address hidden> Fri, 07 Jan 2022 10:14:32 -0300