Fixing test_run_job test to ensure the right data is being asserted. Updating unit/test_module_names.py to include integration.scheduler.test_run_job.

This commit is contained in:
Gareth J. Greenaway 2019-09-29 10:29:42 -07:00
parent 7d716d6b72
commit 549cfb8b7b
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41
2 changed files with 2 additions and 1 deletions

View File

@ -69,5 +69,5 @@ class SchedulerRunJobTest(ModuleCase, SaltReturnAssertsMixin):
# Run job
self.schedule.run_job(job_name)
ret = self.schedule.job_status(job_name)
expected = {'function': 'test.ping', u'name': 'test_run_job'}
expected = {'function': 'test.ping', 'run': True, 'name': 'test_run_job'}
self.assertEqual(ret, expected)

View File

@ -156,6 +156,7 @@ class BadTestModuleNamesTestCase(TestCase):
'integration.scheduler.test_skip',
'integration.scheduler.test_maxrunning',
'integration.scheduler.test_helpers',
'integration.scheduler.test_run_job',
'integration.shell.test_spm',
'integration.shell.test_cp',
'integration.shell.test_syndic',