integration

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCli

func EnsureCli() (cliPath string, cliDir string, err error)

EnsureCli builds the CLI using 'go build' if it does not already exist. note: this will always deliberately build the CLI the first time you invoke it, just in case you have an existing out-of-date binary lying around from some prior thing

func GetApiClient

func GetApiClient(spaceId string) (*client.Client, error)

GetApiClient returns a "back door" connection to the Octopus Server that integration tests can use to create fixture data, cleanup, etc

func GetCliPath

func GetCliPath() (cliPath string, cliDir string, err error)

func RunCli

func RunCli(space string, args ...string) (string, string, error)

func RunCliRawOutput

func RunCliRawOutput(space string, args ...string) ([]byte, []byte, error)

Types

type CommonProjectFixture

type CommonProjectFixture struct {
	ProjectGroup          *projectgroups.ProjectGroup
	Lifecycle             *lifecycles.Lifecycle
	Project               *projects.Project
	ProjectDefaultChannel *channels.Channel
}

func CreateCommonProject

func CreateCommonProject(t *testing.T, apiClient *octopusApiClient.Client, runId uuid.UUID) (*CommonProjectFixture, error)

Jump to

Keyboard shortcuts

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