@@ -10,34 +10,35 @@ var TestServer string
1010
1111// All constant related to nucleus
1212const (
13- CoverageManifestFileName = "manifest.json"
14- HomeDir = "/home/nucleus"
15- WorkspaceCacheDir = "/workspace-cache"
16- RepoDir = HomeDir + "/repo"
17- CodeCoverageDir = RepoDir + "/coverage"
18- RepoCacheDir = RepoDir + "/__tas"
19- DefaultAPITimeout = 45 * time .Second
20- DefaultGitCloneTimeout = 30 * time .Minute
21- SamplingTime = 5 * time .Millisecond
22- RepoSecretPath = "/vault/secrets/reposecrets"
23- OauthSecretPath = "/vault/secrets/oauth"
24- NeuronRemoteHost = "http://neuron-service.phoenix.svc.cluster.local"
25- BlockTestFileLocation = "/tmp/blocktests.json"
26- SecretRegex = `\${{\s*secrets\.(.*?)\s*}}`
27- ExecutionResultChunkSize = 50
28- TestLocatorsDelimiter = "#TAS#"
29- ExpiryDelta = 15 * time .Minute
30- NewTASVersion = 2
31- ModulePath = "MODULE_PATH"
32- PackageJSON = "package.json"
33- SubModuleName = "SUBMODULE_NAME"
34- ArgPattern = "--pattern"
35- ArgConfig = "--config"
36- ArgDiff = "--diff"
37- ArgCommand = "--command"
38- ArgLocator = "--locator-file"
39- ArgFrameworVersion = "--frameworkVersion"
40- DefaultTASVersion = "1.0.0"
13+ CoverageManifestFileName = "manifest.json"
14+ HomeDir = "/home/nucleus"
15+ WorkspaceCacheDir = "/workspace-cache"
16+ RepoDir = HomeDir + "/repo"
17+ CodeCoverageDir = RepoDir + "/coverage"
18+ RepoCacheDir = RepoDir + "/__tas"
19+ DefaultAPITimeout = 45 * time .Second
20+ DefaultGitCloneTimeout = 30 * time .Minute
21+ SamplingTime = 5 * time .Millisecond
22+ RepoSecretPath = "/vault/secrets/reposecrets"
23+ OauthSecretPath = "/vault/secrets/oauth"
24+ NeuronRemoteHost = "http://neuron-service.phoenix.svc.cluster.local"
25+ BlockTestFileLocation = "/tmp/blocktests.json"
26+ SecretRegex = `\${{\s*secrets\.(.*?)\s*}}` // nolint: gosec
27+ ExecutionResultChunkSize = 50
28+ TestLocatorsDelimiter = "#TAS#"
29+ ExpiryDelta = 15 * time .Minute
30+ NewTASVersion = 2
31+ ModulePath = "MODULE_PATH"
32+ PackageJSON = "package.json"
33+ SubModuleName = "SUBMODULE_NAME"
34+ ArgPattern = "--pattern"
35+ ArgConfig = "--config"
36+ ArgDiff = "--diff"
37+ ArgCommand = "--command"
38+ ArgLocator = "--locator-file"
39+ ArgFrameworVersion = "--frameworkVersion"
40+ DefaultTASVersion = "1.0.0"
41+ TASYmlConfigurationDocLink = "https://www.lambdatest.com/support/docs/tas-configuring-tas-yml"
4142)
4243
4344// FrameworkRunnerMap is map of framework with there respective runner location
@@ -74,3 +75,6 @@ var FrameworkLanguageMap = map[string]string{
7475 "golang" : "golang" ,
7576 "junit" : "java" ,
7677}
78+
79+ // ValidYMLVersions defines all valid yml version
80+ var ValidYMLVersions = []int {1 , 2 }
0 commit comments