test_master_tops.py 468 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. tests.integration.shell.master_tops
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. """
  6. from __future__ import absolute_import, print_function, unicode_literals
  7. import pytest
  8. @pytest.mark.windows_whitelisted
  9. def test_custom_tops_gets_utilized(salt_call_cli):
  10. ret = salt_call_cli.run("state.show_top")
  11. assert ret.exitcode == 0
  12. assert "master_tops_test" in ret.stdout
  13. assert ret.json == {"base": ["core", "master_tops_test"]}