grafana/pkg/plugins/manager/testdata
sam boyer 4d433084a5
plugins: New static scanner and validator, with Thema slot support (#53754)
* coremodels: Convert plugin-metadata schema to a coremodel

* Newer cuetsy; try quoting field name

* Add slot definitions

* Start sketching out pfs package

* Rerun codegen with fixes, new cuetsy

* Catch up dashboard with new cuetsy

* Update to go1.18

* Use new vmuxers in thema

* Add slot system in Go

* Draft finished implementation of pfs

* Collapse slot pkg into coremodel dir; add PluginInfo

* Add the mux type on top of kernel

* Refactor plugin generator for extensibility

* Change models.cue package, numerous debugs

* Bring new output to parity with old

* Remove old plugin generation logic

* Misc tweaking

* Reintroduce generation of shared schemas

* Drop back to go1.17

* Add globbing to tsconfig exclude

* Introduce pfs test on existing testdata

* Make most existing testdata tests pass with pfs

* coremodels: Convert plugin-metadata schema to a coremodel

* Newer cuetsy; try quoting field name

* Add APIType control concept, regen pluginmeta

* Use proper numeric types for schema fields

* Make pluginmeta schema follow Go type breakdown

* More decomposition into distinct types

* Add test case for no plugin.json file

* Fix missing ref to #Dependencies

* Remove generated TS for pluginmeta

* Update dependencies, rearrange go.mod

* Regenerate without Model prefix

* Use updated thema loader; this is now runnable

* Skip app plugin with weird include

* Make plugin tree extractor reusable

* Split out slot lineage load/validate logic

* Add myriad tests for new plugin validation failures

* Add test for zip fixtures

* One last run of codegen

* Proper delinting

* Ensure validation order is deterministic

* Let there actually be sorting

* Undo reliance on builtIn field (#54009)

* undo builtIn reliance

* fix tests

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2022-08-22 12:11:45 -04:00
..
app-with-child/dist fix and add test (#44286) 2022-01-21 11:00:20 +01:00
disallowed-cue-import plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
duplicate-plugins/nested Plugins: Enforce signing for all plugins (#34364) 2021-05-19 15:42:50 +02:00
includes-symlinks Plugins: Ignore symlinked folders when verifying plugin signature (#34434) 2021-06-15 11:55:47 +02:00
installer/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
invalid-plugin-json Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
invalid-v1-signature/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
invalid-v2-extra-file/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
invalid-v2-missing-file/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
lacking-files/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
mismatch plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
missing-slot-impl plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
name-id-mismatch plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
nested-plugins/parent plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
no-rootfile plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
non-pvt-with-root-url/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
panel-conflicting-joinschema plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
panel-does-not-follow-slot-joinschema plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
symbolic-plugin-dirs Plugins: fix test with bad symlink target (#35737) 2021-06-15 13:53:09 +02:00
test-app Plugins: Enforce signing for all plugins (#34364) 2021-05-19 15:42:50 +02:00
test-app-with-includes Plugins: Fix Default Nav URL for dashboard includes (#47143) 2022-04-06 10:50:39 +02:00
unsigned-datasource/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
unsigned-panel/plugin Plugins: Enforce signing for all plugins (#34364) 2021-05-19 15:42:50 +02:00
valid-model-datasource plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
valid-model-panel plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
valid-v2-pvt-signature/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
valid-v2-pvt-signature-root-url-uri/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
valid-v2-signature/plugin plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00
wrong-slot-panel plugins: New static scanner and validator, with Thema slot support (#53754) 2022-08-22 12:11:45 -04:00