Page MenuHomeDevCentral

Sort jails.flatlist output by alphabetical order
ClosedPublic

Authored by dereckson on Nov 24 2017, 04:50.
Tags
None
Referenced Files
F3768300: D1262.diff
Sat, Nov 23, 07:25
Unknown Object (File)
Sun, Nov 17, 21:08
Unknown Object (File)
Mon, Nov 11, 05:54
Unknown Object (File)
Sun, Nov 10, 05:46
Unknown Object (File)
Sun, Nov 10, 04:21
Unknown Object (File)
Sat, Nov 9, 16:04
Unknown Object (File)
Sat, Nov 9, 15:45
Unknown Object (File)
Tue, Nov 5, 21:02
Subscribers
None

Details

Summary

This issue make unit test fails on Python 2
(works on Python 3 but currently _modules/ use Python 2 .iteritems()).

This is a follow-up for cd3273b0.

Test Plan

This fixes the following test issue:

======================================================================
FAIL: test_flatlist (test_jails.Testinstance)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/dereckson/dev/nasqueron/ops/repo/_tests/modules/test_jails.py", line 36, in test_flatlist
    self.assertEqual("guest1 guest2", jails.flatlist())
AssertionError: 'guest1 guest2' != 'guest2 guest1'

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable