Remove legacy configuration machinery
This commit is contained in:
@@ -10,18 +10,18 @@ import (
|
||||
func TestItemOccurrenceConfigurationRequiresEarlierItemRegistry(t *testing.T) {
|
||||
registries := productionNPCRegistries(t)
|
||||
cfg, err := configFromYAML(`
|
||||
version: 4
|
||||
version: 5
|
||||
pipelines:
|
||||
items:
|
||||
input: seriatim
|
||||
chunk: generic
|
||||
input: {module: seriatim}
|
||||
chunk: {module: generic}
|
||||
steps:
|
||||
- id: identify-items
|
||||
artifacts:
|
||||
registry:
|
||||
extract: dnd/item-registry
|
||||
merge: appendorder
|
||||
normalize: dnd/item-registry
|
||||
extract: {module: dnd/item-registry}
|
||||
merge: {module: appendorder}
|
||||
normalize: {module: dnd/item-registry}
|
||||
- id: record-occurrences
|
||||
references:
|
||||
item_registry:
|
||||
@@ -30,9 +30,9 @@ pipelines:
|
||||
lane: registry
|
||||
artifacts:
|
||||
occurrences:
|
||||
extract: dnd/item-occurrences
|
||||
merge: appendorder
|
||||
normalize: dnd/item-occurrences
|
||||
extract: {module: dnd/item-occurrences}
|
||||
merge: {module: appendorder}
|
||||
normalize: {module: dnd/item-occurrences}
|
||||
`)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -42,16 +42,16 @@ pipelines:
|
||||
}
|
||||
|
||||
broken, err := configFromYAML(strings.Replace(`
|
||||
version: 4
|
||||
version: 5
|
||||
pipelines:
|
||||
items:
|
||||
input: seriatim
|
||||
chunk: generic
|
||||
input: {module: seriatim}
|
||||
chunk: {module: generic}
|
||||
steps:
|
||||
- id: record-occurrences
|
||||
artifacts:
|
||||
occurrences:
|
||||
extract: dnd/item-occurrences
|
||||
extract: {module: dnd/item-occurrences}
|
||||
`, "record-occurrences", "record-occurrences", 1))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user