mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
tests: Add Ubuntu 17.10 (artful) os_grains test case
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
This commit is contained in:
parent
77d5356aba
commit
ff02ab9937
2 changed files with 32 additions and 1 deletions
13
tests/unit/grains/os-releases/ubuntu-17.10
Normal file
13
tests/unit/grains/os-releases/ubuntu-17.10
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Taken from base-files 9.6ubuntu102
|
||||
NAME="Ubuntu"
|
||||
VERSION="17.10 (Artful Aardvark)"
|
||||
ID=ubuntu
|
||||
ID_LIKE=debian
|
||||
PRETTY_NAME="Ubuntu 17.10"
|
||||
VERSION_ID="17.10"
|
||||
HOME_URL="https://www.ubuntu.com/"
|
||||
SUPPORT_URL="https://help.ubuntu.com/"
|
||||
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
|
||||
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
|
||||
VERSION_CODENAME=artful
|
||||
UBUNTU_CODENAME=artful
|
|
@ -405,7 +405,7 @@ PATCHLEVEL = 3
|
|||
self._run_suse_os_grains_tests(_os_release_map)
|
||||
|
||||
@skipIf(not salt.utils.is_linux(), 'System is not Linux')
|
||||
def test_ubuntu_os_grains(self):
|
||||
def test_ubuntu_xenial_os_grains(self):
|
||||
'''
|
||||
Test if OS grains are parsed correctly in Ubuntu 16.04 "Xenial Xerus"
|
||||
'''
|
||||
|
@ -422,6 +422,24 @@ PATCHLEVEL = 3
|
|||
}
|
||||
self._run_os_grains_tests("ubuntu-16.04", _os_release_map)
|
||||
|
||||
@skipIf(not salt.utils.is_linux(), 'System is not Linux')
|
||||
def test_ubuntu_artful_os_grains(self):
|
||||
'''
|
||||
Test if OS grains are parsed correctly in Ubuntu 17.10 "Artful Aardvark"
|
||||
'''
|
||||
_os_release_map = {
|
||||
'linux_distribution': ('Ubuntu', '17.10', 'artful'),
|
||||
'os': 'Ubuntu',
|
||||
'os_family': 'Debian',
|
||||
'oscodename': 'artful',
|
||||
'osfullname': 'Ubuntu',
|
||||
'osrelease': '17.10',
|
||||
'osrelease_info': [17, 10],
|
||||
'osmajorrelease': 17,
|
||||
'osfinger': 'Ubuntu-17.10',
|
||||
}
|
||||
self._run_os_grains_tests("ubuntu-17.10", _os_release_map)
|
||||
|
||||
def test_docker_virtual(self):
|
||||
'''
|
||||
Test if OS grains are parsed correctly in Ubuntu Xenial Xerus
|
||||
|
|
Loading…
Add table
Reference in a new issue