Change test assertion date

If the year in the log is not described, it should take current
year, not hard coded value.

Change-Id: If6d263800d30b68ec6b4cdf931452109cc31b9f2
This commit is contained in:
Daniel Pawlik
2023-01-03 11:12:20 +01:00
parent ce7aba29a1
commit b2579ca9f2

View File

@@ -1062,7 +1062,8 @@ class TestSender(base.TestCase):
("2022-03-21T08:39:18.220547Z | Last metadata expiration",
datetime.datetime(2022, 3, 21, 8, 39, 18, 220547)),
("Mar 31 04:50:23.795709 nested-virt some log",
datetime.datetime(2022, 3, 31, 4, 50, 23, 795700)),
datetime.datetime(datetime.date.today().year, 3, 31, 4, 50, 23,
795700)),
("Mar 21 09:33:23 fedora-rax-dfw-0028920567 sudo[2786]: zuul ",
datetime.datetime(datetime.date.today().year, 3, 21, 9, 33, 23)),
("2022-03-23T13:09:08.644Z|00040|connmgr|INFO|br-int: added",