integration

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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