mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add integration test for gentoolkit module (#32977)
This commit is contained in:
parent
af7593ae53
commit
ad3b8b5b3d
31
tests/integration/modules/gentoolkitmod.py
Normal file
31
tests/integration/modules/gentoolkitmod.py
Normal file
@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
# Import salt libs
|
||||
import integration
|
||||
|
||||
|
||||
class GentoolkitModuleTest(integration.ModuleCase):
|
||||
def setUp(self):
|
||||
'''
|
||||
Set up test environment
|
||||
'''
|
||||
super(GentoolkitModuleTest, self).setUp()
|
||||
ret_grain = self.run_function('grains.item', ['os'])
|
||||
if ret_grain['os'] not in 'Gentoo':
|
||||
self.skipTest('For Gentoo only')
|
||||
|
||||
def test_revdep_rebuild_true(self):
|
||||
ret = self.run_function('gentoolkit.revdep_rebuild')
|
||||
self.assertTrue(ret)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
run_tests(GentoolkitModuleTest)
|
Loading…
Reference in New Issue
Block a user