global

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CoverageManifestFileName = "manifest.json"
	HomeDir                  = "/home/nucleus"
	WorkspaceCacheDir        = "/workspace-cache"
	RepoDir                  = HomeDir + "/repo"
	CodeCoverageDir          = RepoDir + "/coverage"
	DefaultHTTPTimeout       = 45 * time.Second
	DefaultGitCloneTimeout   = 30 * time.Minute
	SamplingTime             = 5 * time.Millisecond
	RepoSecretPath           = "/vault/secrets/reposecrets"
	OauthSecretPath          = "/vault/secrets/oauth"
	NeuronRemoteHost         = "http://neuron-service.phoenix"
	BlockTestFileLocation    = RepoDir + "/blocktests.json"
	SecretRegex              = `\${{\s*secrets\.(.*?)\s*}}`
	ExecutionResultChunkSize = 50
	TestLocatorsDelimiter    = "#TAS#"
	ExpiryDelta              = 15 * time.Minute
)

All constant related to nucleus

View Source
const (
	GracefulTimeout       = 100 * time.Second
	ProxyServerPort       = "8000"
	DirectoryPermissions  = 0755
	FilePermissions       = 0755
	GitConfigFileName     = "oauth"
	RepoSecretsFileName   = "reposecrets"
	SynapseContainerURL   = "http://synapse:8000"
	NetworkEnvName        = "NetworkName"
	AutoRemoveEnv         = "AutoRemove"
	SynapseHostEnv        = "synapsehost"
	LocalEnv              = "local"
	NetworkName           = "test-at-scale"
	AutoRemove            = true
	Local                 = true
	MaxConnectionAttempts = 10
	ExecutionLogsPath     = "/var/log/synapse"
	PingWait              = 30 * time.Second
	MaxMessageSize        = 4096
)

all constant related to synapse

View Source
const (
	// NUCLEUS_BINARY_VERSION Nucleus version
	NUCLEUS_BINARY_VERSION = "0.0.1"
	// SYNAPSE_BINARY_VERSION Synapse version
	SYNAPSE_BINARY_VERSION = "0.0.1"
)

Variables

View Source
var APIHostURLMap = map[string]string{
	"github":    "https://api.github.com/repos",
	"gitlab":    "https://gitlab.com/api/v4/projects",
	"bitbucket": "https://api.bitbucket.org/2.0",
}

APIHostURLMap is map of git provider with there api url

View Source
var FrameworkRunnerMap = map[string]string{
	"jasmine": "./node_modules/.bin/jasmine-runner",
	"mocha":   "./node_modules/.bin/mocha-runner",
	"jest":    "./node_modules/.bin/jest-runner",
}

FrameworkRunnerMap is map of framework with there respective runner location

View Source
var InstallRunnerCmds = []string{"tar -xzf /custom-runners/custom-runners.tgz"}

InstallRunnerCmds are list of command used to install custom runner

View Source
var NeuronHost string

NeuronHost is neuron host end point

View Source
var SocketURL map[string]string

SocketURL lambdatest url for synapse socket

View Source
var TASCloudURL map[string]string

TASCloudURL url to send reports

View Source
var TestEnv bool = false

TestEnv : to set test env for urlmanager package

View Source
var TestServer string

TestServer : store server URL of test server while doing mock testing

Functions

func SetNeuronHost

func SetNeuronHost(host string)

SetNeuronHost is setter for NeuronHost

Types

This section is empty.

Jump to

Keyboard shortcuts

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