github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/tests/build/const.go (about) 1 package build 2 3 import ( 4 "fmt" 5 "strings" 6 7 "github.com/redhat-appstudio/e2e-tests/pkg/constants" 8 "github.com/redhat-appstudio/e2e-tests/pkg/utils" 9 ) 10 11 const ( 12 COMPONENT_REPO_URLS_ENV string = "COMPONENT_REPO_URLS" 13 14 containerImageSource = "quay.io/redhat-appstudio-qe/busybox-loop@sha256:f698f1f2cf641fe9176d2a277c9052d872f6b1c39e56248a1dd259b96281dda9" 15 pythonComponentGitSourceURL = "https://github.com/redhat-appstudio-qe/devfile-sample-python-basic.git" 16 gitRepoContainsSymlinkBranchName = "symlink" 17 dummyPipelineBundleRef = "quay.io/redhat-appstudio-qe/dummy-pipeline-bundle@sha256:9805fc3f309af8f838622e49d3e7705d8364eb5c8287043d5725f3ef12232f24" 18 buildTemplatesTestLabel = "build-templates-e2e" 19 buildTemplatesKcpTestLabel = "build-templates-kcp-e2e" 20 21 helloWorldComponentGitSourceRepoName = "devfile-sample-hello-world" 22 helloWorldComponentDefaultBranch = "default" 23 helloWorldComponentRevision = "b915157dc9efac492ebc285d4a44ce67e6ab2075" 24 25 multiComponentGitSourceRepoName = "sample-multi-component" 26 multiComponentDefaultBranch = "main" 27 multiComponentGitRevision = "0d1835404efb8ab7bb1ab5b5b82cda1ebfda4b25" 28 29 secretLookupGitSourceRepoOneName = "secret-lookup-sample-repo-one" 30 secretLookupDefaultBranchOne = "main" 31 secretLookupGitRevisionOne = "4b86bbfba19586f9ec8b648b3f47de3a5c62d460" 32 secretLookupGitSourceRepoTwoName = "secret-lookup-sample-repo-two" 33 secretLookupDefaultBranchTwo = "main" 34 secretLookupGitRevisionTwo = "9fd1358a22212d03ed938ea3bed8df98dddd2652" 35 36 annotationsTestGitSourceRepoName = "multi-stage-build-go-sample" 37 annotationsTestRevision = "529f65798777a5fe145e33d58e1e91c4c03704a4" 38 39 componentDependenciesParentRepoName = "build-nudge-parent" 40 componentDependenciesParentDefaultBranch = "main" 41 componentDependenciesParentGitRevision = "a8dce08dbdf290e5d616a83672ad3afcb4b455ef" 42 componentDependenciesChildRepoName = "build-nudge-child" 43 componentDependenciesChildDefaultBranch = "main" 44 componentDependenciesChildGitRevision = "56c13d17b1a8f801f2c41091e6f4e62cf16ee5f2" 45 46 githubUrlFormat = "https://github.com/%s/%s" 47 48 appstudioCrdsBuild = "appstudio-crds-build" 49 computeBuild = "compute-build" 50 51 //Logging related 52 buildStatusAnnotationValueLoggingFormat = "build status annotation value: %s\n" 53 ) 54 55 var ( 56 componentUrls = strings.Split(utils.GetEnv(COMPONENT_REPO_URLS_ENV, pythonComponentGitSourceURL), ",") //multiple urls 57 componentNames []string 58 gihubOrg = utils.GetEnv(constants.GITHUB_E2E_ORGANIZATION_ENV, "redhat-appstudio-qe") 59 helloWorldComponentGitSourceURL = fmt.Sprintf(githubUrlFormat, gihubOrg, helloWorldComponentGitSourceRepoName) 60 annotationsTestGitSourceURL = fmt.Sprintf(githubUrlFormat, gihubOrg, annotationsTestGitSourceRepoName) 61 multiComponentGitSourceURL = fmt.Sprintf(githubUrlFormat, gihubOrg, multiComponentGitSourceRepoName) 62 multiComponentContextDirs = []string{"go-component", "python-component"} 63 64 secretLookupComponentOneGitSourceURL = fmt.Sprintf(githubUrlFormat, gihubOrg, secretLookupGitSourceRepoOneName) 65 secretLookupComponentTwoGitSourceURL = fmt.Sprintf(githubUrlFormat, gihubOrg, secretLookupGitSourceRepoTwoName) 66 )