Skip to content

Commit

Permalink
Cleanup test to remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
barneysowood committed Jan 17, 2025
1 parent 6b26c7f commit 05eb58a
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tests/pytests/integration/grains/test_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,15 @@

pytestmark = [
pytest.mark.windows_whitelisted,
# pytest.mark.slow_test,
pytest.mark.slow_test,
]


def test_fileserver_paths(salt_call_cli):
"""
test if the fileserver paths are set correctly
"""
ret = salt_call_cli.run("--log-level=debug", "config.get", "file_roots")
assert ret.returncode == 0
log.info("file_roots: %s", ret.data)
assert ret.data


def test_grains_passed_to_custom_grain(salt_call_cli):
"""
test if current grains are passed to grains module functions that have a grains argument
"""
ret = salt_call_cli.run("saltutil.sync_grains", refresh=False)
assert ret.returncode == 0
ret = salt_call_cli.run("--log-level=debug", "grains.item", "custom_grain_test")
ret = salt_call_cli.run("grains.item", "custom_grain_test")
assert ret.returncode == 0
assert ret.data
assert ret.data["custom_grain_test"] == "itworked"

0 comments on commit 05eb58a

Please sign in to comment.