예제 #1
0
 def test_check_more_json_wrong(self):
     yaml_template_more_comma = '{"a": "aa", "b":"" ,}'
     workflow_definition = make_workflow_template()
     workflow_definition.job_definitions[0].yaml_template = \
         yaml_template_more_comma
     with self.assertRaises(ValueError):
         check_workflow_definition(workflow_definition)
예제 #2
0
 def test_check_wrong_placeholder(self):
     workflow_definition = make_workflow_template()
     yaml_template_wrong_placeholder = '{"a": "${workflow.xx!x.nobody}"}'
     workflow_definition.job_definitions[0].yaml_template =\
         yaml_template_wrong_placeholder
     with self.assertRaises(ValueError):
         check_workflow_definition(workflow_definition)
예제 #3
0
 def test_check_workflow_definition(self):
     workflow_definition = make_workflow_template()
     check_workflow_definition(workflow_definition)