global

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CoverageManifestFileName   = "manifest.json"
	HomeDir                    = "/home/nucleus"
	WorkspaceCacheDir          = "/workspace-cache"
	RepoDir                    = HomeDir + "/repo"
	CodeCoverageDir            = RepoDir + "/coverage"
	RepoCacheDir               = RepoDir + "/__tas"
	DefaultAPITimeout          = 45 * time.Second
	DefaultGitCloneTimeout     = 30 * time.Minute
	SamplingTime               = 5 * time.Millisecond
	RepoSecretPath             = "/vault/secrets/reposecrets"
	OauthSecretPath            = "/vault/secrets/oauth"
	NeuronRemoteHost           = "http://neuron-service.phoenix.svc.cluster.local"
	BlockTestFileLocation      = "/tmp/blocktests.json"
	SecretRegex                = `\${{\s*secrets\.(.*?)\s*}}` // nolint: gosec
	ExecutionResultChunkSize   = 50
	TestLocatorsDelimiter      = "#TAS#"
	ExpiryDelta                = 15 * time.Minute
	NewTASVersion              = 2
	ModulePath                 = "MODULE_PATH"
	PackageJSON                = "package.json"
	SubModuleName              = "SUBMODULE_NAME"
	ArgPattern                 = "--pattern"
	ArgConfig                  = "--config"
	ArgDiff                    = "--diff"
	ArgCommand                 = "--command"
	ArgLocator                 = "--locator-file"
	ArgFrameworVersion         = "--frameworkVersion"
	DefaultTASVersion          = "1.0.0"
	TASYmlConfigurationDocLink = "https://www.lambdatest.com/support/docs/tas-configuring-tas-yml"
)

All constant related to nucleus

View Source
const (
	GracefulTimeout       = 100 * time.Second
	ProxyServerPort       = "8000"
	DirectoryPermissions  = 0755
	FilePermissions       = 0755
	VaultSecretDir        = "/vault/secrets"
	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

Variables

View Source
var (
	// NucleusBinaryVersion Nucleus version
	NucleusBinaryVersion = os.Getenv("VERSION")
	// SynapseBinaryVersion Synapse version
	SynapseBinaryVersion = os.Getenv("VERSION")
)
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 FrameworkLanguageMap = map[string]string{
	"jasmine": "javascript",
	"mocha":   "javascript",
	"jest":    "javascript",
	"golang":  "golang",
	"junit":   "java",
}
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",
	"golang":  "/home/nucleus/server",
	"junit":   "java",
}

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

View Source
var ValidYMLVersions = []int{1, 2}

ValidYMLVersions defines all valid yml version

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