def test_invalid_schema_payload_taskcluster_yml(): with pytest.raises( jsonschema.exceptions.ValidationError, match=re.escape("'python3 run.py' is not of type 'array'"), ): validate( os.path.join(FIXTURES_DIR, "bugbug_invalid_schema_payload.taskcluster.yml"))
def test_invalid_schema_taskcluster_yml(): with pytest.raises( jsonschema.exceptions.ValidationError, match=re.escape("'metadata' is a required property"), ): validate( os.path.join(FIXTURES_DIR, "bugbug_invalid_schema.taskcluster.yml"))
def test_invalid_taskcluster_yml(): with pytest.raises( jsone.shared.InterpreterError, match=re.escape( "InterpreterError at template.tasks[8].payload.command[2]: unknown context value tag" ), ): validate(os.path.join(FIXTURES_DIR, "bugbug_invalid.taskcluster.yml"))
def test_valid_taskcluster_yml_with_no_tasks(): validate( os.path.join(FIXTURES_DIR, "no_tasks_on_condition.taskcluster.yml"))
def test_valid_taskcluster_yml_with_win_generic_worker(): validate(os.path.join(FIXTURES_DIR, "win.taskcluster.yml"))
def test_valid_taskcluster_yml_with_taskcluster_root_url_context(): validate(os.path.join(FIXTURES_DIR, "task-boot.taskcluster.yml"))
def test_valid_taskcluster_yml(): validate(os.path.join(FIXTURES_DIR, "bugbug.taskcluster.yml"))