github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/pkg/utils/tekton/pipeline_extraction_test.go (about) 1 package tekton 2 3 import ( 4 "github.com/redhat-appstudio/e2e-tests/pkg/constants" 5 "github.com/stretchr/testify/assert" 6 "testing" 7 ) 8 9 func TestPipelineExtraction(t *testing.T) { 10 var defaultBundleRef string 11 var err error 12 if defaultBundleRef, err = GetDefaultPipelineBundleRef(constants.BuildPipelineSelectorYamlURL, "Java"); err != nil { 13 assert.Error(t, err, "failed to parse bundle ref") 14 panic(err) 15 } 16 assert.Contains(t, defaultBundleRef, "pipeline-java-builder", "failed to retrieve bundle ref") 17 }