fix test panic due to test data unmarshalling
This commit is contained in:
parent
3650a5d21b
commit
27404eb3e6
1 changed files with 13 additions and 2 deletions
|
@ -482,11 +482,22 @@ var (
|
||||||
}
|
}
|
||||||
|
|
||||||
dummyYamlSkipBranch = &core.Config{
|
dummyYamlSkipBranch = &core.Config{
|
||||||
Data: "kind: pipeline\ntrigger: { branch: { exclude: master } }",
|
Data: `
|
||||||
|
kind: pipeline
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- master`,
|
||||||
}
|
}
|
||||||
|
|
||||||
dummyYamlSkipEvent = &core.Config{
|
dummyYamlSkipEvent = &core.Config{
|
||||||
Data: "kind: pipeline\ntrigger: { event: { exclude: push } }",
|
Data: `
|
||||||
|
kind: pipeline
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- push`,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ignoreBuildFields = cmpopts.IgnoreFields(core.Build{},
|
ignoreBuildFields = cmpopts.IgnoreFields(core.Build{},
|
||||||
|
|
Loading…
Reference in a new issue