Page MenuHomeDevCentral

Sort jails.flatlist output by alphabetical order
ClosedPublic

Authored by dereckson on Nov 24 2017, 04:50.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 15:22
Unknown Object (File)
Wed, Oct 23, 18:43
Unknown Object (File)
Mon, Oct 21, 06:00
Unknown Object (File)
Mon, Oct 21, 06:00
Unknown Object (File)
Mon, Oct 21, 02:08
Unknown Object (File)
Fri, Oct 18, 19:59
Unknown Object (File)
Sun, Oct 13, 01:21
Unknown Object (File)
Sun, Oct 13, 00:28
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 Passed
Unit
No Test Coverage
Branch
sort-test-list-output (branched from master)
Build Status
Buildable 2006
Build 2254: arc lint + arc unit