Skip to content

Commit

Permalink
Use tektoncd/results repo for git-init symbolic ref tests
Browse files Browse the repository at this point in the history
Prior to this commit we were pointing one of our integration tests
at a Spring project repo. We did this to test our git-init code
with a repo that uses "main" as its main branch instead of "master".

Now that we have switched many/all of our repos over to "main"
instead of "master" we can use them for testing instead. This means
we haven't tied our tests to an external third party repo that might
change / be removed without our realizing it.
  • Loading branch information
Scott authored and tekton-robot committed Jun 14, 2021
1 parent 64cc06c commit ccf723a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/git_checkout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ func TestGitPipelineRun(t *testing.T) {
sslVerify: "false",
}, {
name: "non-master repo with default revision",
repo: "https://github.com/spring-projects/spring-petclinic",
repo: "https://github.com/tektoncd/results",
revision: "",
}, {
name: "non-master repo with main revision",
repo: "https://github.com/spring-projects/spring-petclinic",
repo: "https://github.com/tektoncd/results",
revision: "main",
}} {
tc := tc // capture range variable
Expand Down
4 changes: 2 additions & 2 deletions test/v1alpha1/git_checkout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ func TestGitPipelineRun(t *testing.T) {
sslVerify: "false",
}, {
name: "non-master repo with default revision",
repo: "https://github.com/spring-projects/spring-petclinic",
repo: "https://github.com/tektoncd/results",
revision: "",
}, {
name: "non-master repo with main revision",
repo: "https://github.com/spring-projects/spring-petclinic",
repo: "https://github.com/tektoncd/results",
revision: "main",
}} {
tc := tc // capture range variable
Expand Down

0 comments on commit ccf723a

Please sign in to comment.