Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestPlugin ¶
func NewTestPlugin(ctx context.Context, config TestPluginConfig) (pluginslov1.Plugin, error)
NewTestPlugin is a helper util to load a plugin using the engine that will use Sloth. In the sense of an acceptance/integration test.
This has benefits over loading the plugin directly with Go, by using this method you will be sure that what is executed is what the sloth will execute at runtime, so, if you use a not supported feature or the engine has a bug, this will be detected on the tests instead of Sloth runtime on execution.
Types ¶
type TestPluginConfig ¶
type TestPluginConfig struct { PluginFilePath string PluginConfiguration json.RawMessage }
Click to show internal directories.
Click to hide internal directories.