salt/tests/integration/grains/test_custom.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
518 B
Python
Raw Normal View History

2020-04-02 20:10:20 -05:00
"""
Test the core grains
2020-04-02 20:10:20 -05:00
"""
import pytest
from tests.support.case import ModuleCase
@pytest.mark.windows_whitelisted
class TestGrainsCore(ModuleCase):
2020-04-02 20:10:20 -05:00
"""
Test the core grains grains
2020-04-02 20:10:20 -05:00
"""
@pytest.mark.slow_test
def test_grains_passed_to_custom_grain(self):
2020-04-02 20:10:20 -05:00
"""
test if current grains are passed to grains module functions that have a grains argument
2020-04-02 20:10:20 -05:00
"""
self.assertEqual(
self.run_function("grains.get", ["custom_grain_test"]), "itworked"
)