test

package
v0.55.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchivePlugins added in v0.55.1

func ArchivePlugins(t *testing.T, pluginFolder string) string

ArchivePlugins creates a tar.gz archive for each plugin folder found in pluginFolder. The archives are stored in a temporary folder that is returned, so it can be used as a plugin path containing only archives.

func ExecuteSuiteTest

func ExecuteSuiteTest(t *testing.T, newCMD func() *cobra.Command, suites []Suite)

Types

type Suite

type Suite struct {
	Title                string
	Args                 []string
	APIClient            api.ClientInterface
	Config               config.Config
	ExpectedMessage      string
	ExpectedRegexMessage string
	IsErrorExpected      bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL