mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
9ff2694155
Conflicts: - pkg/salt-minion.service - salt/modules/junos.py - salt/modules/localemod.py - salt/modules/win_system.py - salt/states/junos.py - tests/unit/modules/test_localemod.py - tests/unit/modules/test_win_powercfg.py - tests/unit/states/dockerng_test.py
40 lines
980 B
Python
40 lines
980 B
Python
# -*- coding: utf-8 -*-
|
|
'''
|
|
Tests for the salt-run command
|
|
'''
|
|
# Import Python libs
|
|
from __future__ import absolute_import
|
|
|
|
# Import Salt Testing libs
|
|
from tests.support.case import ShellCase
|
|
from tests.support.unit import skipIf
|
|
|
|
|
|
class ManageTest(ShellCase):
|
|
'''
|
|
Test the manage runner
|
|
'''
|
|
def test_active(self):
|
|
'''
|
|
jobs.active
|
|
'''
|
|
ret = self.run_run_plus('jobs.active')
|
|
self.assertEqual(ret['return'], {})
|
|
self.assertEqual(ret['out'], [])
|
|
|
|
def test_lookup_jid(self):
|
|
'''
|
|
jobs.lookup_jid
|
|
'''
|
|
ret = self.run_run_plus('jobs.lookup_jid', '23974239742394')
|
|
self.assertEqual(ret['return'], {})
|
|
self.assertEqual(ret['out'], [])
|
|
|
|
@skipIf(True, 'to be re-enabled when #23623 is merged')
|
|
def test_list_jobs(self):
|
|
'''
|
|
jobs.list_jobs
|
|
'''
|
|
ret = self.run_run_plus('jobs.list_jobs')
|
|
self.assertIsInstance(ret['return'], dict)
|