def test_02_validation_fails_missing_job_id(self):
     self.assertFalse(
         schema_validation.JobIDValidator(
             {
                 "Job-Id": "test"
             },
             DUMMY_INDEX_FILE
         ).validate().success
     )
 def test_03_validation_fails_job_id_not_string(self):
     self.assertFalse(
         schema_validation.JobIDValidator(
             {
                 FieldKeys.JOB_ID: 1
             },
             DUMMY_INDEX_FILE
         ).validate().success
     )
 def test_01_validation_succeeds_valid_job_id(self):
     self.assertTrue(
         schema_validation.JobIDValidator(
             {
                 FieldKeys.JOB_ID: "test"
             },
             DUMMY_INDEX_FILE
         ).validate().success
     )
 def test_03_validation_fails_git_url_not_string(self):
     self.assertFalse(
         schema_validation.JobIDValidator({
             FieldKeys.GIT_URL: 1
         }, DUMMY_INDEX_FILE).validate().success)