@@ -27,7 +27,7 @@ const (
27
27
28
28
func TestGetPipelines (t * testing.T ) {
29
29
ts , c := makeServer (t )
30
- c .addContents ("example/gitops" , "pipelines.yaml" , "master " , "testdata/pipelines.yaml" )
30
+ c .addContents ("example/gitops" , "pipelines.yaml" , "main " , "testdata/pipelines.yaml" )
31
31
pipelinesURL := "https://github.com/example/gitops.git"
32
32
33
33
req := makeClientRequest (t , "Bearer testing" , fmt .Sprintf ("%s/pipelines?url=%s" , ts .URL , pipelinesURL ))
@@ -81,7 +81,7 @@ func TestGetPipelinesWithNoURL(t *testing.T) {
81
81
82
82
func TestGetPipelinesWithBadURL (t * testing.T ) {
83
83
ts , c := makeServer (t )
84
- c .addContents ("example/gitops" , "pipelines.yaml" , "master " , "testdata/pipelines.yaml" )
84
+ c .addContents ("example/gitops" , "pipelines.yaml" , "main " , "testdata/pipelines.yaml" )
85
85
req := makeClientRequest (t , "Bearer testing" , fmt .Sprintf ("%s/pipelines?url=%%%%test.html" , ts .URL ))
86
86
res , err := ts .Client ().Do (req )
87
87
if err != nil {
@@ -115,7 +115,7 @@ func TestGetPipelinesWithNamespaceAndNameInURL(t *testing.T) {
115
115
ts , c := makeServer (t , func (a * APIRouter ) {
116
116
a .secretGetter = sg
117
117
})
118
- c .addContents ("example/gitops" , "pipelines.yaml" , "master " , "testdata/pipelines.yaml" )
118
+ c .addContents ("example/gitops" , "pipelines.yaml" , "main " , "testdata/pipelines.yaml" )
119
119
pipelinesURL := "https://github.com/example/gitops.git"
120
120
options := url.Values {
121
121
"url" : []string {pipelinesURL },
@@ -142,7 +142,7 @@ func TestGetPipelinesWithNamespaceAndNameInURL(t *testing.T) {
142
142
143
143
func TestGetPipelinesWithUnknownSecret (t * testing.T ) {
144
144
ts , c := makeServer (t )
145
- c .addContents ("example/gitops" , "pipelines.yaml" , "master " , "testdata/pipelines.yaml" )
145
+ c .addContents ("example/gitops" , "pipelines.yaml" , "main " , "testdata/pipelines.yaml" )
146
146
pipelinesURL := "https://github.com/example/gitops.git"
147
147
options := url.Values {
148
148
"url" : []string {pipelinesURL },
@@ -173,7 +173,7 @@ func TestGetPipelineApplication(t *testing.T) {
173
173
ts , c := makeServer (t , func (a * APIRouter ) {
174
174
a .resourceParser = stubResourceParser (testResource )
175
175
})
176
- c .addContents ("example/gitops" , "pipelines.yaml" , "master " , "testdata/pipelines.yaml" )
176
+ c .addContents ("example/gitops" , "pipelines.yaml" , "main " , "testdata/pipelines.yaml" )
177
177
pipelinesURL := "https://github.com/example/gitops.git"
178
178
options := url.Values {
179
179
"url" : []string {pipelinesURL },
0 commit comments