tests

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultEventSubscriptions = []core.EventSubscription{
		{
			Source: "brigade.sh/cli",
			Types: []string{
				"exec",
			},
		},
	}

	DefaultConfigFiles = map[string]string{
		"brigade.ts": fmt.Sprintf(`
		import { events, Job } from "@brigadecore/brigadier"

		events.on("brigade.sh/cli", "exec", async event => {
			let job = new Job("%s", "alpine", event)
			job.primaryContainer.sourceMountPath = "/var/vcs"
			job.primaryContainer.command = ["ls"]
			job.primaryContainer.arguments = ["-haltr", "/var/vcs"]
			await job.run()
		})

		events.process()
	`, testJobName)}
)
View Source
var TestCases = []testcase{
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
}

Functions

func GetRequiredEnvVar

func GetRequiredEnvVar(t *testing.T, name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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