testsuite is sensitive to the local timezone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Upgrader |
Fix Released
|
Low
|
Unassigned |
Bug Description
[agnew(
python3 -m unittest unit_tests/*.py
.......
-------
Ran 112 tests in 0.079s
OK
[agnew(
Fri, 10 Aug 2018 14:12:39 +1200
[agnew(
python3 -m unittest unit_tests/*.py
.......
=======
FAIL: test__get_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: {'current': 'idle', 'since': '04 Jan 2018 0[53 chars]28.0} != {'agent-time': 1515057028.0, 'current': 'id[53 chars]2.8'}
- {'agent-time': 1515053428.0,
? ^^
+ {'agent-time': 1515057028.0,
? ^^
'current': 'idle',
'since': '04 Jan 2018 09:10:28Z',
'version': '2.2.8'}
=======
FAIL: test__get_machines (unit_tests.
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: Lists differ: [{'unit': '0', 'current': 'started', 'since': '02 Jan 201[308 chars]WN'}] != [{'unit': '0', 'version': '2.2.8', 'since': '02 Jan 2018 [308 chars]ed'}]
First differing element 0:
{'unit': '0', 'current': 'started', 'since': '02 Jan 201[121 chars]2.8'}
{'unit': '0', 'version': '2.2.8', 'since': '02 Jan 2018 [121 chars]ted'}
- [{'agent-time': 1514920992.0,
? ^^
+ [{'agent-time': 1514924592.0,
? ^^
'current': 'started',
'model': 'mojo-dot-
'model-
'since': '02 Jan 2018 20:23:12Z',
'unit': '0',
'version': '2.2.8'},
- {'agent-time': 1514920992.0,
? ^^
+ {'agent-time': 1514924592.0,
? ^^
'current': 'started',
'model': 'mojo-dot-
'model-
'since': '02 Jan 2018 20:23:12Z',
'unit': '1',
'version': 'UNKNOWN'}]
=======
FAIL: test__get_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: False is not true
=======
FAIL: test__get_unit (unit_tests.
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: {'unit': 'apache2/0', 'current': 'idle', 's[183 chars]2.8'} != {'agent-time': 1515057028.0, 'current': 'id[183 chars]2.8'}
- {'agent-time': 1515053428.0,
? ^^
+ {'agent-time': 1515057028.0,
? ^^
'current': 'idle',
'machine': '0',
'machine-
'model': 'mojo-dot-
'model-version': '2.2.8',
'since': '04 Jan 2018 09:10:28Z',
'unit': 'apache2/0',
'version': '2.2.8'}
=======
FAIL: test__get_units (unit_tests.
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: False is not true
-------
Ran 112 tests in 0.081s
FAILED (failures=5)
Makefile:12: recipe for target 'test' failed
make: *** [test] Error 1
[agnew(
Related branches
- Juju Upgrader Developers: Pending requested
-
Diff: 96 lines (+11/-12)4 files modifiedMakefile (+1/-1)
README.md (+0/-1)
juju_utils.py (+3/-3)
unit_tests/test_juju_utils.py (+7/-7)
Changed in juju-upgrader: | |
importance: | Undecided → Medium |
importance: | Medium → Low |
status: | New → Triaged |
Changed in juju-upgrader: | |
status: | Triaged → Fix Released |