salt/tests
Benjamin Drung 77d5356aba Fix incorrect oscodename grain on Ubuntu
Use the full content of /etc/os-release for the Ubuntu 16.04 (artful)
os_grains test case. This reveals a bug that 'oscodename' is not
correctly calculated if /etc/os-release provides PRETTY_NAME:

FAIL: test_ubuntu_os_grains (tests.unit.grains.test_core.CoreGrainsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/unit/grains/test_core.py", line 439, in test_ubuntu_os_grains
    self._run_ubuntu_os_grains_tests(_os_release_map)
  File "tests/unit/grains/test_core.py", line 446, in _run_ubuntu_os_grains_tests
    self._run_os_grains_tests(os_release_map)
  File "tests/unit/grains/test_core.py", line 262, in _run_os_grains_tests
    self.assertEqual(os_grains.get('oscodename'), os_release_map['oscodename'])
AssertionError: 'Ubuntu 16.04.3 LTS' != 'xenial'
- Ubuntu 16.04.3 LTS
+ xenial

fixes #34423 for Ubuntu
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2018-02-26 13:36:33 +01:00
..
integration Merge pull request #45942 from terminalmage/issue45679-2017.7 2018-02-13 11:10:02 -05:00
perf
pkg/rpm
support Fix unnecessary/incorrect usage of six.binary_type 2018-01-23 17:54:27 -05:00
unit Fix incorrect oscodename grain on Ubuntu 2018-02-26 13:36:33 +01:00
utils Misplaced test. Use tests.support.unit instead. 2017-04-01 14:23:00 +01:00
__init__.py
buildpackage.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
committer_parser.py Fix resource leakage 2017-04-05 23:18:00 +01:00
conftest.py Fix basic stats when the test daemons are not running 2017-04-28 13:36:45 +01:00
consist.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
eventlisten.py
eventlisten.sh
jenkins.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
minionswarm.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
modparser.py
packdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
runtests.py add additional parser argument for ssh integration tests 2017-11-10 10:58:38 -05:00
salt-tcpdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
saltsh.py
wheeltest.py
whitelist.txt Add back the two loader tests 2017-04-17 14:04:20 -06:00
zypp_plugin.py Pylint fixes 2017-06-21 10:09:11 +01:00