tripleoclient unit tests fail - TestFileImageClientAdapter.test_get_image MismatchError: '2019-11-14T01:33:39' != '2019-11-14T02:33:39'

Bug #1864828 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Harald Jensås

Bug Description

tripleoclient.tests.v1.overcloud_image.test_overcloud_image.TestFileImageClientAdapter.test_get_image
-----------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/hjensas/code/python-tripleoclient/.tox/py36/lib/python3.6/site-packages/mock/mock.py", line 1330, in patched
        return func(*args, **keywargs)
      File "/home/hjensas/code/python-tripleoclient/tripleoclient/tests/v1/overcloud_image/test_overcloud_image.py", line 265, in test_get_image
        self.assertEqual('2019-11-14T01:33:39', image.created_at)
      File "/home/hjensas/code/python-tripleoclient/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 411, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/home/hjensas/code/python-tripleoclient/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: '2019-11-14T01:33:39' != '2019-11-14T02:33:39'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.opendev.org/710008

Changed in tripleo:
assignee: nobody → Harald Jensås (harald-jensas)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/710008
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=aa0504a46f0cb69f37b3e57e53049a6fa5c2fc6a
Submitter: Zuul
Branch: master

commit aa0504a46f0cb69f37b3e57e53049a6fa5c2fc6a
Author: Harald Jensås <email address hidden>
Date: Wed Feb 26 11:23:35 2020 +0100

    Fix unit test_get_image timezone issue

    tripleoclient unit tests fail due to timezone no UTC.
    TestFileImageClientAdapter.test_get_image
    MismatchError: '2019-11-14T01:33:39' != '2019-11-14T02:33:39'

    Closes-Bug: #1864828
    Change-Id: I076f786e8d5ca756e5d73d04e84c4084ec24c579

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 13.2.0

This issue was fixed in the openstack/python-tripleoclient 13.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.