コード例 #1
0
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"))
コード例 #2
0
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"))
コード例 #3
0
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"))
コード例 #4
0
def test_valid_taskcluster_yml_with_no_tasks():
    validate(
        os.path.join(FIXTURES_DIR, "no_tasks_on_condition.taskcluster.yml"))
コード例 #5
0
def test_valid_taskcluster_yml_with_win_generic_worker():
    validate(os.path.join(FIXTURES_DIR, "win.taskcluster.yml"))
コード例 #6
0
def test_valid_taskcluster_yml_with_taskcluster_root_url_context():
    validate(os.path.join(FIXTURES_DIR, "task-boot.taskcluster.yml"))
コード例 #7
0
def test_valid_taskcluster_yml():
    validate(os.path.join(FIXTURES_DIR, "bugbug.taskcluster.yml"))