tests

package
v0.0.0-...-d5b1bed Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestsDirectory   = filepath.Join(os.Getenv("GOPATH"), "src", "github.com/GoPex/unleash", "tests")
	WorkingDirectory = filepath.Join(TestsDirectory, "tmp")
	DataDirectory    = filepath.Join(TestsDirectory, "data")

	GopexGithubURL    = "https://api.github.com/repos/GoPex"
	GopexBitbucketURL = "https://bitbucket.org/gopex"

	TestRepositoryName        = "unleash_test_repository"
	TestPrivateRepositoryName = "unleash_test_repository_private"

	TestRepositoryFullName         = "GoPex/unleash_test_repository"
	TestImageRepository            = "gopex/unleash_test_repository"
	TestRepositoryDefaultBranch    = "master"
	TestRepositoryNotDefaultBranch = "testing_branch_push_event"
	TestRepositoryCommitID         = "bb9a1688dec2d9d8cb24136a41e9bc62ad1d9675"

	TestDockerRegistryURL = "localhost:5000"

	ContextLogger = log.WithFields(log.Fields{
		"environment": "test",
	})

	UnleashConfigTest helpers.Specification
)

Global variables to be used by all tests of this package

Functions

func BitbucketArchiveURL

func BitbucketArchiveURL(repositoryName string, branch string) string

BitbucketArchiveURL construct a full url to a Bitbucket repository archive

func GithubArchiveURL

func GithubArchiveURL(repositoryName string, branch string) string

GithubArchiveURL construct a full url to a Github repository archive

Types

This section is empty.

Jump to

Keyboard shortcuts

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