Validate Eve plugin ABI fixtures
This commit is contained in:
parent
3cf093ea0c
commit
54e1707a6a
11 changed files with 361 additions and 9 deletions
60
plugins/incubating/norn-graph.plugin-abi-fixture.json
Normal file
60
plugins/incubating/norn-graph.plugin-abi-fixture.json
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"schema": "gamecult.eve.plugin_abi_fixture.v1",
|
||||
"fixtureId": "norn-graph-plugin-abi",
|
||||
"pluginId": "norn.graph",
|
||||
"ownerRepo": "Norn",
|
||||
"contract": "gamecult.eve.plugin_abi.v1",
|
||||
"sourceFixture": "sai-vn",
|
||||
"operations": [
|
||||
{
|
||||
"operation": "describe",
|
||||
"input": {
|
||||
"manifest": "plugins/incubating/norn-graph.plugin.json",
|
||||
"advertisement": "plugins/incubating/norn-graph.plugin-advertisement.json"
|
||||
},
|
||||
"expect": {
|
||||
"pluginId": "norn.graph",
|
||||
"componentKinds": ["embed.norn"],
|
||||
"commands": ["graph.node.activate", "graph.focus"],
|
||||
"capabilities": ["embed.norn", "graph.node.activate"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "validate",
|
||||
"input": {
|
||||
"surface": "web/fixtures/sai-vn-surface.json",
|
||||
"componentKinds": ["embed.norn"]
|
||||
},
|
||||
"expect": {
|
||||
"acceptedComponentKinds": ["embed.norn"],
|
||||
"rejectedComponentKinds": ["embed.tex", "vn.stage"],
|
||||
"requiredCapabilities": ["embed.norn"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "project",
|
||||
"input": {
|
||||
"surface": "web/fixtures/sai-vn-surface.json",
|
||||
"nodeKind": "embed.norn"
|
||||
},
|
||||
"expect": {
|
||||
"projectionKind": "embedded-semantic-surface",
|
||||
"ownedComponentKinds": ["embed.norn"],
|
||||
"outputSchemas": ["norn.graph.document.v1", "norn.graph.layout_request.v1", "norn.graph.layout_result.v1"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "apply",
|
||||
"input": {
|
||||
"commands": ["graph.node.activate", "graph.focus"]
|
||||
},
|
||||
"expect": {
|
||||
"commandEffects": {
|
||||
"graph.node.activate": "activate-node",
|
||||
"graph.focus": "focus-graph"
|
||||
},
|
||||
"receiptSchema": "gamecult.eve.command_receipt.v1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -36,6 +36,9 @@
|
|||
"path": "web/fixtures/sai-vn-surface.json"
|
||||
}
|
||||
],
|
||||
"abiFixtures": [
|
||||
"plugins/incubating/norn-graph.plugin-abi-fixture.json"
|
||||
],
|
||||
"capabilities": {
|
||||
"requires": [
|
||||
"embed.norn"
|
||||
|
|
|
|||
61
plugins/incubating/sai-vn.plugin-abi-fixture.json
Normal file
61
plugins/incubating/sai-vn.plugin-abi-fixture.json
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"schema": "gamecult.eve.plugin_abi_fixture.v1",
|
||||
"fixtureId": "sai-vn-plugin-abi",
|
||||
"pluginId": "sai.vn",
|
||||
"ownerRepo": "Sai",
|
||||
"contract": "gamecult.eve.plugin_abi.v1",
|
||||
"sourceFixture": "sai-vn",
|
||||
"operations": [
|
||||
{
|
||||
"operation": "describe",
|
||||
"input": {
|
||||
"manifest": "plugins/incubating/sai-vn.plugin.json",
|
||||
"advertisement": "plugins/incubating/sai-vn.plugin-advertisement.json"
|
||||
},
|
||||
"expect": {
|
||||
"pluginId": "sai.vn",
|
||||
"componentKinds": ["vn.stage", "panel.dialogue", "text.dialogue", "rail.actions"],
|
||||
"commands": ["story.continue", "story.choose", "story.jump"],
|
||||
"capabilities": ["vn.stage", "story.choose", "story.continue", "story.jump"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "validate",
|
||||
"input": {
|
||||
"surface": "web/fixtures/sai-vn-surface.json",
|
||||
"componentKinds": ["vn.stage", "panel.dialogue", "text.dialogue", "rail.actions"]
|
||||
},
|
||||
"expect": {
|
||||
"acceptedComponentKinds": ["vn.stage", "panel.dialogue", "text.dialogue", "rail.actions"],
|
||||
"rejectedComponentKinds": ["combat.timeline"],
|
||||
"requiredCapabilities": ["vn.stage", "story.choose", "story.continue", "story.jump"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "project",
|
||||
"input": {
|
||||
"surface": "web/fixtures/sai-vn-surface.json",
|
||||
"rootKind": "vn.stage"
|
||||
},
|
||||
"expect": {
|
||||
"projectionKind": "semantic-surface",
|
||||
"ownedComponentKinds": ["vn.stage", "panel.dialogue", "text.dialogue", "rail.actions"],
|
||||
"delegatedPlugins": ["norn.graph", "tex.math"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "apply",
|
||||
"input": {
|
||||
"commands": ["story.continue", "story.choose", "story.jump"]
|
||||
},
|
||||
"expect": {
|
||||
"commandEffects": {
|
||||
"story.continue": "advance-story",
|
||||
"story.choose": "choose-branch",
|
||||
"story.jump": "jump-to-knot"
|
||||
},
|
||||
"receiptSchema": "gamecult.eve.command_receipt.v1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -43,6 +43,9 @@
|
|||
"path": "web/fixtures/sai-vn-surface.json"
|
||||
}
|
||||
],
|
||||
"abiFixtures": [
|
||||
"plugins/incubating/sai-vn.plugin-abi-fixture.json"
|
||||
],
|
||||
"capabilities": {
|
||||
"requires": [
|
||||
"vn.stage",
|
||||
|
|
|
|||
57
plugins/incubating/tex-math.plugin-abi-fixture.json
Normal file
57
plugins/incubating/tex-math.plugin-abi-fixture.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"schema": "gamecult.eve.plugin_abi_fixture.v1",
|
||||
"fixtureId": "tex-math-plugin-abi",
|
||||
"pluginId": "tex.math",
|
||||
"ownerRepo": "EvePlugins",
|
||||
"contract": "gamecult.eve.plugin_abi.v1",
|
||||
"sourceFixture": "sai-vn",
|
||||
"operations": [
|
||||
{
|
||||
"operation": "describe",
|
||||
"input": {
|
||||
"manifest": "plugins/incubating/tex-math.plugin.json",
|
||||
"advertisement": "plugins/incubating/tex-math.plugin-advertisement.json"
|
||||
},
|
||||
"expect": {
|
||||
"pluginId": "tex.math",
|
||||
"componentKinds": ["embed.tex"],
|
||||
"commands": [],
|
||||
"capabilities": ["embed.tex", "tex.inline", "tex.block"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "validate",
|
||||
"input": {
|
||||
"surface": "web/fixtures/sai-vn-surface.json",
|
||||
"componentKinds": ["embed.tex"]
|
||||
},
|
||||
"expect": {
|
||||
"acceptedComponentKinds": ["embed.tex"],
|
||||
"rejectedComponentKinds": ["embed.norn", "vn.stage"],
|
||||
"requiredCapabilities": ["embed.tex"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "project",
|
||||
"input": {
|
||||
"surface": "web/fixtures/sai-vn-surface.json",
|
||||
"nodeKind": "embed.tex"
|
||||
},
|
||||
"expect": {
|
||||
"projectionKind": "render-request",
|
||||
"ownedComponentKinds": ["embed.tex"],
|
||||
"outputSchemas": ["tex.math.render_request.v1", "tex.math.render_result.v1"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "apply",
|
||||
"input": {
|
||||
"stateSchemas": ["tex.math.source.v1", "tex.math.render_request.v1", "tex.math.render_result.v1"]
|
||||
},
|
||||
"expect": {
|
||||
"stateEffects": ["cache-render-result", "emit-fallback-on-render-failure"],
|
||||
"receiptSchema": "gamecult.eve.plugin_receipt.v1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -25,6 +25,9 @@
|
|||
"path": "web/fixtures/sai-vn-surface.json"
|
||||
}
|
||||
],
|
||||
"abiFixtures": [
|
||||
"plugins/incubating/tex-math.plugin-abi-fixture.json"
|
||||
],
|
||||
"capabilities": {
|
||||
"requires": [
|
||||
"embed.tex"
|
||||
|
|
|
|||
Loading…
Reference in a new issue