test_vanilla.py 621 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. import pytest
  3. def test_local(pepper_cli, session_minion_id):
  4. '''Sanity-check: Has at least one minion - /run - /login query type is parameterized'''
  5. ret = pepper_cli('*', 'test.ping')
  6. assert ret[session_minion_id] is True
  7. @pytest.mark.xfail(
  8. 'config.getoption("--salt-api-backend") == "rest_tornado"',
  9. reason="this is broken in rest_tornado until future release",
  10. )
  11. def test_long_local(pepper_cli, session_minion_id):
  12. '''Test a long call blocks until the return'''
  13. ret = pepper_cli('--timeout=60', '*', 'test.sleep', '30')
  14. assert ret[session_minion_id] is True